inboxes > files
Complete File
Changed onMakes a pending file ready once its bytes are uploaded, and returns it, with its download_url if the key has file_read. Calling it on a file that is already ready returns the file.
Returns 409 if the bytes haven't been uploaded yet, or if what was uploaded doesn't match the file's size and sha256. Returns 404 for a file that has expired or was deleted, including a pending file not completed within a day of its creation.
Requires the file_create permission. Only a key with file_read, or the key that created the file, can complete it; any other key gets 404.
post/v0/inboxes/{inbox_id}/files/{file_id}/complete
Request
- Base URLhttps://api.agentmail.to
- URLhttps://api.agentmail.to/v0/inboxes/{inbox_id}/files/{file_id}/complete
- AuthHTTP bearer
Path parameters
inbox_idstring required
The ID of the inbox.
file_idstring required
ID of the file. A UUID.
Response
Response with status 200
Changes
- info
endpoint added
- info