Skip to main content

Get file upload URL

GET 

/api/v1/files/upload_url

Get a signed URLs for uploading local files to Needle. The upload URLs will be valid for a short time therefore the files should be uploaded immediately after receiving the URL. Tip: repeat content_type parameter to generate multiple upload URLs at once.

After upload is complete, your file will be private and protected. Here is how you can upload files using the signed upload URL:

curl -X PUT [upload_url] \
-H "Content-Type: [content_type]" \
--upload-file [path/to/your-file]

If you want to read the files later, you will need to use a signed download URL.

Request

Responses

Successful response