Skip to main content
POST
/
mailboxes
/
{public_id}
/
keys
Create a mailbox API key
curl --request POST \
  --url https://app.sendmux.ai/api/v1/mailboxes/{public_id}/keys \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "app_name": "<string>"
}
'
{
  "ok": true,
  "data": {
    "api_key": {
      "public_id": "smx_clxxxxxxxxxxxxxxxxxxxxxxxxx",
      "key": "<string>",
      "key_prefix": "<string>",
      "key_suffix": "<string>"
    },
    "imap_smtp_credentials": {
      "server": "<string>",
      "imap_port": 123,
      "smtp_port": 123,
      "username": "<string>",
      "password": "<string>"
    }
  },
  "meta": {
    "request_id": "req_clxxxxxxxxxxxxxxxxxxxxxxxxx"
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.sendmux.ai/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Sendmux API key. Obtain from the dashboard under API Keys. Format: smx_root_...

Headers

Idempotency-Key
string

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.

Maximum string length: 255
Example:

"mailbox-keys-create-20260424-001"

Path Parameters

public_id
string
required

Mailbox public ID

Body

application/json
app_name
string
required
Required string length: 1 - 255

Response

Mailbox API key created. The response carries a Location header pointing at the canonical URL for the new key.

ok
enum<boolean>
required
Available options:
true
data
object
required
meta
object
required