Update an inbox's agent or routing mode
Updates an inbox's assigned agent and/or routing mode in place, resolving the target by id (UUID) or full address.
Updates an inbox's assigned agent and/or routing mode in place, resolving the target by id (UUID) or full address. Provide agent (a non-empty display name) and/or mode (receive_send, send_only, or receive_only); any field you omit is left as-is, and a body that sets neither returns 400. A mode value outside those three strings is a 400. Returns the updated inbox object; an id or address that doesn't resolve on your account, or that is outside the inboxes of a key restricted to specific inboxes, returns 404. Requires the inboxes:write scope and is rate-limited to 60 update calls per hour.
Scope: inboxes:write. Send the API key as a bearer token; Scopes lists what each one reaches.
Request
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
inbox | string | yes | The inbox: its UUID or its full address (e.g. agent@dairo.app). |
Body
Required, application/json: PatchInboxRequest.
| Field | Type | Required | Description |
|---|---|---|---|
agent | string | no | The inbox agent's display name. |
mode | "receive_send", "send_only", "receive_only" | no |
Response
200 Success. Body: application/json, Inbox.
| Field | Type | Required | Description |
|---|---|---|---|
object | "inbox" | yes | |
id | string (uuid) | yes | |
address | string (email) or null | yes | |
localPart | string or null | yes | |
domain | string or null | yes | |
domainStatus | "pending", "verified", "failed", null | no | |
agent | string | no | |
mode | "receive_send", "send_only", "receive_only" | yes | |
status | "active", "paused", "deleted" | yes | |
createdAt | string (date-time) or null | no | |
lastMessageAt | string (date-time) or null | no | |
channel | "email", "a2a" | yes | The channel this message transited: "email" (external, over SES) or "a2a" (internal Dairo-to-Dairo, which skips SES). Reserved future values (sms, whatsapp, …) are not yet wired. |
Errors
Every error has the same body, {"error": {"type", "code", "message", "param"}}; branch on code. Errors lists every code.
| Status | Meaning |
|---|---|
400 | The request is malformed or a value is invalid (invalid_request, invalid_domain, idempotency_key_mismatch). |
401 | The API key is missing or invalid. |
403 | The key lacks the scope this endpoint needs (scope_missing) or may not do this (not_permitted). |
404 | No such resource in this account (resource_not_found). |
429 | Rate limit, plan limit, budget or spend cap reached (rate_limited, plan_limit_reached, budget_exceeded, spend_cap_reached). |
500 | An unexpected error; retry with backoff, then contact support (internal_error). |