Skip to main content
PATCH
Update Inbox
Updates one inbox’s display_name and metadata; the address itself cannot change. Returns the full inbox after the update. 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. To read without changing anything use get_agentmail_inbox.

Example

First time? Point any MCP client at https://mcp.aisa.one/mcp — Claude Code, Codex, Cursor, VS Code and the rest. Authorization is OAuth: the client opens a browser, you click Allow once, and there is no key to paste. The commands per client, and what each call costs, are on aisa.one/mcp.
Set this endpoint up in your agent →

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

Path Parameters

inbox_id
string
required

The ID of the inbox.

Body

application/json

Expects an object; provide at least one of display_name or metadata.

display_name
string

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

metadata
UpdateMetadata · object | null

Metadata to merge into the inbox's existing metadata. Keys you include are added or overwritten; keys you omit are left unchanged. To remove a single key, send it with a null value. To clear all metadata, send metadata as null. Sending an empty object is rejected; use null to clear. Each update must include at least one of display_name or metadata.

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.