Upload file
/v1/mailboxes/{mailbox_id}/filesUse multipart/form-data with the file field. Files must be 1 byte to 25 MiB. Antivirus scanning runs before upload. Insufficient quota returns 409; excessive size, 413; a detected threat, 422; an unavailable scanner, 503.
Authentication and access · Errors and retries
Request
curl -X POST 'https://adapt-mail.com/v1/mailboxes/<mailbox_id>/files' \ -H 'Authorization: Bearer <access_token>' \Parameters
mailbox_idpathNecessarilyintegerX-Customer-IDheader- Option 1
stringOption 2null
Request body · multipart/form-data
object
fileNecessarilystring · binary
Responses
201 Successful response
application/json
object
idstring · uuidfilenamestringcontent_typestringsize_bytesintegerscanned_at- Option 1
stringDate and time in UTC. If there is no offset, the value also represents UTC.
Option 2null
401 Login required
application/json
object
detail- Option 1
stringOption 2objectcodestringmessagestring
Option 3arrayArray elementsobject
403 No access
application/json
object
detail- Option 1
stringOption 2objectcodestringmessagestring
Option 3arrayArray elementsobject
404 Resource not found
application/json
object
detail- Option 1
stringOption 2objectcodestringmessagestring
Option 3arrayArray elementsobject
409 State conflict
application/json
object
detail- Option 1
stringOption 2objectcodestringmessagestring
Option 3arrayArray elementsobject
413 Size limit exceeded
application/json
object
detail- Option 1
stringOption 2objectcodestringmessagestring
Option 3arrayArray elementsobject
422 Validation error
application/json
object
detailarrayArray elementsobjectlocNecessarilyarrayArray elementsOption 1stringOption 2integermsgNecessarilystringtypeNecessarilystring
503 Temporarily unavailable
application/json
object
detail- Option 1
stringOption 2objectcodestringmessagestring
Option 3arrayArray elementsobject