---
title: "EventWolf API: Deliveries"
description: "List deliveries, get a delivery, retry a delivery, or cancel a delivery, with the EventWolf API."
url: "https://agentpost.tools/docs/eventwolf/reference/deliveries"
kind: reference
---

# Deliveries

Each webhook EventWolf sends, one per match, and each push to a phone, one per notification and push address, with every attempt: the request, the receiver’s answer or the provider’s ID for the push, or why there was none.

[Deliveries](/docs/eventwolf/concepts/deliveries.md) explains attempts, retries, and statuses. [Fix failed deliveries](/docs/eventwolf/guides/failed-deliveries.md) finds one, reads why it failed, and sends it again.

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 deliveries

`GET /deliveries`

Deliveries, newest first. Use `status=failed` to list deliveries in the [failed status](/docs/eventwolf/concepts/deliveries.md#statuses), including those that exhausted retries or got a `410`.

-   **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>`.
-   **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 |
| --- | --- | --- | --- |
| `status` | `string` | No | One of `"pending"`, `"succeeded"`, `"failed"`, `"skipped"`, or `"canceled"`. |
| `kind` | `"webhook"` or `"push"` | No | `webhook` or `push`. Without it, both. |
| `endpointId` | `string` | No |  |
| `pushAddressId` | `string` | No | Only the pushes to this push address. |
| `subscriptionId` | `string` | No |  |
| `eventSequence` | `integer` | No | Only deliveries for this event’s sequence; at least 1. |
| `from` | `string` | No | An ISO 8601 date and time. |
| `after` | `string` | No |  |
| `limit` | `integer` | No | 1–200; default `50`. |

### Response

`200 OK`, with:

| Name | Type | Present | Description |
| --- | --- | --- | --- |
| `deliveries` | [`DeliveryRecord`](/docs/eventwolf/reference/deliveries.md#the-deliveryrecord-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/deliveries?endpointId=end_01M7A4A7MV7ACEEPN21HTHJE6Y' \
  -H "Authorization: Bearer sk_test_…"
```

```json title="Response"
{
  "deliveries": [
    {
      "id": "dlv_01M784Y1DPQHMAWEB637FMPYWZ",
      "kind": "webhook",
      "eventSequence": 57,
      "matchId": "mat_01M77MA4BADJB617FSKAKFB062",
      "subscriptionId": "sub_01M78RJ7EYFM9WGJ5F35VT6GM7",
      "endpointId": "end_01M7A4A7MV7ACEEPN21HTHJE6Y",
      "status": "succeeded",
      "attempts": 2,
      "createdAt": "2026-11-12T16:20:31.000Z",
      "finishedAt": "2026-11-12T16:20:37.000Z"
    }
  ]
}
```

## Get a delivery

`GET /deliveries/:id`

One delivery and every attempt, oldest first: why each failed is in its `response.status` and `response.bodyExcerpt`, or its `error`.

-   **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 delivery ID, `dlv_…`. The `id` of a [`DeliveryRecord`](/docs/eventwolf/reference/deliveries.md#the-deliveryrecord-object). |

### Response

`200 OK`, with:

| Name | Type | Present | Description |
| --- | --- | --- | --- |
| `delivery` | [`DeliveryRecord`](/docs/eventwolf/reference/deliveries.md#the-deliveryrecord-object) | Always |  |
| `attempts` | [`AttemptRecord`](/docs/eventwolf/reference/deliveries.md#the-attemptrecord-object) array | 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 https://api.agentpost.tools/v1/events/deliveries/dlv_01M784Y1DPQHMAWEB637FMPYWZ \
  -H "Authorization: Bearer sk_test_…"
```

```json title="Response"
{
  "delivery": {
    "id": "dlv_01M784Y1DPQHMAWEB637FMPYWZ",
    "kind": "webhook",
    "eventSequence": 57,
    "matchId": "mat_01M77MA4BADJB617FSKAKFB062",
    "subscriptionId": "sub_01M78RJ7EYFM9WGJ5F35VT6GM7",
    "endpointId": "end_01M7A4A7MV7ACEEPN21HTHJE6Y",
    "status": "succeeded",
    "attempts": 2,
    "createdAt": "2026-11-12T16:20:31.000Z",
    "finishedAt": "2026-11-12T16:20:37.000Z"
  },
  "attempts": [
    {
      "id": "att_01M79H5NGPEGZF2FB3WE90H645",
      "deliveryId": "dlv_01M784Y1DPQHMAWEB637FMPYWZ",
      "n": 1,
      "trigger": "automatic",
      "startedAt": "2026-11-12T16:20:31.000Z",
      "duration": "212ms",
      "request": {
        "target": "https://support.example.com/webhooks/eventwolf",
        "headers": {
          "content-type": "application/cloudevents+json",
          "user-agent": "eventwolf/1 (+https://agentpost.tools/docs/eventwolf)",
          "webhook-id": "dlv_01M784Y1DPQHMAWEB637FMPYWZ",
          "webhook-timestamp": "1794500431",
          "x-eventwolf-subscription": "sub_01M78RJ7EYFM9WGJ5F35VT6GM7",
          "x-eventwolf-attempt": "1",
          "x-eventwolf-trigger": "automatic"
        }
      },
      "response": {
        "status": 503,
        "headers": {
          "content-type": "text/plain"
        },
        "bodyExcerpt": "upstream unavailable"
      },
      "outcome": "failed"
    },
    {
      "id": "att_01M78DATBYZV18RDVFT6Z5EKWR",
      "deliveryId": "dlv_01M784Y1DPQHMAWEB637FMPYWZ",
      "n": 2,
      "trigger": "automatic",
      "startedAt": "2026-11-12T16:20:36.000Z",
      "duration": "148ms",
      "request": {
        "target": "https://support.example.com/webhooks/eventwolf",
        "headers": {
          "content-type": "application/cloudevents+json",
          "user-agent": "eventwolf/1 (+https://agentpost.tools/docs/eventwolf)",
          "webhook-id": "dlv_01M784Y1DPQHMAWEB637FMPYWZ",
          "webhook-timestamp": "1794500431",
          "x-eventwolf-subscription": "sub_01M78RJ7EYFM9WGJ5F35VT6GM7",
          "x-eventwolf-attempt": "2",
          "x-eventwolf-trigger": "automatic"
        }
      },
      "response": {
        "status": 200,
        "headers": {
          "content-type": "application/json"
        }
      },
      "outcome": "succeeded"
    }
  ]
}
```

## Retry a delivery

`POST /deliveries/:id/retry`

Puts a delivery back in the queue to be sent now, with the same `webhook-id`, so a receiver that saw it before knows it. A failed, skipped, or canceled delivery gets another attempt, and a pending one is attempted at once instead of at its scheduled time. One that succeeded answers `conflict`: replay its event to send it again.

-   **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 delivery ID, `dlv_…`. The `id` of a [`DeliveryRecord`](/docs/eventwolf/reference/deliveries.md#the-deliveryrecord-object). |

### Response

`200 OK`, with:

| Name | Type | Present | Description |
| --- | --- | --- | --- |
| `delivery` | [`DeliveryRecord`](/docs/eventwolf/reference/deliveries.md#the-deliveryrecord-object) | Always |  |
| `attempts` | [`AttemptRecord`](/docs/eventwolf/reference/deliveries.md#the-attemptrecord-object) array | Always |  |

### Errors

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

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/deliveries/dlv_01M784Y1DPQHMAWEB637FMPYWZ/retry \
  -H "Authorization: Bearer sk_test_…"
```

```json title="Response"
{
  "delivery": {
    "id": "dlv_01M784Y1DPQHMAWEB637FMPYWZ",
    "kind": "webhook",
    "eventSequence": 57,
    "matchId": "mat_01M77MA4BADJB617FSKAKFB062",
    "subscriptionId": "sub_01M78RJ7EYFM9WGJ5F35VT6GM7",
    "endpointId": "end_01M7A4A7MV7ACEEPN21HTHJE6Y",
    "status": "pending",
    "attempts": 2,
    "createdAt": "2026-11-12T16:20:31.000Z",
    "nextAttemptAt": "2026-11-13T09:30:00.000Z"
  },
  "attempts": [
    {
      "id": "att_01M79H5NGPEGZF2FB3WE90H645",
      "deliveryId": "dlv_01M784Y1DPQHMAWEB637FMPYWZ",
      "n": 1,
      "trigger": "automatic",
      "startedAt": "2026-11-12T16:20:31.000Z",
      "duration": "212ms",
      "request": {
        "target": "https://support.example.com/webhooks/eventwolf",
        "headers": {
          "content-type": "application/cloudevents+json",
          "user-agent": "eventwolf/1 (+https://agentpost.tools/docs/eventwolf)",
          "webhook-id": "dlv_01M784Y1DPQHMAWEB637FMPYWZ",
          "webhook-timestamp": "1794500431",
          "x-eventwolf-subscription": "sub_01M78RJ7EYFM9WGJ5F35VT6GM7",
          "x-eventwolf-attempt": "1",
          "x-eventwolf-trigger": "automatic"
        }
      },
      "response": {
        "status": 503,
        "headers": {
          "content-type": "text/plain"
        },
        "bodyExcerpt": "upstream unavailable"
      },
      "outcome": "failed"
    },
    {
      "id": "att_01M78DATBYZV18RDVFT6Z5EKWR",
      "deliveryId": "dlv_01M784Y1DPQHMAWEB637FMPYWZ",
      "n": 2,
      "trigger": "automatic",
      "startedAt": "2026-11-12T16:20:36.000Z",
      "duration": "148ms",
      "request": {
        "target": "https://support.example.com/webhooks/eventwolf",
        "headers": {
          "content-type": "application/cloudevents+json",
          "user-agent": "eventwolf/1 (+https://agentpost.tools/docs/eventwolf)",
          "webhook-id": "dlv_01M784Y1DPQHMAWEB637FMPYWZ",
          "webhook-timestamp": "1794500431",
          "x-eventwolf-subscription": "sub_01M78RJ7EYFM9WGJ5F35VT6GM7",
          "x-eventwolf-attempt": "2",
          "x-eventwolf-trigger": "automatic"
        }
      },
      "response": {
        "status": 200,
        "headers": {
          "content-type": "application/json"
        }
      },
      "outcome": "succeeded"
    }
  ]
}
```

## Cancel a delivery

`POST /deliveries/:id/cancel`

Stops a pending delivery before its next attempt; nothing already sent is taken back. One that isn’t pending answers `conflict`.

-   **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 delivery ID, `dlv_…`. The `id` of a [`DeliveryRecord`](/docs/eventwolf/reference/deliveries.md#the-deliveryrecord-object). |

### Response

`200 OK`, with:

| Name | Type | Present | Description |
| --- | --- | --- | --- |
| `delivery` | [`DeliveryRecord`](/docs/eventwolf/reference/deliveries.md#the-deliveryrecord-object) | Always |  |
| `attempts` | [`AttemptRecord`](/docs/eventwolf/reference/deliveries.md#the-attemptrecord-object) array | Always |  |

### Errors

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

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/deliveries/dlv_01M784Y1DPQHMAWEB637FMPYWZ/cancel \
  -H "Authorization: Bearer sk_test_…"
```

```json title="Response"
{
  "delivery": {
    "id": "dlv_01M784Y1DPQHMAWEB637FMPYWZ",
    "kind": "webhook",
    "eventSequence": 57,
    "matchId": "mat_01M77MA4BADJB617FSKAKFB062",
    "subscriptionId": "sub_01M78RJ7EYFM9WGJ5F35VT6GM7",
    "endpointId": "end_01M7A4A7MV7ACEEPN21HTHJE6Y",
    "status": "canceled",
    "attempts": 1,
    "createdAt": "2026-11-12T16:20:31.000Z",
    "finishedAt": "2026-11-13T09:30:00.000Z"
  },
  "attempts": [
    {
      "id": "att_01M79H5NGPEGZF2FB3WE90H645",
      "deliveryId": "dlv_01M784Y1DPQHMAWEB637FMPYWZ",
      "n": 1,
      "trigger": "automatic",
      "startedAt": "2026-11-12T16:20:31.000Z",
      "duration": "212ms",
      "request": {
        "target": "https://support.example.com/webhooks/eventwolf",
        "headers": {
          "content-type": "application/cloudevents+json",
          "user-agent": "eventwolf/1 (+https://agentpost.tools/docs/eventwolf)",
          "webhook-id": "dlv_01M784Y1DPQHMAWEB637FMPYWZ",
          "webhook-timestamp": "1794500431",
          "x-eventwolf-subscription": "sub_01M78RJ7EYFM9WGJ5F35VT6GM7",
          "x-eventwolf-attempt": "1",
          "x-eventwolf-trigger": "automatic"
        }
      },
      "response": {
        "status": 503,
        "headers": {
          "content-type": "text/plain"
        },
        "bodyExcerpt": "upstream unavailable"
      },
      "outcome": "failed"
    }
  ]
}
```

## The DeliveryRecord object

| Name | Type | Present | Description |
| --- | --- | --- | --- |
| `id` | `string` | Always | Also the `webhook-id` header on every attempt of a webhook. |
| `kind` | `"webhook"` or `"push"` | Always | What a delivery sends: a signed webhook to an endpoint, or a push to one of a recipient’s devices. |
| `eventSequence` | `number` | Always |  |
| `matchId` | `string` | When set | Absent for an endpoint’s test ping, which has no subscription. |
| `subscriptionId` | `string` | When set | A subscription ID, `sub_…`. |
| `endpointId` | `string` | When set | A webhook’s endpoint. |
| `notificationId` | `string` | When set | A push’s notification, whose text and `url` it carries. |
| `pushAddressId` | `string` | When set | A push’s address: one device of the notification’s recipient. |
| `status` | `string` | Always | A push stays `pending` after it is sent until the provider reports whether it reached the device. One of `"pending"`, `"succeeded"`, `"failed"`, `"skipped"`, or `"canceled"`. |
| `skipReason` | `string` | When set | Why a delivery was skipped: the endpoint was disabled, the event is about that endpoint, the push address was invalid, or the event was erased before the push was sent. One of `"endpoint_disabled"`, `"about_endpoint"`, `"address_invalid"`, or `"event_erased"`. |
| `attempts` | `number` | Always | How many attempts have been made. |
| `nextAttemptAt` | `string` | When set |  |
| `createdAt` | `string` | Always |  |
| `finishedAt` | `string` | When set |  |

```json title="The DeliveryRecord object"
{
  "id": "dlv_01M784Y1DPQHMAWEB637FMPYWZ",
  "kind": "webhook",
  "eventSequence": 57,
  "matchId": "mat_01M77MA4BADJB617FSKAKFB062",
  "subscriptionId": "sub_01M78RJ7EYFM9WGJ5F35VT6GM7",
  "endpointId": "end_01M7A4A7MV7ACEEPN21HTHJE6Y",
  "status": "succeeded",
  "attempts": 2,
  "createdAt": "2026-11-12T16:20:31.000Z",
  "finishedAt": "2026-11-12T16:20:37.000Z"
}
```

## The AttemptRecord object

| Name | Type | Present | Description |
| --- | --- | --- | --- |
| `id` | `string` | Always | An attempt ID, `att_…`. |
| `deliveryId` | `string` | Always | A delivery ID, `dlv_…`. |
| `n` | `number` | Always | 1 for the first attempt. |
| `trigger` | `string` | Always | One of `"automatic"`, `"manual"`, `"recover"`, or `"replay"`. |
| `startedAt` | `string` | Always |  |
| `duration` | `string` | Always | How long the attempt took, such as `"240ms"`. |
| `request` | `object` | Always | The request as sent, without the signature and the endpoint’s own headers. A push’s target is its provider, such as `expo`, never the token. |
| `request.target` | `string` | Always |  |
| `request.headers` | `object` | Always | Each value is a `string`. |
| `response` | `object` | When set |  |
| `response.status` | `number` | Always |  |
| `response.headers` | `object` | Always | Each value is a `string`. |
| `response.bodyExcerpt` | `string` | When set | The first 2 KB of the body. |
| `providerMessageId` | `string` | When set | The provider’s ID for a push it accepted, by which it later reports whether the push reached the device. |
| `error` | `object` | When set |  |
| `error.code` | `string` | Always | One of `"timeout"`, `"dns"`, `"connection"`, `"tls"`, `"redirect"`, `"ssrf_blocked"`, `"push_send_failed"`, `"push_delivery_failed"`, or `"device_not_registered"`. |
| `error.message` | `string` | Always |  |
| `outcome` | `"succeeded"` or `"failed"` | Always | For a push, `succeeded` means the provider accepted it; when the provider then reports it undelivered, or never confirms it, the attempt becomes `failed` with that error. |

```json title="The AttemptRecord object"
{
  "id": "att_01M79H5NGPEGZF2FB3WE90H645",
  "deliveryId": "dlv_01M784Y1DPQHMAWEB637FMPYWZ",
  "n": 1,
  "trigger": "automatic",
  "startedAt": "2026-11-12T16:20:31.000Z",
  "duration": "212ms",
  "request": {
    "target": "https://support.example.com/webhooks/eventwolf",
    "headers": {
      "content-type": "application/cloudevents+json",
      "user-agent": "eventwolf/1 (+https://agentpost.tools/docs/eventwolf)",
      "webhook-id": "dlv_01M784Y1DPQHMAWEB637FMPYWZ",
      "webhook-timestamp": "1794500431",
      "x-eventwolf-subscription": "sub_01M78RJ7EYFM9WGJ5F35VT6GM7",
      "x-eventwolf-attempt": "1",
      "x-eventwolf-trigger": "automatic"
    }
  },
  "response": {
    "status": 503,
    "headers": {
      "content-type": "text/plain"
    },
    "bodyExcerpt": "upstream unavailable"
  },
  "outcome": "failed"
}
```
