# List webhook deliveries

Inspect webhook delivery attempts, outcomes and errors. Signing secrets and payload contents are excluded.

POST https://api.brigg.app/v1/operations/webhooks.ListWebhookDeliveries

## Access & visibility

Allow `webhooks.ListWebhookDeliveries` on your API key.

**Workspace access by default.** Private member data requires [approved member delegation](https://developer.brigg.app/authentication#member-delegation) through `Brigg-Act-As`; the key supplies permissions while private ownership and project boundaries remain enforced.

[Set up authentication](https://developer.brigg.app/authentication) · [Choose permissions](https://developer.brigg.app/permissions)

## Request fields

Send a JSON object with the following fields. Required fields must be included; omit optional fields you do not need.
| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `webhook_id` | string | Yes | Identifier of the approved webhook subscription. After administrator approval, discover it with `webhooks.ListWebhookSubscriptions` using a credential with read access to every selected resource type. It is different from an event ID or delivery ID. At least 1 character. |
| `cursor` | string | No | Opaque next_cursor returned by this webhook's preceding page. Keep the same webhook and credential; omit it to start a new listing. |
| `limit` | integer | No | Maximum number of results to return in this page. Continue with next_cursor when returned. Default: `50`. Range: 1 to 100. |

## Response

Returns **200 OK** with a JSON body.

An empty `items` array means this page contains no matching visible results. Follow `next_cursor` when present.
| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `items` | array of [Webhook delivery](#webhook-delivery-response-items) | Yes | Delivery attempts for the selected webhook, within the retained delivery history. Pass next_cursor as cursor to continue when a next cursor is returned. |
| `next_cursor` | string | No | Continue this webhook's listing with this value as cursor. Omitted on the final page. |

### Webhook delivery · response.items[]

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `delivery_id` | string | Yes | Delivery identifier returned by `webhooks.ListWebhookDeliveries`. Replay uses this identifier for the same webhook; active deliveries cannot be replayed. |
| `event_id` | string | Yes | Stable event identifier. Deduplicate notifications by this value, including retries and deliberate replays. |
| `event` | string | Yes | Event name. Supported values: `meeting.completed`, `resource.created`, `resource.updated`, `resource.deleted`. See the [event reference](https://developer.brigg.app/events) for payloads and delivery contracts. |
| `resource_type` | string | Yes | Record type associated with this event, such as core:Company. |
| `status` | string | Yes | Delivery state recorded by the delivery worker. Check last_status and last_error when delivery fails. |
| `attempts` | number | Yes | Number of delivery attempts made so far for this event and subscription. |
| `last_status` | number or null | Yes | HTTP status of the most recent endpoint response, or null if no HTTP response was received. |
| `last_error` | string or null | Yes | Most recently recorded delivery error, or null if none was recorded. |
| `created_at` | number | Yes | Creation time in Unix milliseconds. |
| `updated_at` | number | Yes | Last update time in Unix milliseconds. |

## Pagination

Pass `next_cursor` as `cursor` on the next request, keeping the same query and acting identity. Stop when `next_cursor` is absent. Treat the cursor as opaque; never construct or edit it.

```typescript
const query = {
  "webhook_id": "e_example"
};
let cursor;
do {
  const response = await fetch("https://api.brigg.app/v1/operations/webhooks.ListWebhookDeliveries", {
    method: "POST",
    headers: {
      Authorization: `Bearer ${process.env.BRIGG_API_KEY}`,
      "Content-Type": "application/json",
    },
    body: JSON.stringify({ ...query, ...(cursor ? { cursor } : {}) }),
  });
  const page = await response.json();
  if (!response.ok) throw new Error(`${response.status}: ${page.message}`);
  for (const item of page.items) {
    console.log(item); // Process or upsert each result.
  }
  cursor = page.next_cursor;
} while (cursor);
```


## Errors & retries

This operation reads data. It needs no idempotency key and can be retried after a transient failure.

For rate limits, follow the server’s retry guidance and back off. See [HTTP errors](https://developer.brigg.app/http#errors) and [safe retries and limits](https://developer.brigg.app/reliability).

| HTTP status | Code | What to do |
| --- | --- | --- |
| 400 | `invalid_json` | Send a JSON object with Content-Type: application/json. |
| 400 | `invalid_input` | Check the request fields and types. |
| 401 | `invalid_key` | The workspace API key is missing, invalid or revoked. |
| 403 | `forbidden` | Check the key’s operation and resource grants. If Brigg-Act-As is supplied, the key must be authorized to delegate to that member. |
| 404 | `not_found` | The requested operation or resource is not available to this credential. |
| 429 | `rate_limited` | Wait for Retry-After before retrying. |

## Next steps

- [Receive and verify webhooks](https://developer.brigg.app/webhooks)

[Download OpenAPI](https://developer.brigg.app/openapi.json) · [Versioning & retirement](https://developer.brigg.app/versioning)

## Examples

### Example request

Fictional values. Replace IDs and business details with values from your workspace.
#### cURL


```sh
curl 'https://api.brigg.app/v1/operations/webhooks.ListWebhookDeliveries' \
  -H "Authorization: Bearer $BRIGG_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "webhook_id": "e_example"
}'
```

#### TypeScript


```typescript
const response = await fetch("https://api.brigg.app/v1/operations/webhooks.ListWebhookDeliveries", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.BRIGG_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "webhook_id": "e_example"
  }),
});
const result = await response.json();
if (!response.ok) throw new Error(`${response.status}: ${result.error} — ${result.message}`);
console.log(result);
```

#### Python


```python
import json
import os
from urllib.request import Request, urlopen
from urllib.error import HTTPError

payload = {
  "webhook_id": "e_example"
}
request = Request(
    "https://api.brigg.app/v1/operations/webhooks.ListWebhookDeliveries",
    data=json.dumps(payload).encode("utf-8"),
    headers={
        "Authorization": f"Bearer {os.environ['BRIGG_API_KEY']}",
        "Content-Type": "application/json",
    },
    method="POST",
)
try:
    with urlopen(request) as response:
        print(json.load(response))
except HTTPError as error:
    print(error.code, json.load(error))
    raise
```

#### Response example


```json
{
  "items": [
    {
      "delivery_id": "delivery_company_123",
      "event_id": "event_company_123",
      "event": "resource.updated",
      "resource_type": "core:Company",
      "status": "delivered",
      "attempts": 1,
      "last_status": 200,
      "last_error": null,
      "created_at": 1794301200000,
      "updated_at": 1794301200000
    }
  ]
}
```

## JSON schemas


```json-schema-request
{
  "type": "object",
  "properties": {
    "webhook_id": {
      "type": "string",
      "minLength": 1,
      "description": "Identifier of the approved webhook subscription. After administrator approval, discover it with `webhooks.ListWebhookSubscriptions` using a credential with read access to every selected resource type. It is different from an event ID or delivery ID."
    },
    "cursor": {
      "type": "string",
      "description": "Opaque next_cursor returned by this webhook's preceding page. Keep the same webhook and credential; omit it to start a new listing."
    },
    "limit": {
      "type": "integer",
      "minimum": 1,
      "maximum": 100,
      "default": 50,
      "description": "Maximum number of results to return in this page. Continue with next_cursor when returned."
    }
  },
  "required": [
    "webhook_id"
  ],
  "additionalProperties": false,
  "examples": [
    {
      "webhook_id": "e_example"
    }
  ]
}
```


```json-schema-response
{
  "type": "object",
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "delivery_id": {
            "type": "string",
            "description": "Delivery identifier returned by `webhooks.ListWebhookDeliveries`. Replay uses this identifier for the same webhook; active deliveries cannot be replayed.",
            "examples": [
              "delivery_company_123"
            ]
          },
          "event_id": {
            "type": "string",
            "description": "Stable event identifier. Deduplicate notifications by this value, including retries and deliberate replays.",
            "examples": [
              "event_company_123"
            ]
          },
          "event": {
            "type": "string",
            "description": "Event name. Supported values: `meeting.completed`, `resource.created`, `resource.updated`, `resource.deleted`. See the [event reference](https://developer.brigg.app/events) for payloads and delivery contracts.",
            "examples": [
              "resource.updated"
            ]
          },
          "resource_type": {
            "type": "string",
            "description": "Record type associated with this event, such as core:Company.",
            "examples": [
              "core:Company"
            ]
          },
          "status": {
            "type": "string",
            "description": "Delivery state recorded by the delivery worker. Check last_status and last_error when delivery fails.",
            "examples": [
              "delivered"
            ]
          },
          "attempts": {
            "type": "number",
            "description": "Number of delivery attempts made so far for this event and subscription.",
            "examples": [
              1
            ]
          },
          "last_status": {
            "type": [
              "number",
              "null"
            ],
            "description": "HTTP status of the most recent endpoint response, or null if no HTTP response was received.",
            "examples": [
              200
            ]
          },
          "last_error": {
            "type": [
              "string",
              "null"
            ],
            "description": "Most recently recorded delivery error, or null if none was recorded.",
            "examples": [
              null
            ]
          },
          "created_at": {
            "type": "number",
            "description": "Creation time in Unix milliseconds."
          },
          "updated_at": {
            "type": "number",
            "description": "Last update time in Unix milliseconds."
          }
        },
        "required": [
          "delivery_id",
          "event_id",
          "event",
          "resource_type",
          "status",
          "attempts",
          "last_status",
          "last_error",
          "created_at",
          "updated_at"
        ],
        "additionalProperties": false,
        "title": "Webhook delivery"
      },
      "description": "Delivery attempts for the selected webhook, within the retained delivery history. Pass next_cursor as cursor to continue when a next cursor is returned."
    },
    "next_cursor": {
      "type": "string",
      "description": "Continue this webhook's listing with this value as cursor. Omitted on the final page."
    }
  },
  "required": [
    "items"
  ],
  "additionalProperties": false,
  "examples": [
    {
      "items": [
        {
          "delivery_id": "delivery_company_123",
          "event_id": "event_company_123",
          "event": "resource.updated",
          "resource_type": "core:Company",
          "status": "delivered",
          "attempts": 1,
          "last_status": 200,
          "last_error": null,
          "created_at": 1794301200000,
          "updated_at": 1794301200000
        }
      ]
    }
  ]
}
```

