Initiate the upload of a file to cloud storage. This endpoint provides the necessary information to complete the file upload process.
Supports both single file and bulk upload requests. For bulk uploads, pass an array of upload objects (maximum 100 items). The response format matches the request format - a single object for single file requests, or an array for bulk requests.
Example CURL command (single file):
curl -X POST https://lilt.com/v2/upload/s3/params?key=API_KEY \
--header "Content-Type: application/json" \
--data-raw '{
"filename": "example.json",
"type": "application/json",
"metadata": {
"size": 1024,
"labels": ["important", "review-needed"]
}
}'
Example CURL command (bulk upload):
curl -X POST https://lilt.com/v2/upload/s3/params?key=API_KEY \
--header "Content-Type: application/json" \
--data-raw '[
{
"filename": "file1.json",
"type": "application/json",
"metadata": { "size": 1024 }
},
{
"filename": "file2.txt",
"type": "text/plain",
"metadata": { "size": 2048 }
}
]'
Information about the file(s) to be uploaded. Can be a single object or an array of objects (max 100).
Single file request: { "filename": "...", "type": "...", "metadata": {...} }
Bulk request: [{ "filename": "...", "type": "...", "metadata": {...} }, ...]
Upload initialization information. Returns a single object for single file requests, or an array of objects for bulk requests.