Skip to content
Agentpost robot in sunglasses on a red circleAgentpost

Ingestion failures

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

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. 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 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 array Always
next string When set

Errors

Any operation can also answer with the codes Conventions lists.

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