Skip to content

List Inboxes

GET
/v0/inboxes
curl -s "https://api.yoagent.dev/v0/inboxes" \
-H "Authorization: Bearer $YOAGENT_KEY"

List the organization’s inboxes, newest first; project_id narrows it to one project, is_catch_all to the catch-all inboxes or to the others, search to those whose address or display name holds it.

limit
Limit
integer
default: 20 >= 1 <= 100

How many items a page holds.

page_token
Page Token
Any of:

The next_page_token of the previous page

string

The previous page’s next_page_token, for the page after it; omitted: the first page.

project_id
Project Id
Any of:
string
/^prj_[0-7][0-9a-hjkmnp-tv-z]{25}$/

Only those of this project; omitted: of every project the caller sees.

is_catch_all
Is Catch All
Any of:
boolean

Only the catch-all inboxes (true), or only the others (false).

search
Search
Any of:
string
>= 1 characters <= 200 characters

A part of the address or the display name, in any case.

Successful Response

Media typeapplication/json
InboxList

A page of inboxes.

object
count
required
Count
integer
next_page_token
required
Next Page Token
Any of:
string
inboxes
required
Inboxes
Array<object>
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

{
"count": 1,
"next_page_token": null,
"inboxes": [
{
"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.