Upload a file from a URL
Uploads a file by downloading it from the provided URL. The file will be processed asynchronously. Poll the GET endpoint to check when it’s ready, then use the returned assetId in post creation.
Supported file types:
- Images: JPEG, PNG, GIF, WebP
- Videos: MP4, QuickTime (MOV)
File size limits:
- Images: 10 MB max
- GIFs: 15 MB max
- Videos: 350 MB max
Additional constraints:
- Images cannot exceed 36 megapixels
- URL must be publicly accessible
POST
/uploadsAuthorization
AuthorizationBearer token · headerrequiredAPI key authentication. Generate an API key from your workspace settings.
Request body
requiredapplication/jsonurlstring<uri>requiredURL of the file to upload. Must be publicly accessible.
Responses
200
Upload job created successfully
idstring<uuid>Upload job ID. Use this to poll the GET /uploads/{id} endpoint.
statusstringInitial status of the upload
Allowed:
pendingcreatedAtstring<date-time>400
Bad Request - Invalid input parameters
codestringmessagestringdataobjectShow propertiesHide properties
errorsobject401
Unauthorized - Missing or invalid API key
codestringmessagestring429
Too Many Requests - Rate limit exceeded
codestringmessagestring