---
title: "EventWolf API: Inbox"
description: "List your notifications, count your notifications, mark all read, mark seen, mark a notification read, archive a notification, get your preferences, set your preferences, or stream your notifications, with the EventWolf API."
url: "https://agentpost.tools/docs/eventwolf/reference/inbox"
kind: reference
---

# Inbox

Manage notifications in the inbox your credential names. List and count them, mark them read, seen, or archived, set inbox preferences, and receive new notifications live.

For what an inbox shows, who may read it, and which inbox a delegated token reaches, read [Notifications](/docs/eventwolf/concepts/notifications.md#the-inbox).

Paths are relative to `https://api.agentpost.tools/v1/events`, and every request follows the [API basics](/docs/platform/api-basics.md). [Who may call](/docs/eventwolf/reference.md#who-may-call) explains each kind of caller.

## List your notifications

`GET /inbox`

Your delivered notifications, newest first.

-   **Who may call:** A signed-in caller can use a user token, an IdentityHound session token, an IdentityHound API key, or an IdentityHound delegated token to reach the [inbox that credential names](/docs/eventwolf/concepts/notifications.md#the-inbox).
-   **Credential:** the examples send a signed-in principal’s user token, `ut_test_…`, as `Authorization: Bearer <token>`.
-   **Pages:** `limit`, 1 to 200, default 50, with `next` and `after`. [Lists](/docs/platform/api-basics.md#lists) has the rule.

### Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `unread` | `"true"` or `"false"` | No |  |
| `archived` | `"true"` or `"false"` | No |  |
| `topic` | `string` | No |  |
| `after` | `string` | No |  |
| `limit` | `integer` | No | 1–200; default `50`. |

### Response

`200 OK`, with:

| Name | Type | Present | Description |
| --- | --- | --- | --- |
| `notifications` | [`NotificationRecord`](/docs/eventwolf/reference/inbox.md#the-notificationrecord-object) array | Always |  |
| `next` | `string` | When set |  |

### Errors

-   [`invalid_request`](/docs/eventwolf/errors.md#invalid_request) (400)

Any operation can also answer with the codes [Conventions](/docs/eventwolf/reference.md#conventions) lists.

```bash tab="curl"
curl 'https://api.agentpost.tools/v1/events/inbox?unread=true' \
  -H "Authorization: Bearer ut_test_…"
```

```json title="Response"
{
  "notifications": [
    {
      "id": "ntf_01M79YXJ3F3P1VQPWS0ZVBHHAW",
      "recipientId": "u_ana",
      "topic": "assignments",
      "title": "Ben assigned “Refund for order 1042” to you",
      "url": "/requests/r_9",
      "status": "delivered",
      "eventSequence": 42,
      "subscriptionId": "sub_01M79K2W6Q8RZ4T1NB0XJ7C3DA",
      "createdAt": "2026-11-12T09:41:07.000Z"
    }
  ]
}
```

## Count your notifications

`GET /inbox/count`

How many inbox notifications are unread, and how many are newer than the last one you saw. Phone badges keep separate seen positions.

-   **Who may call:** A signed-in caller can use a user token, an IdentityHound session token, an IdentityHound API key, or an IdentityHound delegated token to reach the [inbox that credential names](/docs/eventwolf/concepts/notifications.md#the-inbox).
-   **Credential:** the examples send a signed-in principal’s user token, `ut_test_…`, as `Authorization: Bearer <token>`.

### Response

`200 OK`, with [`InboxCount`](/docs/eventwolf/reference/inbox.md#the-inboxcount-object).

### Errors

Only the codes any operation can answer with, which [Conventions](/docs/eventwolf/reference.md#conventions) lists.

```bash tab="curl"
curl https://api.agentpost.tools/v1/events/inbox/count \
  -H "Authorization: Bearer ut_test_…"
```

```json title="Response"
{
  "unread": 1,
  "unseen": 0
}
```

## Mark all read

`POST /inbox/read-all`

Marks every unread notification read, or one topic’s.

-   **Who may call:** A signed-in caller can use a user token, an IdentityHound session token, an IdentityHound API key, or an IdentityHound delegated token to reach the [inbox that credential names](/docs/eventwolf/concepts/notifications.md#the-inbox).
-   **Credential:** the examples send a signed-in principal’s user token, `ut_test_…`, as `Authorization: Bearer <token>`.
-   **Idempotency-Key:** optional. [Retrying a write](/docs/platform/api-basics.md#retrying-a-write) has the rule.

### Body

The body is optional.

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `topic` | `string` | No |  |

### Response

`200 OK`, with [`ReadAllResponse`](/docs/eventwolf/reference/inbox.md#the-readallresponse-object).

### Errors

-   [`payload_too_large`](/docs/eventwolf/errors.md#payload_too_large) (413)
-   [`invalid_request`](/docs/eventwolf/errors.md#invalid_request) (400)

Any operation can also answer with the codes [Conventions](/docs/eventwolf/reference.md#conventions) lists.

```bash tab="curl"
curl -X POST https://api.agentpost.tools/v1/events/inbox/read-all \
  -H "Authorization: Bearer ut_test_…" \
  -H "Content-Type: application/json" \
  -d '{
    "topic": "assignments"
  }'
```

```json title="Response"
{
  "read": 4
}
```

## Mark seen

`POST /inbox/seen`

Marks everything through one notification seen in the inbox. Leaves phone badges alone. A position older than the one stored changes nothing.

-   **Who may call:** A signed-in caller can use a user token, an IdentityHound session token, an IdentityHound API key, or an IdentityHound delegated token to reach the [inbox that credential names](/docs/eventwolf/concepts/notifications.md#the-inbox).
-   **Credential:** the examples send a signed-in principal’s user token, `ut_test_…`, as `Authorization: Bearer <token>`.
-   **Idempotency-Key:** optional. [Retrying a write](/docs/platform/api-basics.md#retrying-a-write) has the rule.

### Body

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `through` | `string` | Yes | 1–100 characters. |

### Response

`200 OK`, with [`SeenResponse`](/docs/eventwolf/reference/push-addresses.md#the-seenresponse-object).

### Errors

-   [`invalid_request`](/docs/eventwolf/errors.md#invalid_request) (400)
-   [`payload_too_large`](/docs/eventwolf/errors.md#payload_too_large) (413)

Any operation can also answer with the codes [Conventions](/docs/eventwolf/reference.md#conventions) lists.

```bash tab="curl"
curl -X POST https://api.agentpost.tools/v1/events/inbox/seen \
  -H "Authorization: Bearer ut_test_…" \
  -H "Content-Type: application/json" \
  -d '{
    "through": "ntf_01M79YXJ3F3P1VQPWS0ZVBHHAW"
  }'
```

```json title="Response"
{
  "seenThrough": "ntf_01M79YXJ3F3P1VQPWS0ZVBHHAW",
  "unseen": 0
}
```

## Mark a notification read

`POST /inbox/:id/read`

Marks one notification read.

-   **Who may call:** A signed-in caller can use a user token, an IdentityHound session token, an IdentityHound API key, or an IdentityHound delegated token to reach the [inbox that credential names](/docs/eventwolf/concepts/notifications.md#the-inbox).
-   **Credential:** the examples send a signed-in principal’s user token, `ut_test_…`, as `Authorization: Bearer <token>`.
-   **Idempotency-Key:** optional. [Retrying a write](/docs/platform/api-basics.md#retrying-a-write) has the rule.

### Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | `string` | Yes | A notification ID, `ntf_…`. The `id` of a [`NotificationRecord`](/docs/eventwolf/reference/inbox.md#the-notificationrecord-object). |

### Response

`200 OK`, with:

| Name | Type | Present | Description |
| --- | --- | --- | --- |
| `notification` | [`NotificationRecord`](/docs/eventwolf/reference/inbox.md#the-notificationrecord-object) | Always |  |

### Errors

-   [`not_found`](/docs/eventwolf/errors.md#not_found) (404)

Any operation can also answer with the codes [Conventions](/docs/eventwolf/reference.md#conventions) lists.

```bash tab="curl"
curl -X POST https://api.agentpost.tools/v1/events/inbox/ntf_01M79YXJ3F3P1VQPWS0ZVBHHAW/read \
  -H "Authorization: Bearer ut_test_…"
```

```json title="Response"
{
  "notification": {
    "id": "ntf_01M79YXJ3F3P1VQPWS0ZVBHHAW",
    "recipientId": "u_ana",
    "topic": "assignments",
    "title": "Ben assigned “Refund for order 1042” to you",
    "url": "/requests/r_9",
    "status": "delivered",
    "eventSequence": 42,
    "subscriptionId": "sub_01M79K2W6Q8RZ4T1NB0XJ7C3DA",
    "createdAt": "2026-11-12T09:41:07.000Z",
    "readAt": "2026-11-13T09:30:00.000Z"
  }
}
```

## Archive a notification

`POST /inbox/:id/archive`

Archives one notification. `GET /inbox?archived=true` lists archived ones.

-   **Who may call:** A signed-in caller can use a user token, an IdentityHound session token, an IdentityHound API key, or an IdentityHound delegated token to reach the [inbox that credential names](/docs/eventwolf/concepts/notifications.md#the-inbox).
-   **Credential:** the examples send a signed-in principal’s user token, `ut_test_…`, as `Authorization: Bearer <token>`.
-   **Idempotency-Key:** optional. [Retrying a write](/docs/platform/api-basics.md#retrying-a-write) has the rule.

### Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | `string` | Yes | A notification ID, `ntf_…`. The `id` of a [`NotificationRecord`](/docs/eventwolf/reference/inbox.md#the-notificationrecord-object). |

### Response

`200 OK`, with:

| Name | Type | Present | Description |
| --- | --- | --- | --- |
| `notification` | [`NotificationRecord`](/docs/eventwolf/reference/inbox.md#the-notificationrecord-object) | Always |  |

### Errors

-   [`not_found`](/docs/eventwolf/errors.md#not_found) (404)

Any operation can also answer with the codes [Conventions](/docs/eventwolf/reference.md#conventions) lists.

```bash tab="curl"
curl -X POST https://api.agentpost.tools/v1/events/inbox/ntf_01M79YXJ3F3P1VQPWS0ZVBHHAW/archive \
  -H "Authorization: Bearer ut_test_…"
```

```json title="Response"
{
  "notification": {
    "id": "ntf_01M79YXJ3F3P1VQPWS0ZVBHHAW",
    "recipientId": "u_ana",
    "topic": "assignments",
    "title": "Ben assigned “Refund for order 1042” to you",
    "url": "/requests/r_9",
    "status": "delivered",
    "eventSequence": 42,
    "subscriptionId": "sub_01M79K2W6Q8RZ4T1NB0XJ7C3DA",
    "createdAt": "2026-11-12T09:41:07.000Z",
    "readAt": "2026-11-13T09:30:00.000Z",
    "archivedAt": "2026-11-13T09:30:00.000Z"
  }
}
```

## Get your preferences

`GET /inbox/preferences`

Your preferences for every topic. A required topic is shown with `required: true`, and setting it changes nothing.

-   **Who may call:** A signed-in caller can use a user token, an IdentityHound session token, an IdentityHound API key, or an IdentityHound delegated token to reach the [inbox that credential names](/docs/eventwolf/concepts/notifications.md#the-inbox).
-   **Credential:** the examples send a signed-in principal’s user token, `ut_test_…`, as `Authorization: Bearer <token>`.

### Response

`200 OK`, with:

| Name | Type | Present | Description |
| --- | --- | --- | --- |
| `topics` | [`TopicPreference`](/docs/eventwolf/reference/recipients.md#the-topicpreference-object) array | Always |  |

### Errors

Only the codes any operation can answer with, which [Conventions](/docs/eventwolf/reference.md#conventions) lists.

```bash tab="curl"
curl https://api.agentpost.tools/v1/events/inbox/preferences \
  -H "Authorization: Bearer ut_test_…"
```

```json title="Response"
{
  "topics": [
    {
      "topic": "assignments",
      "name": "Assignments",
      "description": "When a request is assigned to you",
      "required": false,
      "channels": {
        "inbox": true,
        "push": true
      },
      "set": {
        "push": true
      }
    }
  ]
}
```

## Set your preferences

`PUT /inbox/preferences`

Sets your preferences for the topics given; topics you leave out keep theirs, and `null` goes back to the topic’s default. A preference for a required topic is kept, and changes nothing while the topic is required.

-   **Who may call:** A signed-in caller can use a user token, an IdentityHound session token, an IdentityHound API key, or an IdentityHound delegated token to reach the [inbox that credential names](/docs/eventwolf/concepts/notifications.md#the-inbox).
-   **Credential:** the examples send a signed-in principal’s user token, `ut_test_…`, as `Authorization: Bearer <token>`.
-   **Idempotency-Key:** optional. [Retrying a write](/docs/platform/api-basics.md#retrying-a-write) has the rule.

### Body

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `topics` | `object` | Yes |  |
| `topics.{key}.inbox` | `boolean` or `null` | No |  |
| `topics.{key}.push` | `boolean` or `null` | No |  |

### Response

`200 OK`, with:

| Name | Type | Present | Description |
| --- | --- | --- | --- |
| `topics` | [`TopicPreference`](/docs/eventwolf/reference/recipients.md#the-topicpreference-object) array | Always |  |

### Errors

-   [`invalid_request`](/docs/eventwolf/errors.md#invalid_request) (400)
-   [`payload_too_large`](/docs/eventwolf/errors.md#payload_too_large) (413)

Any operation can also answer with the codes [Conventions](/docs/eventwolf/reference.md#conventions) lists.

```bash tab="curl"
curl -X PUT https://api.agentpost.tools/v1/events/inbox/preferences \
  -H "Authorization: Bearer ut_test_…" \
  -H "Content-Type: application/json" \
  -d '{
    "topics": {
      "assignments": {
        "push": true
      }
    }
  }'
```

```json title="Response"
{
  "topics": [
    {
      "topic": "assignments",
      "name": "Assignments",
      "description": "When a request is assigned to you",
      "required": false,
      "channels": {
        "inbox": true,
        "push": true
      },
      "set": {
        "push": true
      }
    }
  ]
}
```

## Stream your notifications

`GET /inbox/stream`

Server-Sent Events: each new notification as a `NotificationRecord` whose message `id` is its ID, and a `heartbeat` message with your `InboxCount`. The stream sends a message with only an `id` after any catch-up, and each heartbeat has an `id` too. These IDs are cursors in digits that mark how far the stream has read. Reconnect with the last `id` you received as `Last-Event-ID`, or `after` for a client that can’t set it, to resume from that point within the retained history. Your credential is checked again at each heartbeat, and once it stops working the stream ends with an `error` message: `unauthenticated` when your user token expired, so reconnect with a fresh one, or `forbidden` when access was withdrawn. [Notification retention](/docs/eventwolf/concepts/notifications.md#limits) explains how the stream handles removed notifications.

-   **Who may call:** A signed-in caller can use a user token, an IdentityHound session token, an IdentityHound API key, or an IdentityHound delegated token to reach the [inbox that credential names](/docs/eventwolf/concepts/notifications.md#the-inbox).
-   **Credential:** the examples send a signed-in principal’s user token, `ut_test_…`, as `Authorization: Bearer <token>`.
-   **Last-Event-ID:** Optional. The last message `id` you received: a notification ID or a cursor.

### Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `after` | `string` | No | The last message `id` you received, a notification ID or a cursor, for a client that can’t set `Last-Event-ID`. |

### Response

`200 OK`, with no body.

### Errors

-   [`invalid_request`](/docs/eventwolf/errors.md#invalid_request) (400)

Any operation can also answer with the codes [Conventions](/docs/eventwolf/reference.md#conventions) lists.

```bash tab="curl"
curl https://api.agentpost.tools/v1/events/inbox/stream \
  -H "Authorization: Bearer ut_test_…"
```

```text title="Response"
200 OK
```

## The NotificationRecord object

One notification: rendered, with a `title`, or erased, with `erasedAt` and no text.

| Name | Type | Present | Description |
| --- | --- | --- | --- |
| `id` | `string` | Always | A notification ID, `ntf_…`. |
| `recipientId` | `string` | Always |  |
| `topic` | `string` | Always |  |
| `status` | `"delivered"` or `"skipped"` | Always | `skipped` notifications are recorded, never shown in an inbox. |
| `skipReason` | `"preference_off"` | When set |  |
| `eventSequence` | `number` | Always |  |
| `subscriptionId` | `string` | Always | A subscription ID, `sub_…`. |
| `readAt` | `string` | When set |  |
| `archivedAt` | `string` | When set |  |
| `createdAt` | `string` | Always |  |
| `title` | `string` | When set | Present on every notification but an erased one, which has none. |
| `body` | `string` | When set |  |
| `url` | `string` | When set |  |
| `erasedAt` | `string` | When set | When the notification’s event was erased. Present only on an erased notification, which has no `title`, `body`, or `url`. |

```json title="The NotificationRecord object"
{
  "id": "ntf_01M79YXJ3F3P1VQPWS0ZVBHHAW",
  "recipientId": "u_ana",
  "topic": "assignments",
  "title": "Ben assigned “Refund for order 1042” to you",
  "url": "/requests/r_9",
  "status": "delivered",
  "eventSequence": 42,
  "subscriptionId": "sub_01M79K2W6Q8RZ4T1NB0XJ7C3DA",
  "createdAt": "2026-11-12T09:41:07.000Z"
}
```

## The InboxCount object

What is waiting in an inbox, archived notifications left out.

| Name | Type | Present | Description |
| --- | --- | --- | --- |
| `unread` | `number` | Always |  |
| `unseen` | `number` | Always | Newer than the recipient’s inbox seen position. Phone badges have their own positions. |

```json title="The InboxCount object"
{
  "unread": 1,
  "unseen": 0
}
```

## The ReadAllResponse object

| Name | Type | Present | Description |
| --- | --- | --- | --- |
| `read` | `number` | Always | Notifications marked read by this call. |

```json title="The ReadAllResponse object"
{
  "read": 4
}
```
