EventWolf API reference
Every operation EventWolf serves, generated from its contract, so these pages match the API. Every request follows the API basics. Start with the EventWolf quickstart if you are new.
For tools that read OpenAPI, /docs/eventwolf/openapi.json describes every operation here as OpenAPI 3.1, with its credentials, schemas, examples, and error codes.
Who may call
Each operation names who may call it. Platform credentials explains each credential.
- Your server sends your project’s secret key, which reaches every operation but the inbox.
- A signed-in caller can use a user token, an IdentityHound session token, an IdentityHound API key, or an IdentityHound delegated token to reach the inbox that credential names.
- A tool that spans your workspace sends a workspace key and names one project in the
x-agentpost-projectheader. It reaches only the reads: querying, looking up, and tailing events, and the event type registry.
Conventions
What this API sets for every operation in this reference. API basics has the rules themselves, and its table compares the APIs.
- Base URL: every path here starts with
https://api.agentpost.tools/v1/events. - Idempotency: Every write (
POST,PUT,PATCH,DELETE) takesIdempotency-Key, except Publish an event, Import event history, Validate an event, Check a schema, and Test a subscription, whose entries say why. A key’s first answer is kept for 24 hours. Retrying a write has the rule, with the codesidempotency_mismatchandconflictit answers with. - Lists: Every list takes
limit, 1 to 200, default 50, and pages withnextandafter. Lists has the rule. - IDs: each ID starts with its kind’s prefix, as IDs lists.
- Errors: An error’s
docslink goes to its code’s entry on EventWolf errors. Any operation can answer withunauthenticated,forbidden, orinternal_error; each operation lists the other codes it can answer with. Errors describes the body.
IDs
| Kind | Looks like |
|---|---|
| Ingestion failure | ifl_… |
| Endpoint | end_… |
| Subscription | sub_… |
| Match | mat_… |
| Delivery | dlv_… |
| Attempt | att_… |
| Replay | rpl_… |
| Notification | ntf_… |
| Erasure | ers_… |
Resources
Each resource has its own page, with its operations, their examples, and the objects they answer with.
| Resource | What it holds |
|---|---|
| Config | The project’s one versioned config: whether unknown event types are accepted, the most data an event may hold, the delivery timeout and retry schedule, how long records are kept, and for push whether EventWolf sets the badge, the retry schedule, and the Expo access token, which is never returned. |
| Events | Publish CloudEvents, import another system’s history, and read them back: the history by filter, one event by sequence or by its source and ID, what it caused, and a live tail. Erase personal fields from a stored event, and list its erasures. |
| Ingestion failures | The events EventWolf rejected, with why, so a producer’s bug shows up before anyone misses its events. |
| Event types | The registry of your event types: a description, a JSON Schema for data with its versions, the data paths that hold references, and the types EventWolf has seen that nobody registered. |
| Endpoints | The URLs webhooks go to, each with its signing secrets, static headers, and whether it is active. A subscription names an endpoint as its target. |
| Subscriptions | What to do with the events that match a filter: deliver them to an endpoint, or notify principals in their inbox. A change to the filter or target is a new version, and every match records the version it used. |
| 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. |
| Replays | Send a range of history again, to one subscription or every subscription of an endpoint. A replay makes new matches and deliveries, with new webhook-id values and the events’ own id, and never changes the old ones. |
| Topics | What notifications are about, such as assignments: each topic’s name, whether it reaches each channel by default, and whether it is required. |
| Recipients | The principals that notifications reach, by your own ID for each, with the topics they follow and their preferences. |
| 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. |
| Inbox | Manage notifications in the inbox your credential names. List and count them, mark them read, seen, or archived, set inbox preferences, and receive new notifications live. |