Skip to main content
POST
Create Inbox
Creates a new inbox — a real address that can send and receive. Optional username picks the local part (support@agentmail.to); omit it for a generated one such as livelyspirit481@agentmail.to. The domain is always agentmail.to here because AIsa does not expose domain management. Returns inbox_id, email, display_name, client_id, pod_id, metadata and timestamps. Writes to the shared AgentMail workspace: Every AIsa caller shares one AgentMail account, so this reaches inboxes other callers created, and what you write here is visible and editable by the next caller. Read one back with get_agentmail_inbox, list them with get_agentmail_inboxes.

Example

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

Authorization
string
required

Bearer authentication

Body

application/json
username
string

Username of address. Randomly generated if not specified.

domain
string

Domain of address. Must be verified domain. Defaults to agentmail.to.

display_name
string

Display name: Display Name <username@domain.com>.

client_id
string

Client ID of inbox.

metadata
Metadata · object

Custom metadata to attach to the inbox.

Response

Response with status 200

pod_id
string
required

ID of pod.

inbox_id
string
required

The ID of the inbox.

email
string
required

Email address of the inbox.

updated_at
string<date-time>
required

Time at which inbox was last updated.

created_at
string<date-time>
required

Time at which inbox was created.

display_name
string

Display name: Display Name <username@domain.com>.

client_id
string

Client ID of inbox.

metadata
Metadata · object

Custom metadata attached to the inbox.