Acknowledge file upload(s)
Upload
Acknowledge file upload(s)
Acknowledges that one or more file uploads have been completed. This endpoint verifies files exist in storage and updates upload records with metadata. Processes multiple uploads in parallel. Each result in the response array may be a success or error object.
POST
Acknowledge file upload(s)
Authorizations
WorkOS API key for authentication
Body
application/json
The upload ID returned from /prepare endpoint
Example:
"123e4567-e89b-12d3-a456-426614174000"
Example:
[
{
"upload_id": "123e4567-e89b-12d3-a456-426614174000"
},
{
"upload_id": "223e4567-e89b-12d3-a456-426614174001"
}
]Response
Upload acknowledgment results
- Option 1
- Option 2
Successful acknowledgment
Example:
[
{
"upload_id": "123e4567-e89b-12d3-a456-426614174000",
"acknowledged_at": "2024-01-01T12:00:00Z",
"size": 1024,
"content_type": "application/pdf"
},
{
"upload_id": "223e4567-e89b-12d3-a456-426614174001",
"error": "Upload is not completed yet"
}
]