---
title: "API - Webhook events | Plaid Docs"
description: "Use the webhook events endpoint to recover webhooks your endpoint may have missed."
canonical: "https://plaid.com/docs/api/webhooks/webhook-events/"
---

Webhook events 
===============

#### Recover webhooks your endpoint missed 

\=\*=\*=\*=

#### /beta/webhook\_events/list 

#### List webhook events 

[/beta/webhook\_events/list](https://plaid.com/docs/api/webhooks/webhook-events/index.html.md#betawebhook_eventslist) returns the webhooks Plaid sent to your account in the last 7 days, including webhooks that weren't delivered. Use it to recover webhooks your endpoint missed. Events are returned oldest first.

`TRANSACTIONS` webhooks are not included. To recover Transactions updates, use [/transactions/sync](https://plaid.com/docs/api/products/transactions/index.html.md#transactionssync) .

To page through events, omit `cursor` on your first request, then pass the previous response's `next_cursor` on each later request. Store `next_cursor` even when `has_more` is `false`, so your next poll returns only newer events.

Filters are optional. An event matches a filter if it matches any of the filter's values, and must match every filter you provide.

Events older than 7 days are not retained. If your cursor or `start_time` is older than that, the request fails with `WEBHOOK_EVENTS_CURSOR_EXPIRED` or `WEBHOOK_EVENTS_START_TIME_OUT_OF_RANGE`.

This endpoint is in beta and may change in backwards-incompatible ways. Send feedback to building@plaid.com.

#### Request fields 

<a id="beta-webhook_events-list-request-client-id"></a>

**client_id** (string)

Your Plaid API `client_id`. The `client_id` is required and may be provided either in the `PLAID-CLIENT-ID` header or as part of a request body.

<a id="beta-webhook_events-list-request-secret"></a>

**secret** (string)

Your Plaid API `secret`. The `secret` is required and may be provided either in the `PLAID-SECRET` header or as part of a request body.

<a id="beta-webhook_events-list-request-cursor"></a>

**cursor** (string)

The `next_cursor` from a previous `/beta/webhook_events/list` response. Omit on your first request. If provided, `start_time` is ignored.

Max length: `512`

<a id="beta-webhook_events-list-request-start-time"></a>

**start_time** (string)

Return events sent at or after this time, in ISO 8601 format. Must be within the last 7 days. Ignored if `cursor` is provided. If you omit both `cursor` and `start_time`, results start with the oldest retained event.

Format: `date-time`

<a id="beta-webhook_events-list-request-count"></a>

**count** (integer)

The maximum number of webhook events to return. Fewer events may be returned even when more are available; use `has_more` to determine whether to request another page.

Minimum: `1`

Maximum: `100`

Default: `100`

<a id="beta-webhook_events-list-request-webhook-types"></a>

**webhook_types** ([string])

Return only events with these webhook types, for example `ITEM`. Case-sensitive.

<a id="beta-webhook_events-list-request-webhook-codes"></a>

**webhook_codes** ([string])

Return only events with these webhook codes, for example `ERROR`. Case-sensitive.

<a id="beta-webhook_events-list-request-item-ids"></a>

**item_ids** ([string])

Return only events for these Items.

<a id="beta-webhook_events-list-request-delivery-statuses"></a>

**delivery_statuses** ([string])

Return only events with these delivery statuses.

Possible values: `PENDING`, `DELIVERED`, `FAILED`

/beta/webhook\_events/list

```node
// Plaid Node SDK v51 (from 'plaid')
// Provide a cursor you've previously stored, or leave it
// undefined on the first call.
let cursor = loadSavedCursor();
let hasMore = true;

while (hasMore) {
  const request: Plaid.BetaWebhookEventsListRequest = {
    cursor: cursor,
    count: 100,
  };
  const response = await plaidClient.webhookEvents.list(request);
  const data = response;

  for (const event of data.webhook_events) {
    if (!alreadyProcessed(event.webhook_message_id)) {
      handleWebhookEvent(event);
    }
  }

  hasMore = data.has_more;

  // Persist next_cursor even when has_more is false, then reuse
  // it on the next poll so you only receive newer events.
  cursor = data.next_cursor;
  saveCursor(cursor);
}

```

```node
// Legacy Plaid Node SDK (plaid v50, or from 'plaid/legacy' in v51)
// Provide a cursor you've previously stored, or leave it
// undefined on the first call.
let cursor = loadSavedCursor();
let hasMore = true;

while (hasMore) {
  const request: BetaWebhookEventsListRequest = {
    cursor: cursor,
    count: 100,
  };
  const response = await plaidClient.betaWebhookEventsList(request);
  const data = response.data;

  for (const event of data.webhook_events) {
    if (!alreadyProcessed(event.webhook_message_id)) {
      handleWebhookEvent(event);
    }
  }

  hasMore = data.has_more;

  // Persist next_cursor even when has_more is false, then reuse
  // it on the next poll so you only receive newer events.
  cursor = data.next_cursor;
  saveCursor(cursor);
}

```

```bash
curl -X POST https://sandbox.plaid.com/beta/webhook_events/list \
-H 'Content-Type: application/json' \
-d '{
  "client_id": "${PLAID_CLIENT_ID}",
  "secret": "${PLAID_SECRET}",
  "count": Number,
  "cursor": String
}'

```

```ruby
# Provide a cursor you've previously stored, or leave it nil on
# the first call.
cursor = load_saved_cursor
has_more = true

while has_more
  request = Plaid::BetaWebhookEventsListRequest.new(
    {
      cursor: cursor,
      count: 100,
    }
  )
  response = client.beta_webhook_events_list(request)

  response.webhook_events.each do |event|
    unless already_processed(event.webhook_message_id)
      handle_webhook_event(event)
    end
  end

  has_more = response.has_more

  # Persist next_cursor even when has_more is false, then reuse
  # it on the next poll so you only receive newer events.
  cursor = response.next_cursor
  save_cursor(cursor)
end

```

```java
// Provide a cursor you've previously stored, or leave it null on
// the first call.
String cursor = loadSavedCursor();
boolean hasMore = true;

while (hasMore) {
  BetaWebhookEventsListRequest request = new BetaWebhookEventsListRequest()
    .cursor(cursor)
    .count(100);
  Response<BetaWebhookEventsListResponse> response = client()
    .betaWebhookEventsList(request)
    .execute();
  BetaWebhookEventsListResponse data = response.body();

  for (WebhookEvent event : data.getWebhookEvents()) {
    if (!alreadyProcessed(event.getWebhookMessageId())) {
      handleWebhookEvent(event);
    }
  }

  hasMore = data.getHasMore();

  // Persist next_cursor even when has_more is false, then reuse
  // it on the next poll so you only receive newer events.
  cursor = data.getNextCursor();
  saveCursor(cursor);
}

```

```python
# Provide a cursor you've previously stored, or leave it None on
# the first call.
cursor = load_saved_cursor()
has_more = True

while has_more:
    request = BetaWebhookEventsListRequest(
        cursor=cursor,
        count=100,
    )
    response = client.beta_webhook_events_list(request)

    for event in response['webhook_events']:
        if not already_processed(event['webhook_message_id']):
            handle_webhook_event(event)

    has_more = response['has_more']

    # Persist next_cursor even when has_more is false, then reuse
    # it on the next poll so you only receive newer events.
    cursor = response['next_cursor']
    save_cursor(cursor)

```

```go
// Plaid Go SDK v49 (github.com/plaid/plaid-go/v49)
// Provide a cursor you've previously stored, or leave it nil on
// the first call.
cursor := loadSavedCursor()
hasMore := true

for hasMore {
    request := &plaid.BetaWebhookEventsListRequest{
        Count: plaid.Int(100),
    }
    if cursor != nil {
        request.Cursor = cursor
    }

    page, err := client.WebhookEvents.List(ctx, request)
    if err != nil {
        // Handle error
        break
    }
    resp := page.Response

    for _, event := range resp.GetWebhookEvents() {
        if !alreadyProcessed(event.GetWebhookMessageID()) {
            handleWebhookEvent(event)
        }
    }

    hasMore = resp.GetHasMore()

    // Persist next_cursor even when has_more is false, then reuse
    // it on the next poll so you only receive newer events.
    nextCursor := resp.GetNextCursor()
    cursor = &nextCursor
    saveCursor(cursor)
}

```

```go
// Legacy Plaid Go SDK (github.com/plaid/plaid-go/v48/plaid)
// Provide a cursor you've previously stored, or leave it nil on
// the first call.
cursor := loadSavedCursor()
hasMore := true

for hasMore {
    request := plaid.NewBetaWebhookEventsListRequest()
    request.SetCount(100)
    if cursor != nil {
        request.SetCursor(*cursor)
    }

    resp, _, err := client.PlaidApi.BetaWebhookEventsList(ctx).BetaWebhookEventsListRequest(*request).Execute()
    if err != nil {
        // Handle error
        break
    }

    for _, event := range resp.GetWebhookEvents() {
        if !alreadyProcessed(event.GetWebhookMessageId()) {
            handleWebhookEvent(event)
        }
    }

    hasMore = resp.GetHasMore()

    // Persist next_cursor even when has_more is false, then reuse
    // it on the next poll so you only receive newer events.
    nextCursor := resp.GetNextCursor()
    cursor = &nextCursor
    saveCursor(cursor)
}

```

#### Response fields 

<a id="beta-webhook_events-list-response-webhook-events"></a>

**webhook_events** ([object])

Webhook events for your account.

<a id="beta-webhook_events-list-response-webhook-events-webhook-message-id"></a>

**webhook_events->webhook_message_id** (string)

The ID of this webhook event. It stays the same across requests, so you can use it to skip events you've already handled. Include it when contacting Support.

<a id="beta-webhook_events-list-response-webhook-events-webhook-type"></a>

**webhook_events->webhook_type** (string)

The webhook type.

<a id="beta-webhook_events-list-response-webhook-events-webhook-code"></a>

**webhook_events->webhook_code** (string)

The webhook code.

<a id="beta-webhook_events-list-response-webhook-events-item-id"></a>

**webhook_events->item_id** (nullable, string)

The Item ID associated with the webhook, if any.

<a id="beta-webhook_events-list-response-webhook-events-sent-time"></a>

**webhook_events->sent_time** (string)

The time Plaid sent the webhook.

Format: `date-time`

<a id="beta-webhook_events-list-response-webhook-events-payload"></a>

**webhook_events->payload** (object)

The JSON body Plaid sent to the webhook destination.

<a id="beta-webhook_events-list-response-webhook-events-destination-url"></a>

**webhook_events->destination_url** (string)

The destination URL Plaid sent the webhook to.

<a id="beta-webhook_events-list-response-webhook-events-delivery-status"></a>

**webhook_events->delivery_status** (string)

The current delivery status of the webhook.

`PENDING`: Plaid hasn't recorded a successful delivery and may retry. The webhook may have been delivered even if its status is `PENDING`.

`DELIVERED`: Your endpoint returned a 2xx response.

`FAILED`: Plaid stopped retrying without receiving a 2xx response.

Possible values: `PENDING`, `DELIVERED`, `FAILED`

<a id="beta-webhook_events-list-response-webhook-events-last-http-status-code"></a>

**webhook_events->last_http_status_code** (nullable, integer)

The most recent HTTP status code returned by the destination, if any.

<a id="beta-webhook_events-list-response-webhook-events-attempt-count"></a>

**webhook_events->attempt_count** (integer)

Number of delivery attempts Plaid has made for this webhook.

<a id="beta-webhook_events-list-response-webhook-events-last-attempt-time"></a>

**webhook_events->last_attempt_time** (nullable, string)

The time of the most recent delivery attempt. Null if Plaid hasn't attempted delivery yet.

Format: `date-time`

<a id="beta-webhook_events-list-response-has-more"></a>

**has_more** (boolean)

Indicates whether another page of webhook events is available.

<a id="beta-webhook_events-list-response-next-cursor"></a>

**next_cursor** (string)

The cursor to send as `cursor` in your next request. Store it even when `has_more` is `false`.

<a id="beta-webhook_events-list-response-request-id"></a>

**request_id** (string)

A unique identifier for the request, which can be used for troubleshooting. This identifier, like all Plaid identifiers, is case sensitive.

Response Object

```json
{
  "webhook_events": [
    {
      "webhook_message_id": "whmsg_4tQ9pNzL2vBxYK",
      "webhook_type": "ITEM",
      "webhook_code": "PENDING_EXPIRATION",
      "item_id": "abc123",
      "sent_time": "2026-07-21T14:32:00Z",
      "payload": {
        "webhook_type": "ITEM",
        "webhook_code": "PENDING_EXPIRATION"
      },
      "destination_url": "https://client.example.com/webhook",
      "delivery_status": "DELIVERED",
      "last_http_status_code": 200,
      "attempt_count": 1,
      "last_attempt_time": "2026-07-21T14:32:01Z"
    }
  ],
  "has_more": true,
  "next_cursor": "eyJzZW50X3RpbWUiOiIyMDI2LTA3LTIxVDE0OjMyOjAwWiIsIndlYmhvb2tfbWVzc2FnZV9pZCI6IndobXNnXzR0UTlwTnpMMnZCeFlLIn0",
  "request_id": "4zlKapIkTm8p5KM"
}
```