> ## Documentation Index
> Fetch the complete documentation index at: https://docs.metaphi.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Events

> Event types, webhook endpoints and the event list. API version 2026-11-25.

An `event` says what happened to a request, a batch or the balance. It is delivered to your webhook endpoints, signed per [Standard Webhooks](https://www.standardwebhooks.com), and listed by `GET /v1/kennet/events` for 30 days. Signatures and delivery retries work as described in [Webhooks](https://docs.metaphi.ai/kennet/api/webhooks.md).

```json theme={"dark"}
{
  "id": "evt_...",
  "object": "event",
  "type": "kennet.request.succeeded",
  "api_version": "2026-11-25",
  "created_at": 1764029100,
  "livemode": true,
  "data": { "object": "batch_request", "batch_id": "batch_5e0b...", "custom_id": "trace-0001", "...": "..." }
}
```

## Event types

| Type | `data` | Sent when |
| - | - | - |
| `kennet.request.succeeded` | The request | It succeeded and was [charged](https://docs.metaphi.ai/kennet/api/2026-11-25/batches.md#charges). Once per request |
| `kennet.request.failed` | The request | It failed. Once per request |
| `kennet.request.canceled` | The request | It was canceled. Once per request |
| `kennet.request.expired` | The request | It expired. Once per request |
| `kennet.request.requires_action` | The request | It started waiting for credit. Once per wait |
| `kennet.batch.ended` | The batch | It ended, after the end events of all its requests. Once per batch |
| `kennet.batch.requires_action` | The batch | Prepaid credit ran out while it had requests waiting |
| `kennet.balance.low` | `{object: "balance", balance_needed_usd, waiting: {requests}}` | Credit will not cover every request waiting to start. Once until credit is added |

Every request and batch event's `data` carries `batch_id` (a batch's is `id`) and, for a request, `custom_id`. Deliveries may arrive out of order; use `created_at` and the object's `status`.

Events are written in both versions for all work, whichever version created it: a batch created in `2026-11-25` also has `2026-10-11` events, and an anonymization created in `2026-10-11` also has `2026-11-25` events as a batch of one. `kennet.batch.requires_action` and `kennet.balance.low` are written once in each version, with different ids.

A key with the CodeVal scope also receives [`kennet.codeval.accepted`](https://docs.metaphi.ai/kennet/api/webhooks), at endpoints of either version. It is not in the event list.

## Webhook endpoints

`POST /v1/kennet/webhook_endpoints`, `GET /v1/kennet/webhook_endpoints` and `DELETE /v1/kennet/webhook_endpoints/{id}` work as in [Webhooks](https://docs.metaphi.ai/kennet/api/webhooks.md). An endpoint created with `Metaphi-Version: 2026-11-25` receives the event types above; one created in `2026-10-11` receives that version's. List and delete act only on the endpoints created in the version you send: an endpoint created in `2026-10-11` is not listed in `2026-11-25`, and deleting it there returns `404 resource_not_found`.

## List events

`GET /v1/kennet/events`

The events of the version you send, from the last 30 days, oldest first. `starting_after` an event id; `limit` 1 to 100. An event id not yet listed answers `409 resource_not_ready`; retry shortly.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.