---
title: "EventWolf API: Ingestion failures"
description: "List ingestion failures, with the EventWolf API."
url: "https://agentpost.tools/docs/eventwolf/reference/ingest-failures"
kind: reference
---

# Ingestion failures

The events EventWolf rejected, with why, so a producer’s bug shows up before anyone misses its events.

[Events](/docs/eventwolf/concepts/events.md#rejected-events) explains why an event is rejected and how to publish 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 ingestion failures

`GET /ingest-failures`

Rejected events, newest first.

-   **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 |
| --- | --- | --- | --- |
| `type` | `string` | No |  |
| `source` | `string` | No |  |
| `code` | `string` | No | One of `"invalid_envelope"`, `"unknown_type"`, `"invalid_data"`, or `"data_too_large"`. |
| `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 |
| --- | --- | --- | --- |
| `failures` | [`IngestFailureRecord`](/docs/eventwolf/reference/ingest-failures.md#the-ingestfailurerecord-object) array | Always |  |
| `next` | `string` | When set |  |

### Errors

-   [`query_timeout`](/docs/eventwolf/errors.md#query_timeout) (408)
-   [`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/ingest-failures?type=request.assigned' \
  -H "Authorization: Bearer sk_test_…"
```

```json title="Response"
{
  "failures": [
    {
      "id": "ifl_01M79T232KQA2P9BYW5WJNP3N2",
      "receivedAt": "2026-11-12T11:02:44.000Z",
      "publishedBy": {
        "actor": {
          "id": "key:backend"
        },
        "via": "host"
      },
      "claimed": {
        "id": "01JD52A7C9D0E1F2G3H4J5K6M7",
        "source": "/support/backend",
        "type": "request.assigned"
      },
      "code": "invalid_data",
      "issues": ["data must have required property 'assignee'"],
      "bodyExcerpt": "{\"specversion\":\"1.0\",\"id\":\"01JD52A7C9D0E1F2G3H4J5K6M7\",\"source\":\"/support/backend\",\"type\":\"request.assigned\",\"subject\":\"r_10\",\"data\":{\"summary\":\"Ben assigned a request\"}}"
    }
  ]
}
```

## The IngestFailureRecord object

| Name | Type | Present | Description |
| --- | --- | --- | --- |
| `id` | `string` | Always | An ingestion failure ID, `ifl_…`. |
| `receivedAt` | `string` | Always |  |
| `publishedBy` | `object` | Always | How a publisher is recorded beside the `source` it claimed. |
| `publishedBy.actor` | `object` | Always | The principal that made the request with its own credential. Your project’s secret key is `key:` and the key’s name, with no `kind`. |
| `publishedBy.actor.id` | `string` | Always | The principal’s ID. |
| `publishedBy.actor.kind` | `string` | When set | The kind a principal may declare. A principal that declared none has no `kind`. One of `"human"`, `"agent"`, or `"service"`. |
| `publishedBy.onBehalfOf` | `object` | When set | The delegator, when the actor acted under a delegation. |
| `publishedBy.onBehalfOf.id` | `string` | Always | The principal’s ID. |
| `publishedBy.onBehalfOf.kind` | `string` | When set | The kind a principal may declare. A principal that declared none has no `kind`. One of `"human"`, `"agent"`, or `"service"`. |
| `publishedBy.via` | `string` | Always | One of `"host"`, `"in_process"`, or `"import"`. |
| `claimed` | `object` | Always |  |
| `claimed.id` | `string` | When set |  |
| `claimed.source` | `string` | When set |  |
| `claimed.type` | `string` | When set |  |
| `code` | `string` | Always | One of `"invalid_envelope"`, `"unknown_type"`, `"invalid_data"`, or `"data_too_large"`. |
| `issues` | `string[]` | Always |  |
| `bodyExcerpt` | `string` | When set |  |

```json title="The IngestFailureRecord object"
{
  "id": "ifl_01M79T232KQA2P9BYW5WJNP3N2",
  "receivedAt": "2026-11-12T11:02:44.000Z",
  "publishedBy": {
    "actor": {
      "id": "key:backend"
    },
    "via": "host"
  },
  "claimed": {
    "id": "01JD52A7C9D0E1F2G3H4J5K6M7",
    "source": "/support/backend",
    "type": "request.assigned"
  },
  "code": "invalid_data",
  "issues": ["data must have required property 'assignee'"],
  "bodyExcerpt": "{\"specversion\":\"1.0\",\"id\":\"01JD52A7C9D0E1F2G3H4J5K6M7\",\"source\":\"/support/backend\",\"type\":\"request.assigned\",\"subject\":\"r_10\",\"data\":{\"summary\":\"Ben assigned a request\"}}"
}
```
