# GET /v1/webhook-deliveries

**Service:** Webhooks  
**Operation:** `WebhookService_ListWebhookDeliveries`

Records cover the last 30 days. Filter by subscription, state, or a creation-time window; combine filters freely.

## Parameters

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `webhookId` | query | string | no | Only deliveries for this subscription. Optional. |
| `state` | query | string | no | Only deliveries in this state. Optional. One of: DELIVERY_STATE_UNSPECIFIED, DELIVERY_STATE_PENDING, DELIVERY_STATE_SUCCEEDED, DELIVERY_STATE_EXHAUSTED. |
| `createdAfter` | query | string | no | Only deliveries created at or after this instant. Optional. |
| `createdBefore` | query | string | no | Only deliveries created before this instant. Optional. |
| `pageSize` | query | integer | no | The maximum number of records to return in one page. Optional; a server default applies when unset. |
| `pageToken` | query | string | no | Opaque page token from a previous response, used to fetch the next page. |
| `fields` | query | string | no | Comma-separated response fields to include, using camelCase JSON names (e.g. `orderId,total.amountMicros`). Dot paths reach into nested objects and map transparently across arrays. Paths are relative to the resource, not the response envelope; envelope keys like `nextPageToken` are always preserved. Only 2xx JSON responses are filtered; error bodies pass through unmodified. Unknown names are silently ignored. Takes precedence over `excludeFields` when both are provided. |
| `excludeFields` | query | string | no | Comma-separated response fields to exclude, using camelCase JSON names. Dot paths and array-transparency work the same as `fields`. Paths are relative to the resource, not the response envelope. Only 2xx JSON responses are filtered; error bodies pass through unmodified. Ignored when `fields` is also provided. |

## Responses

| Status | Schema | Description |
| --- | --- | --- |
| 200 | `ListWebhookDeliveriesResponse` | A successful response. |
| 400 | `Error` | The request was rejected because it was malformed — for example an unusable page token or a filter id with the wrong prefix. The body is a validation-failure envelope: an overall type and message and one entry per problem (each with a stable code, a message, and a param pointing at the offending parameter). |
| 401 | `Error` | The request is missing a valid bearer token, or the token is invalid or expired. |
| 403 | `Error` | The token is valid but does not permit this action, or the resource belongs to a company the token cannot act for. The error type is permission_denied. |
| 429 | `Error` | The request was throttled (rate_limited) or exceeded a size limit (resource_exhausted). When throttled, the Retry-After header says how many seconds to wait before retrying; a resource_exhausted request will fail the same way if retried unchanged. |
| default | `Error` | Any other error. The body is the same error envelope every error uses: a short stable type identifying the kind of failure, a human-readable message, and the request's idempotency key echoed back when one was supplied. |

## Returns

`ListWebhookDeliveriesResponse`

| Field | Type | Description |
| --- | --- | --- |
| `deliveries` | WebhookDelivery[] | One page of delivery records, newest first. |
| `deliveries.deliveryId` | string | The delivery record's id. Read-only. |
| `deliveries.webhookId` | string | The subscription this delivery targets. Read-only. |
| `deliveries.eventId` | string | The event being delivered. Matches the `id` of the delivered payload — identical across retries and duplicates; deduplicate on it. Read-only. |
| `deliveries.eventType` | string | The event's type (see `eventTypes` on Webhook for the taxonomy). Read-only. |
| `deliveries.state` | DeliveryState | Where the delivery is in its lifecycle. Read-only. The state of one delivery (one event to one subscription).   - DELIVERY_STATE_PENDING: Waiting for its first or next attempt (see `nextAttemptAt`).  - DELIVERY_STATE_SUCCEEDED: The endpoint acknowledged the delivery with a 2xx response.  - DELIVERY_STATE_EXHAUSTED: All retry attempts were used without a 2xx (about 10.6 hours across 6 attempts). Exhausted deliveries are not retried again. One of: DELIVERY_STATE_UNSPECIFIED, DELIVERY_STATE_PENDING, DELIVERY_STATE_SUCCEEDED, DELIVERY_STATE_EXHAUSTED. |
| `deliveries.attemptCount` | integer | Attempts made so far (0 while pending its first attempt). Read-only. |
| `deliveries.nextAttemptAt` | string | When the next attempt is due; unset once succeeded or exhausted. Read-only. |
| `deliveries.lastAttemptedAt` | string | When the most recent attempt ran; unset before the first attempt. Read-only. |
| `deliveries.lastStatusCode` | integer | The HTTP status the endpoint returned on the most recent attempt; 0 when the attempt never got a response (timeout, connection failure, a URL refused at send time, or the original event no longer being available). Read-only. |
| `deliveries.lastResponseSnippet` | string | The start of the endpoint's response body on the most recent attempt, truncated to 1000 characters. Read-only. |
| `deliveries.createdAt` | string | When the delivery record was created (the event's intake time). Read-only. |
| `nextPageToken` | string | Token to pass as `pageToken` to fetch the next page; empty when there are no more results. |

---

Source: https://developer.factory.app/reference/webhooks/list-webhook-deliveries · Factory Sales API v1
