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

# List Webhook Deliveries

> Read a webhook endpoint's delivery log with GET /api/webhooks/{id}/deliveries: each event's status, HTTP response and attempts, newest first.

Returns the endpoint's deliveries, newest first. Deliveries are kept for 30 days.

| Status | Meaning |
| - | - |
| `pending` | Waiting for its first attempt or for a retry at `nextAttemptAt`. |
| `sending` | Being sent right now. |
| `succeeded` | Your endpoint answered with a `2xx` status. |
| `failed` | All attempts failed, the endpoint answered `410 Gone`, or it was turned off. |

Read-only API keys can use this endpoint.

## Query Parameters

| Parameter | Type | Description |
| - | - | - |
| `limit` | number | Deliveries per page, 1 to 100. Default 50. |
| `before` | string | A delivery `id`. Returns the deliveries after it in this order; pass the last `id` of a page to get the next page. |

## Example Request

```bash theme={null}
curl -X GET \
  -H "X-API-KEY: your_api_key" \
  "https://octanist.com/api/webhooks/9b2f1c4e-6a1d-4f7e-9a51-2c8f0f3d1a77/deliveries?limit=20"
```

## Example Response

```json theme={null}
{
  "success": true,
  "data": [
    {
      "id": "7a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d",
      "eventId": "evt_4f1c2b9e7d6a4c3b8e2f1a0d9c8b7a6e",
      "eventType": "lead.status_changed",
      "leadId": "lead_abc123",
      "status": "pending",
      "attempts": 2,
      "nextAttemptAt": "2026-11-30T10:36:00.000Z",
      "lastAttemptAt": "2026-11-30T10:06:00.000Z",
      "responseStatus": 503,
      "error": "HTTP 503",
      "durationMs": 220,
      "createdAt": "2026-11-30T10:05:00.000Z"
    }
  ],
  "meta": {
    "requestId": "req_a1b2c3d4e5f6",
    "timestamp": "2026-11-30T10:10:00.000Z"
  }
}
```


## OpenAPI

````yaml GET /api/webhooks/{id}/deliveries
openapi: 3.0.1
info:
  title: Octanist API
  description: >-
    The Octanist API allows you to create, update and read leads, run reports,
    read workspace settings, retrieve statistics, and access ad spend data.
  version: 2.5.0
  contact:
    name: Octanist Support
    url: https://octanist.com/docs
servers:
  - url: https://octanist.com
    description: Production server
security:
  - apiKeyAuth: []
paths:
  /api/webhooks/{id}/deliveries:
    parameters:
      - name: id
        in: path
        required: true
        description: Webhook endpoint ID
        schema:
          type: string
    get:
      tags:
        - Webhooks
      summary: List Webhook Deliveries
      description: >-
        The endpoint's delivery log, newest first. Deliveries are kept for 30
        days.
      parameters:
        - name: limit
          in: query
          required: false
          description: Deliveries per page, 1 to 100 (default 50)
          schema:
            type: integer
            minimum: 1
            maximum: 100
            default: 50
        - name: before
          in: query
          required: false
          description: >-
            A delivery `id`: returns the deliveries after it, newest first. Pass
            the last `id` of a page to get the next one
          schema:
            type: string
      responses:
        '200':
          description: Deliveries
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: true
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/WebhookDelivery'
                  meta:
                    $ref: '#/components/schemas/Meta'
        '401':
          description: Missing or invalid API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Endpoint not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: Server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    WebhookDelivery:
      type: object
      properties:
        id:
          type: string
        eventId:
          type: string
          description: The event's `id`, also sent as the `webhook-id` header
          example: evt_4f1c2b9e7d6a4c3b8e2f1a0d9c8b7a6e
        eventType:
          type: string
          example: lead.status_changed
        leadId:
          type: string
          nullable: true
        status:
          type: string
          enum:
            - pending
            - sending
            - succeeded
            - failed
        attempts:
          type: integer
          example: 1
        nextAttemptAt:
          type: string
          format: date-time
          nullable: true
          description: When the next retry is due, for a pending delivery
        lastAttemptAt:
          type: string
          format: date-time
          nullable: true
        responseStatus:
          type: integer
          nullable: true
          example: 200
        error:
          type: string
          nullable: true
          example: null
        durationMs:
          type: integer
          nullable: true
          example: 184
        createdAt:
          type: string
          format: date-time
    Meta:
      type: object
      properties:
        requestId:
          type: string
          example: req_a1b2c3d4e5f6
        timestamp:
          type: string
          format: date-time
          example: '2026-03-10T12:00:00.000Z'
    ErrorResponse:
      type: object
      properties:
        success:
          type: boolean
          example: false
        error:
          type: object
          properties:
            code:
              type: string
              description: Error code
              example: VALIDATION_ERROR
            message:
              type: string
              description: Human readable error message
              example: Human readable error message
            details:
              type: object
              description: Optional additional error details
        meta:
          $ref: '#/components/schemas/Meta'
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: X-API-KEY
      description: API key for authentication

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.