> ## Documentation Index
> Fetch the complete documentation index at: https://docs.encrata.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Webhook Deliveries

> List recent delivery attempts for a specific webhook.

## Authentication

Requires an API key in the `Authorization` header.

```bash theme={"dark"}
Authorization: Bearer YOUR_API_KEY
```

## Request

<ParamField query="webhook_id" type="string" required>
  The webhook ID to list deliveries for.
</ParamField>

### Example request

```bash theme={"dark"}
curl "https://encrata.com/api/webhooks/deliveries?webhook_id=360cb300-d885-4c18-af2c-d259f936bb38" \
  -H "Authorization: Bearer YOUR_API_KEY"
```

## Response

Returns an array of delivery objects (up to 50 most recent).

<ResponseField name="id" type="string">
  Unique delivery identifier (UUID).
</ResponseField>

<ResponseField name="webhook_id" type="string">
  The webhook this delivery belongs to.
</ResponseField>

<ResponseField name="event_type" type="string">
  The event that triggered this delivery.
</ResponseField>

<ResponseField name="payload" type="object">
  The JSON payload that was sent.
</ResponseField>

<ResponseField name="status" type="string">
  Delivery status: `pending`, `success`, or `failed`.
</ResponseField>

<ResponseField name="attempts" type="integer">
  Number of delivery attempts made.
</ResponseField>

<ResponseField name="response_status" type="integer">
  HTTP status code returned by your endpoint (if available).
</ResponseField>

<ResponseField name="response_body" type="string">
  Response body from your endpoint (if available).
</ResponseField>

<ResponseField name="last_attempt_at" type="string">
  ISO 8601 timestamp of the last delivery attempt.
</ResponseField>

<ResponseField name="created_at" type="string">
  ISO 8601 timestamp when the delivery was created.
</ResponseField>

### Example response

```json theme={"dark"}
[
  {
    "id": "del_abc123",
    "webhook_id": "360cb300-d885-4c18-af2c-d259f936bb38",
    "event_type": "lookup.completed",
    "payload": {
      "event": "lookup.completed",
      "data": {"email": "satya@microsoft.com"},
      "created_at": "2026-05-02T12:00:00Z"
    },
    "status": "success",
    "attempts": 1,
    "response_status": 200,
    "response_body": "OK",
    "last_attempt_at": "2026-05-02T12:00:01Z",
    "created_at": "2026-05-02T12:00:00Z"
  }
]
```
