Create a mailbox
Changed onProvisions a new mailbox plus an initial bearer token and matching IMAP/SMTP mailbox password. The domain portion of the email must already be verified via POST /domains. If supplied, quota_bytes must be one of the current storage tiers: 1073741824 (1 GB), 5368709120 (5 GB), or 53687091200 (50 GB). Creation provisions resources on our mail platform and, for @myagent.mx addresses, on Amazon SES — any failure rolls the partial state back automatically.
Supply an Idempotency-Key header (any unique string, max 255 chars) to safely retry on network errors. Replays with the same key return the original response; replays with a different body return 409 idempotency_conflict.
Request
- Base URL: https://app.sendmux.ai/api/v1
- URL: https://app.sendmux.ai/api/v1/mailboxes
- Auth: one of:
- HTTP bearer
- OAuth 2 (authorization code, authorization URL https://app.sendmux.ai/oauth/authorize, token URL https://app.sendmux.ai/oauth/token, scopes: mailbox.admin.create)
Headers
Client-chosen unique key to safely retry the request. Cached for 24h per (team, endpoint, key). Different body with same key returns 409 idempotency_conflict.
Request body
Example request
{
"quota_bytes": 5368709120
}Response
Mailbox created. The response carries a Location header pointing at the canonical GET URL for the new mailbox.
Example response
{
"meta": {
"request_id": "req_clxxxxxxxxxxxxxxxxxxxxxxxxx"
},
"data": {
"credential": {
"imap_port": 993,
"public_id": "smx_clxxxxxxxxxxxxxxxxxxxxxxxxx",
"server": "mail.sendmux.ai",
"smtp_port": 587
},
"mailbox": {
"email": "agent@acme.com",
"id": "mbx_clxxxxxxxxxxxxxxxxxxxxxxxxx",
"status": "active"
}
}
}Changes
- breaking
the
//response's property type changed fromobjectnullto no type for status - breaking
removed the required property
///from the response with the status - breaking
removed the required property
///from the response with the status - breaking
removed the required property
///from the response with the status - breaking
removed the required property
///from the response with the status - breaking
removed the required property
///from the response with the status - breaking
removed the required property
///from the response with the status - breaking
removed the required property
///from the response with the status - breaking
removed the required property
///from the response with the status - info
added
subschema #2to the//response propertyanyOflist for the response status
- breaking
- info
the endpoint scheme security
oauth2was added to the API
- info