Uploads
Create Presigned Upload URL
Create a short-lived presigned URL for uploading media files. Upload the raw file bytes to presigned_url using every header returned in required_headers, then pass public_url as a model input.
post/v1/upload/presign
Request
- Base URL: https://api.eachlabs.ai
- URL: https://api.eachlabs.ai/v1/upload/presign
- Auth: HTTP bearer
Request body
Example request
{
"content_type": "image/png",
"file_type": "image",
"expires_in_seconds": 604800
}Response
Presigned upload URL created
Example response
{
"id": "0dce0f44-b8a5-4f30-91d4-5f6b0c221bf0",
"presigned_url": "https://eachlabs-storage.s3.amazonaws.com/uploads/...?X-Amz-Signature=...",
"public_url": "https://cdn-us.eachlabs.ai/uploads/0dce0f44-b8a5-4f30-91d4-5f6b0c221bf0.png",
"expires_at": "2026-12-08T18:15:00Z",
"required_headers": {
"x-amz-meta-file-id": "0dce0f44-b8a5-4f30-91d4-5f6b0c221bf0"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.