Copyable examples for turning files into URLs
Use these examples as the smallest working upload request before adapting the same shape to a backend route, worker, script, or automation node.
Choose the example that matches where the upload runs.
Keep API keys server-side or in trusted automation credential storage. The returned URL can then be passed to OCR, AI, document, social, or webhook APIs.
cURL
Fastest way to verify auth, multipart upload, expiry, and response fields from a terminal.
JavaScript
Use FormData from a server route, worker, or trusted runtime and return only the fields your app needs.
Python
Use requests in scripts, background jobs, and data pipelines that need a direct public URL.
The same request shape maps to no-code tools.
Automation platforms usually need the same fields: file, expiry, bearer key, and a JSON response path that exposes `url`.
n8n HTTP Request
Attach the binary property as the multipart file field and map `response.url` into the next node.
Make HTTP module
Send a file part, parse the JSON response, and carry file ID into cleanup branches.
Zapier webhook
Upload the attachment field and send the returned URL to the destination action.
Answers before the workflow breaks
Which example is best for debugging?
Use cURL first because it removes application code from the request and shows whether auth, upload, and response parsing work.
Can I run the JavaScript example in a browser?
Keep production API keys server-side. Browser uploads need a separate scoped upload-session design before exposing credentials publicly.
What field do I map into the next API?
Map `url` to the downstream file URL field and store `file_id` when you need later delete or metadata actions.