Prepare a local file upload
Creates an upload job and returns signed credentials so you can POST a local file directly to the returned uploadUrl. After preparing, POST the file to uploadUrl as multipart form data with the returned params, signature, and file fields, then poll GET /uploads/{id} until status is ready.
See File uploads for a full walkthrough and curl examples.
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
The returned credentials are short-lived. Upload the file before expiresAt.
Documentation Index
Fetch the complete documentation index at: https://docs.tryordinal.com/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
API key authentication. Generate an API key from your workspace settings.
Body
Response
Signed credentials for uploading the file
Response when a local file upload is prepared. Use uploadUrl, params, and signature to POST the file. See File uploads for the full multipart upload example.
Upload job ID. Use this to poll GET /uploads/{id}.
Initial status while Ordinal waits for the file POST.
awaiting_upload URL to POST the file to as multipart form data.
Signed upload params. Include verbatim as the params form field.
Signature for the params. Include verbatim as the signature form field.
Time after which the signed credentials are no longer valid.