# List recent events

GET /v1/webhooks/events

Source: https://cherami.to/docs/api/webhooks/list-webhook-events



{/* Generated from apps/web/openapi. Edit the contract, not this file. */}

`GET /v1/webhooks/events`

Requires an [API key](https://cherami.to/docs/api#authentication): `Authorization: Bearer YOUR_CREDENTIAL`.

Lists the account's recent events, newest first, across all its webhooks: event ID, type, time and the inbox and message IDs the payload carries. Use it to confirm that mail activity produced an event before checking a webhook's attempts, or to find an event your receiver has no record of. An account that has never had a webhook has none.

## Parameters [#parameters]

| Parameter | Location | Required | Type    | Meaning                                                           |
| --------- | -------- | -------- | ------- | ----------------------------------------------------------------- |
| `limit`   | query    | No       | integer | Results per page. `minimum`: `1` `maximum`: `100` `default`: `20` |
| `cursor`  | query    | No       | string  | next\_cursor from the previous page of the same listing.          |

## curl example [#curl-example]

Supply `CHERAMI_API_KEY` privately.

```sh
curl --silent --show-error --include --request GET \
  "https://cherami.to/v1/webhooks/events" \
  --header "Authorization: Bearer $CHERAMI_API_KEY"
```

## Responses [#responses]

### HTTP 200 [#http-200]

Success.

* `X-Request-ID`: Identifies this request; include it when reporting a problem.

Content type: `application/json`.

[WebhookEventList](#schema-webhookeventlist)

```json
{
  "events": [
    {
      "id": "66666666-6666-4666-8666-666666666666",
      "type": "message.received",
      "accepted_at": "2026-10-01T00:00:00.500Z",
      "inbox_id": "11111111-1111-4111-8111-111111111111",
      "message_id": "22222222-2222-4222-8222-222222222222"
    }
  ],
  "next_cursor": null
}
```

### HTTP 400 [#http-400]

`invalid_limit`: Use an integer from 1 to 100.

`invalid_cursor`: Send a cursor only to the listing, filters and order that returned it, or restart from the first page.

* `X-Request-ID`: Identifies this request; include it when reporting a problem.

Content type: `application/json`.

[Error](#schema-error)

### HTTP 401 [#http-401]

`unauthorized`: Send a valid API key as `Authorization: Bearer <key>`. If the key stopped working, get a new one through [recovery](https://cherami.to/docs/guides/recovery).

* `X-Request-ID`: Identifies this request; include it when reporting a problem.
* `WWW-Authenticate`: `"Bearer"`

Content type: `application/json`.

[Error](#schema-error)

### HTTP 503 [#http-503]

`webhook_history_unavailable`: Delivery history could not be read. Retry later.

`webhooks_unavailable`: Webhook management failed. If it was a change, it may have been applied: list or read the webhooks before repeating it.

* `X-Request-ID`: Identifies this request; include it when reporting a problem.

Content type: `application/json`.

[Error](#schema-error)

## Schema: WebhookEventList [#schema-webhookeventlist]

| Field         | Required | Type                                          | Meaning and constraints |
| ------------- | -------- | --------------------------------------------- | ----------------------- |
| `events`      | Yes      | array of [WebhookEvent](#schema-webhookevent) |                         |
| `next_cursor` | Yes      | string or null                                |                         |

## Schema: WebhookEvent [#schema-webhookevent]

| Field         | Required | Type                                         | Meaning and constraints                                                                                               |
| ------------- | -------- | -------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- |
| `id`          | Yes      | string                                       | Event ID, the same as the delivered payload's id. Deduplicate on it.                                                  |
| `type`        | Yes      | [WebhookEventType](#schema-webhookeventtype) |                                                                                                                       |
| `accepted_at` | Yes      | string                                       | When the event was handed to delivery; the payload's timestamp is when the mail event happened. `format`: `date-time` |
| `inbox_id`    | Yes      | string or null                               |                                                                                                                       |
| `message_id`  | Yes      | string or null                               |                                                                                                                       |

## Schema: WebhookEventType [#schema-webhookeventtype]

message.received: a received message is ready to read. message.sent: the provider accepted a sent message, which is not delivery.

`"message.received"` or `"message.sent"`

## Schema: Error [#schema-error]

| Field   | Required | Type   | Meaning and constraints |
| ------- | -------- | ------ | ----------------------- |
| `error` | Yes      | object |                         |

### `error` fields [#error-fields]

| Field     | Required | Type   | Meaning and constraints                                               |
| --------- | -------- | ------ | --------------------------------------------------------------------- |
| `code`    | Yes      | string | Code to handle. Handle a code you don't recognize by its HTTP status. |
| `message` | Yes      | string | Explanation of this case; its wording can change.                     |

[Errors, limits and pagination](https://cherami.to/docs/api/errors) · [Download OpenAPI 3.1](https://cherami.to/openapi.json)
