Skip to content

Update Inbox

PATCH
/v0/inboxes/{inbox_id}
curl -s -X PATCH "https://api.yoagent.dev/v0/inboxes/inb_01je56wqswfmn9pgbc1wq8tjgq" \
-H "Authorization: Bearer $YOAGENT_KEY" \
-H "Content-Type: application/json" \
-d '{"display_name":"Signup tests"}'

Change an inbox’s display name or metadata.

inbox_id
required
Inbox Id

Inbox id (inb_…), address or *@domain (the catch-all)

string
Media typeapplication/json
InboxUpdate

Change an inbox; omitted fields stay as they are.

object
display_name
Display Name

A new display name; omitted or null: unchanged.

Any of:
string
>= 1 characters <= 100 characters
metadata
Metadata

New metadata, in place of the old; omitted or null: unchanged.

Any of:
object
key
additional properties

Successful Response

Media typeapplication/json
InboxOut

An inbox.

object
version
required
Version

Goes up by one on every change: of two copies, the one with the higher version is the newer.

integer
inbox_id
required
Inbox Id
string
/^inb_[0-7][0-9a-hjkmnp-tv-z]{25}$/
project_id
required
Project Id
string
/^prj_[0-7][0-9a-hjkmnp-tv-z]{25}$/
address
required
Address

Its local part may come from a sender: auto-create makes inboxes for addresses mail arrived at.

string
is_catch_all
required
Is Catch All
boolean
display_name
required
Display Name

Set by whoever made the inbox (an agent, too): text from outside, like metadata and client_id.

Any of:
string
metadata
required
Metadata
object
key
additional properties
client_id
required
Client Id
Any of:
string
deletable
required
Deletable

Whether the caller may delete it (inbox_delete on it; never the catch-all).

boolean
labels_editable
required
Labels Editable

Whether the caller may change the labels of its mail — mark it read or unread, label it (message_update on the inbox).

boolean
labels_manageable
required
Labels Manageable

Whether the caller may rename and delete its project’s own labels (message_update on the project: the change reaches every inbox of it).

boolean
mail_deletable
required
Mail Deletable

Whether the caller may delete its messages and threads (message_delete on the inbox).

boolean
mail_sendable
required
Mail Sendable

Whether the caller may send from it — new mail, replies and forwards of mail it reads (message_send on the inbox; never from the catch-all).

boolean
created_at
required
Created At
string format: date-time

Example

{
"version": 1,
"inbox_id": "inb_01je56wqswfmn9pgbc1wq8tjgq",
"project_id": "prj_01je56wqswfmn9pgbc1wq8tjgq",
"address": "test@k7m2xq4p.yoagent.email",
"is_catch_all": false,
"display_name": "Signup tests",
"metadata": {},
"client_id": "ci-run-1842",
"deletable": true,
"labels_editable": true,
"labels_manageable": true,
"mail_deletable": true,
"mail_sendable": true,
"created_at": "2026-12-01T12:00:00Z"
}

An error (400, 401, 403, 404, 405, 409, 413, 429, 500, 503), in the one shape every call answers: Errors.