Search Events

Search and list webhook event history

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

Search through the history of webhook events that have been sent to your subscriptions. Events are returned newest first.

Request

GET /webhooks/events

Query Parameters

This endpoint uses cursor-based pagination. See Pagination for the general behaviour.

ParameterTypeRequiredDescription
starting_afterstringNoCursor. Return events listed after this value.
ending_beforestringNoCursor. Return events listed before this value.
limitintegerNoMaximum number of events to return. Defaults to 10, must be greater than 0 and less than or equal to 100.

Cursor values are the 20-character strings returned in the pagination object of a previous response.

⚠️

Mutually exclusive cursors

starting_after and ending_before cannot be sent in the same request. Doing so returns a 400 with error code invalid_parameters.

Example Request

GET /webhooks/events?limit=20

Example Response

{
  "events": [
    {
      "id": "2",
      "created_at": "2025-01-05T12:00:30.000000+00:00",
      "delivery_url": "https://partner.example.com/webhooks",
      "delivery_tries": 0,
      "state": "pending"
    },
    {
      "id": "1",
      "created_at": "2025-01-05T12:00:00.000000+00:00",
      "delivery_url": "https://partner.example.com/webhooks",
      "delivery_tries": 3,
      "state": "error"
    }
  ],
  "pagination": {
    "starting_after": "20250105120000000000",
    "ending_before": "20250105120030000000",
    "limit": 20
  }
}

Response Fields

FieldTypeRequiredDescription
idstringYesUnique event identifier. Use it with Resend Event.
created_attimestampYesWhen the event was created.
delivery_urlstringYesThe subscription URL the event is delivered to.
delivery_triesintegerYesNumber of delivery attempts made so far.
statestringNoDelivery state: pending, completed or error. Omitted while the event is queued and has not been picked up for delivery yet.

Event States

StateDescription
pendingThe event has not been delivered yet, or is waiting for a retry.
completedThe event was delivered successfully.
errorDelivery failed and no further automatic retries will be made.

An event that is queued for delivery — either because it was just created, or because you resent it with Resend Event — has no state yet, and the field is omitted from the response. It appears once delivery is attempted.

Errors

StatusError codeDescription
400invalid_parametersstarting_after and ending_before were both sent, limit is outside 1100, or a cursor value is malformed.
Query Params
string

Returns events with sort_id values lower than this value.

string

Returns events with sort_id values higher than this value.

int32
Defaults to 10

Defines number of events to be retrieved. Max value is 100. Defaults to 10.

Responses

Language
Credentials
Header
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json