Skip to main content
POST
Add an Agent Mail address

Authorizations

X-Api-Key
string
header
required

Workspace API key, created in the dashboard under Settings → API Keys.

Headers

Idempotency-Key
string

Required without a previewId. 1–255 visible ASCII characters; the same key returns the same address. A key that belonged to a deleted address returns 409 request_key_reused.

Required string length: 1 - 255
Pattern: ^[\x21-\x7E]+$

Query Parameters

workspaceId
string<uuid>

Workspace the request is scoped to. Optional for API keys: a key is bound to one workspace when it is created, and naming any other workspace returns an opaque 404.

Body

application/json
previewId
string<uuid>

The previewId of an unexpired quote. Omit it (send {}) to add an included address with an Idempotency-Key.

username
string

The address's name before the @, case-insensitive (stored lowercase). 3–30 characters of a-z, 0-9, ., _, -, starting and ending with a letter or digit, never two of ., _, - in a row. Unique across all workspaces, deleted addresses included. Reserved names (e.g. admin, postmaster, support, noreply) are refused. Omit it for a generated name.

Required string length: 1 - 255
Example:

"alice.smith"

Response

The address and the Inbox plan after the change

data
object
required