---
title: "Get Inbox"
url: "https://docs.yoagent.dev/reference/rest-api/operations/getinbox"
---

# Get Inbox

GET

/v0/inboxes/{inbox_id}

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

```js
const response = await fetch("https://api.yoagent.dev/v0/inboxes/inb_01je56wqswfmn9pgbc1wq8tjgq", {
  headers: {
    Authorization: `Bearer ${process.env.YOAGENT_KEY}`,
  },
});
if (!response.ok) throw new Error(await response.text());
const data = await response.json();
```

```python
import os

import requests

response = requests.get(
    "https://api.yoagent.dev/v0/inboxes/inb_01je56wqswfmn9pgbc1wq8tjgq",
    headers={"Authorization": f"Bearer {os.environ['YOAGENT_KEY']}"},
    timeout=60,
)
response.raise_for_status()
data = response.json()
```

- api.yoagent.dev/v0/inboxes/{inbox_id}

Get an inbox by id, address or `*@domain`.

## Authorizations

- **[ApiKey](https://docs.yoagent.dev/reference/rest-api#apikey)**

## Parameters

### Path Parameters

**inbox_id**

required

_Inbox Id_

Inbox id (inb\_…), address or \*@domain (the catch-all)

string

## Responses

### 200

Successful Response

application/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**

string

**null**

null

**metadata**

required

_Metadata_

object

**_key_**

additional properties

**client_id**

required

_Client Id_

Any of:

**string**

string

**null**

null

**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

```json
{
  "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"
}
```

### default

An error (400, 401, 403, 404, 405, 409, 413, 429, 500, 503), in the one shape every call answers: [Errors](https://docs.yoagent.dev/reference/conventions#errors).
