---
title: "EventWolf API: Push addresses"
description: "Register a push address, mark a push address seen, remove a push address, or remove a push address by its token, with the EventWolf API."
url: "https://agentpost.tools/docs/eventwolf/reference/push-addresses"
kind: reference
---

# Push addresses

The devices a recipient’s notifications reach by push: each one a provider and the token your app got from it, such as an Expo push token. Your backend registers a token after the principal signs in and removes it when they sign out. A token belongs to one recipient at a time, so a shared phone never shows one principal’s notifications to the next.

[Push](/docs/eventwolf/concepts/push.md) explains how a token is bound to one recipient, what a push carries, and what happens when a device is gone.

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.

## Register a push address

`POST /recipients/:id/push-addresses`

Binds a device’s push token to a recipient and answers with the address, whose `id` your backend keeps beside the principal’s session to remove it at sign-out. Registering a token another recipient in this project holds moves it to this one under a new ID, and their pushes stop; registering a token this recipient holds answers with the same address, `active` again if it was `invalid`.

-   **Who may call:** Your server, with your project’s secret key; or a signed-in principal, for their own push addresses only, with a user token or their IdentityHound session token.
-   **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 |
| --- | --- | --- | --- |
| `provider` | `"expo"` | Yes |  |
| `token` | `string` | Yes | 1–500 characters. |

### Response

`200 OK`, with:

| Name | Type | Present | Description |
| --- | --- | --- | --- |
| `pushAddress` | [`PushAddressRecord`](/docs/eventwolf/reference/push-addresses.md#the-pushaddressrecord-object) | Always |  |

### Errors

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

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/recipients/u_ana/push-addresses \
  -H "Authorization: Bearer sk_test_…" \
  -H "Content-Type: application/json" \
  -d '{
    "provider": "expo",
    "token": "ExponentPushToken[xxxxxxxxxxxxxxxxxxxxxx]"
  }'
```

```json title="Response"
{
  "pushAddress": {
    "id": "pad_01M79Z4K8R2T6V0X3B5D7F9H1J",
    "recipientId": "u_ana",
    "provider": "expo",
    "status": "active",
    "createdAt": "2026-11-13T09:30:00.000Z"
  }
}
```

## Mark a push address seen

`POST /push-addresses/:id/seen`

Marks everything through one of the recipient’s notifications seen on this phone, including one a push carried for a topic whose inbox is off. Answers with its stored position and remaining unseen count. An older position changes nothing. Leaves the inbox and every other address alone.

-   **Who may call:** Your server, with your project’s secret key; or a signed-in principal, for their own push addresses only, with a user token or their IdentityHound session token.
-   **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 push address ID, `pad_…`. The `id` of a [`PushAddressRecord`](/docs/eventwolf/reference/push-addresses.md#the-pushaddressrecord-object). |

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

-   [`not_found`](/docs/eventwolf/errors.md#not_found) (404)
-   [`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/push-addresses/pad_01M79Z4K8R2T6V0X3B5D7F9H1J/seen \
  -H "Authorization: Bearer sk_test_…" \
  -H "Content-Type: application/json" \
  -d '{
    "through": "ntf_01M79YXJ3F3P1VQPWS0ZVBHHAW"
  }'
```

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

## Remove a push address

`DELETE /push-addresses/:id`

Removes a push address, as when the principal signs out on that device. Pushes waiting to go to it are canceled. An address that is already gone, or that moved to someone else under a new ID, answers the same.

-   **Who may call:** Your server, with your project’s secret key; or a signed-in principal, for their own push addresses only, with a user token or their IdentityHound session token.
-   **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 push address ID, `pad_…`. The `id` of a [`PushAddressRecord`](/docs/eventwolf/reference/push-addresses.md#the-pushaddressrecord-object). |

### Response

`204 No Content`, with no body.

### Errors

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

```bash tab="curl"
curl -X DELETE https://api.agentpost.tools/v1/events/push-addresses/pad_01M79Z4K8R2T6V0X3B5D7F9H1J \
  -H "Authorization: Bearer sk_test_…"
```

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

## Remove a push address by its token

`DELETE /push-addresses`

Removes the push address with this provider and token, whichever recipient in this project holds it, for a backend that kept the token rather than the address ID. Pushes waiting to go to it are canceled.

-   **Who may call:** Your server, with your project’s secret key; or a signed-in principal, for their own push addresses only, with a user token or their IdentityHound session token.
-   **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.

### Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `provider` | `"expo"` | Yes |  |
| `token` | `string` | Yes | 1–500 characters. |

### 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/push-addresses?provider=expo&token=ExponentPushToken%5Bxxxxxxxxxxxxxxxxxxxxxx%5D' \
  -H "Authorization: Bearer sk_test_…"
```

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

## The PushAddressRecord object

One push address: a provider and a token, bound to a recipient. The token is never returned.

| Name | Type | Present | Description |
| --- | --- | --- | --- |
| `id` | `string` | Always | A push address ID, `pad_…`. |
| `recipientId` | `string` | Always |  |
| `provider` | `"expo"` | Always | The push providers EventWolf sends through. Expo first; direct APNs, FCM, and Web Push would be new values. |
| `status` | `"active"` or `"invalid"` | Always | `invalid` once the provider reports the app gone from the device; deliveries to it are then skipped. Registering the token again makes it `active`. |
| `invalidatedAt` | `string` | When set |  |
| `invalidReason` | `"device_not_registered"` | When set | Why an address stopped being used: the provider said the app is no longer on the device. |
| `seenThrough` | `string` | When set | This phone’s newest seen notification. Absent on a new address, which starts with nothing seen. |
| `createdAt` | `string` | Always |  |
| `lastDeliveredAt` | `string` | When set | When a push to it last reached the device, as the provider reported. |

```json title="The PushAddressRecord object"
{
  "id": "pad_01M79Z4K8R2T6V0X3B5D7F9H1J",
  "recipientId": "u_ana",
  "provider": "expo",
  "status": "active",
  "createdAt": "2026-11-02T14:05:00.000Z",
  "lastDeliveredAt": "2026-11-12T09:41:07.000Z",
  "seenThrough": "ntf_01M79YXJ3F3P1VQPWS0ZVBHHAW"
}
```

## The SeenResponse object

| Name | Type | Present | Description |
| --- | --- | --- | --- |
| `seenThrough` | `string` | Always | The stored position after the call: the one given, or a newer one already stored. |
| `unseen` | `number` | Always | Remaining unseen notifications on the target surface. |

```json title="The SeenResponse object"
{
  "seenThrough": "ntf_01M79YXJ3F3P1VQPWS0ZVBHHAW",
  "unseen": 0
}
```
