---
title: "EventWolf API: Recipients"
description: "Get a recipient, delete a recipient, set the topics a recipient follows, get recipient preferences, or set recipient preferences, with the EventWolf API."
url: "https://agentpost.tools/docs/eventwolf/reference/recipients"
kind: reference
---

# Recipients

The principals that notifications reach, by your own ID for each, with the topics they follow and their preferences.

[Notifications](/docs/eventwolf/concepts/notifications.md#recipients) explains recipients, follows, and preferences.

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.

## Get a recipient

`GET /recipients/:id`

One recipient, with their follows and preferences. A recipient exists once something is stored for them: follows, preferences, or a seen position.

-   **Who may call:** Your server, with your project’s secret key.
-   **Credential:** the examples send your project’s `dev` secret key, `sk_test_…`, as `Authorization: Bearer <token>`.

### Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | `string` | Yes | A recipient ID: your own ID for the principal, such as `u_ana`, up to 200 printable characters without spaces. The `id` of a [`RecipientRecord`](/docs/eventwolf/reference/recipients.md#the-recipientrecord-object). |

### Response

`200 OK`, with:

| Name | Type | Present | Description |
| --- | --- | --- | --- |
| `recipient` | [`RecipientRecord`](/docs/eventwolf/reference/recipients.md#the-recipientrecord-object) | Always |  |

### Errors

-   [`invalid_request`](/docs/eventwolf/errors.md#invalid_request) (400)
-   [`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 https://api.agentpost.tools/v1/events/recipients/u_ana \
  -H "Authorization: Bearer sk_test_…"
```

```json title="Response"
{
  "recipient": {
    "id": "u_ana",
    "follows": ["assignments"],
    "preferences": {
      "assignments": {
        "push": true
      }
    },
    "seenThrough": "ntf_01M79YXJ3F3P1VQPWS0ZVBHHAW",
    "createdAt": "2026-11-02T14:05:00.000Z",
    "updatedAt": "2026-11-13T09:30:00.000Z"
  }
}
```

## Delete a recipient

`DELETE /recipients/:id`

Deletes a recipient with their follows, preferences, notifications, and push addresses, as when a principal leaves your product.

-   **Who may call:** Your server, with your project’s secret key.
-   **Credential:** the examples send your project’s `dev` secret key, `sk_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 recipient ID: your own ID for the principal, such as `u_ana`, up to 200 printable characters without spaces. The `id` of a [`RecipientRecord`](/docs/eventwolf/reference/recipients.md#the-recipientrecord-object). |

### Response

`204 No Content`, 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 -X DELETE https://api.agentpost.tools/v1/events/recipients/u_ana \
  -H "Authorization: Bearer sk_test_…"
```

```text title="Response"
204 No Content
```

## Set the topics a recipient follows

`PUT /recipients/:id/follows`

Replaces the topics a recipient follows, which a subscription with `followers: true` notifies.

-   **Who may call:** Your server, with your project’s secret key.
-   **Credential:** the examples send your project’s `dev` secret key, `sk_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 recipient ID: your own ID for the principal, such as `u_ana`, up to 200 printable characters without spaces. The `id` of a [`RecipientRecord`](/docs/eventwolf/reference/recipients.md#the-recipientrecord-object). |

### Body

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `topics` | `string[]` | Yes | Up to 200 items. |

### Response

`200 OK`, with:

| Name | Type | Present | Description |
| --- | --- | --- | --- |
| `recipient` | [`RecipientRecord`](/docs/eventwolf/reference/recipients.md#the-recipientrecord-object) | 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/recipients/u_ana/follows \
  -H "Authorization: Bearer sk_test_…" \
  -H "Content-Type: application/json" \
  -d '{
    "topics": [
      "assignments"
    ]
  }'
```

```json title="Response"
{
  "recipient": {
    "id": "u_ana",
    "follows": ["assignments"],
    "preferences": {
      "assignments": {
        "push": true
      }
    },
    "seenThrough": "ntf_01M79YXJ3F3P1VQPWS0ZVBHHAW",
    "createdAt": "2026-11-02T14:05:00.000Z",
    "updatedAt": "2026-11-13T09:30:00.000Z"
  }
}
```

## Get recipient preferences

`GET /recipients/:id/preferences`

Every topic as the recipient’s preferences show it: whether it reaches each channel now, and what they set.

-   **Who may call:** Your server, with your project’s secret key.
-   **Credential:** the examples send your project’s `dev` secret key, `sk_test_…`, as `Authorization: Bearer <token>`.

### Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | `string` | Yes | A recipient ID: your own ID for the principal, such as `u_ana`, up to 200 printable characters without spaces. The `id` of a [`RecipientRecord`](/docs/eventwolf/reference/recipients.md#the-recipientrecord-object). |

### 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)

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/recipients/u_ana/preferences \
  -H "Authorization: Bearer sk_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 recipient preferences

`PUT /recipients/:id/preferences`

Sets a recipient’s 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:** Your server, with your project’s secret key.
-   **Credential:** the examples send your project’s `dev` secret key, `sk_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 recipient ID: your own ID for the principal, such as `u_ana`, up to 200 printable characters without spaces. The `id` of a [`RecipientRecord`](/docs/eventwolf/reference/recipients.md#the-recipientrecord-object). |

### 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/recipients/u_ana/preferences \
  -H "Authorization: Bearer sk_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
      }
    }
  ]
}
```

## The RecipientRecord object

| Name | Type | Present | Description |
| --- | --- | --- | --- |
| `id` | `string` | Always |  |
| `follows` | `string[]` | Always |  |
| `preferences` | `object` | Always | Only what the recipient set; a topic missing here follows its defaults. Each value is an `object`. |
| `seenThrough` | `string` | When set | The newest notification the recipient has seen. |
| `createdAt` | `string` | Always |  |
| `updatedAt` | `string` | Always |  |

```json title="The RecipientRecord object"
{
  "id": "u_ana",
  "follows": ["assignments"],
  "preferences": {
    "assignments": {
      "push": true
    }
  },
  "seenThrough": "ntf_01M79YXJ3F3P1VQPWS0ZVBHHAW",
  "createdAt": "2026-11-02T14:05:00.000Z",
  "updatedAt": "2026-11-13T09:30:00.000Z"
}
```

## The TopicPreference object

One topic as a principal’s preferences show it.

| Name | Type | Present | Description |
| --- | --- | --- | --- |
| `topic` | `string` | Always |  |
| `name` | `string` | Always |  |
| `description` | `string` | When set |  |
| `required` | `boolean` | Always | A required topic’s notifications are delivered whatever is set, so your preference page can lock its control. |
| `channels` | `object` | Always | Whether a notification on this topic reaches each channel now: the preference, or else the default. Each value is a `boolean`. |
| `set` | `object` | Always | What the recipient set, apart from the defaults. Each value is a `boolean`. |

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