Agent files confirm upload
Confirm a previously requested upload and receive file metadata. Use this endpoint after the upload succeeds so the file becomes available and you can receive a temporary download URL.Endpoint
POST /external/agent-files/confirm-upload
Authentication
See AuthenticationSuccess status code
201 Created
Request body
| Name | Required | Type | Notes |
|---|---|---|---|
fileId | Yes | string | File identifier returned by Agent files upload presign. |
fileSize | No | integer | Optional uploaded file size in bytes. |
Response body
| Field | Type | Notes |
|---|---|---|
id | string | File record identifier. |
fileName | string | Original file name. |
fileSize | integer or null | Uploaded file size in bytes when supplied. |
mimeType | string | MIME type for the file. |
status | string | Current file status; this route returns uploaded after confirmation succeeds. |
createdAt | string | Millisecond timestamp serialized as a string. |
signUrl | string, optional | Temporary download URL returned on the first successful confirmation. |
Response example
Error responses
401 Unauthorized404 Not Found
Notes
- Call this after uploading the file bytes to the
putUrlreturned by Agent files upload presign. - Download URLs expire after 1 hour.