Mailbox settings
/v1/mailboxes/{mailbox_id}Use /v1 to change name, password and signature. Change the shared quota_mb through your hosting panel. Files have no separate quota. Idempotency-Key is optional but recommended for retries.
Authentication and access · Errors and retries
Request
curl -X PATCH 'https://adapt-mail.com/v1/mailboxes/<mailbox_id>' \ -H 'Authorization: Bearer <access_token>' \ -H 'Idempotency-Key: message-20261019-0001' \ -H 'Content-Type: application/json' \ --data '{"name":"Support","signature":"Support team"}'Parameters
mailbox_idpathNecessarilyintegerX-Customer-IDheader- Option 1
stringOption 2null Idempotency-KeyheaderstringminLength: 8maxLength: 128
Request body · application/json
object
name- Option 1
stringminLength: 1maxLength: 120Option 2null quota_mb- Option 1
integerminimum: 10240Option 2null file_quota_mb- Option 1
integerminimum: 256maximum: 512000Option 2null password- Option 1
stringminLength: 12maxLength: 128Option 2null signature- Option 1
stringmaxLength: 5000Option 2null
Unknown fields are not accepted.
Responses
202 Successful response
application/json
object
idstring · uuidOperation ID for checking the status and canceling a pending submission.
kindstringmailbox_id- Option 1
integerOption 2null statusstringValid values:
"queued""running""succeeded""failed""uncertain""cancelled"run_atstringDate and time in UTC. If there is no offset, the value also represents UTC.
created_atstringDate and time in UTC. If there is no offset, the value also represents UTC.
completed_at- Option 1
stringDate and time in UTC. If there is no offset, the value also represents UTC.
Option 2null errorThe reason for the error if the operation did not complete successfully.
Option 1stringOption 2nullresultThe result of the operation. For sending, contains information about accepted and rejected recipients.
Option 1objectOption 2null
400 Invalid header or identifier
application/json
object
detail- Option 1
stringOption 2objectcodestringmessagestring
Option 3arrayArray elementsobject
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
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