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

# Get Webhook Delivery History

> Retrieves delivery history for a webhook. Returns up to 100 recent deliveries with status, response codes, and retry info.

Retrieves delivery history for a webhook. Returns up to 100 recent deliveries with status, response codes, and retry info.

## Authentication

This endpoint requires authentication via Bearer token:

* **Authorization**: `Bearer <token>`

## Path Parameters

| Parameter        | Type          | Required | Description     |
| ---------------- | ------------- | -------- | --------------- |
| `organizationId` | string (UUID) | Yes      | Organization ID |
| `id`             | string (UUID) | Yes      | Webhook ID      |

## Response

Returns an array of delivery attempts with:

* Delivery ID and timestamp
* Event type that triggered the webhook
* HTTP status code and response body
* Number of retry attempts
* Success/failure status

## Example Request

```bash theme={null}
curl -X GET http://localhost:3001/api/organizations/550e8400-e29b-41d4-a716-446655440000/webhooks/123e4567-e89b-12d3-a456-426614174000/deliveries \
  -H "Authorization: Bearer <your_token>"
```

## Example Response

```json theme={null}
[
  {
    "id": "delivery-123",
    "webhookId": "123e4567-e89b-12d3-a456-426614174000",
    "event": "member.added",
    "statusCode": 200,
    "responseBody": "OK",
    "attempts": 1,
    "success": true,
    "createdAt": "2025-12-26T10:00:00Z"
  },
  {
    "id": "delivery-124",
    "webhookId": "123e4567-e89b-12d3-a456-426614174000",
    "event": "organization.updated",
    "statusCode": 500,
    "responseBody": "Internal Server Error",
    "attempts": 3,
    "success": false,
    "createdAt": "2025-12-26T09:00:00Z"
  }
]
```

## Use Cases

* **Debug Issues**: Investigate why webhooks are failing
* **Monitor Health**: Track delivery success rates
* **Retry Failed**: Identify deliveries that need manual retry
* **Audit Trail**: Review webhook activity history

## Common Errors

### 401 Unauthorized

Authentication required.

```json theme={null}
{
  "statusCode": 401,
  "message": "Authentication required. Provide a valid bearer token."
}
```

### 403 Forbidden

User is not a member of this organization.

```json theme={null}
{
  "statusCode": 403,
  "message": "Access denied. User is not a member of this organization."
}
```

### 404 Not Found

Webhook not found.

```json theme={null}
{
  "statusCode": 404,
  "message": "Webhook not found with the provided ID."
}
```


## OpenAPI

````yaml GET /organizations/{organizationId}/webhooks/{id}/deliveries
openapi: 3.1.0
info:
  title: Timbrix API
  description: >-
    REST API with OAuth2 server for managing organizations, members, and
    webhooks
  version: '1.0'
  contact: {}
servers:
  - url: http://sandbox.mintlify.com
    description: Sandbox environment
  - url: http://localhost:3001/api
    description: Local development
security: []
tags:
  - name: organizations
    description: Organization management endpoints
  - name: oauth
    description: OAuth2 authentication and authorization
  - name: webhooks
    description: Webhook configuration and delivery
  - name: users
    description: User information endpoints
  - name: api-keys
    description: API Keys management and validation
paths:
  /organizations/{organizationId}/webhooks/{id}/deliveries:
    get:
      tags:
        - webhooks
      summary: Get webhook delivery history
      description: >-
        Retrieves delivery history for a webhook. Returns up to 100 recent
        deliveries with status, response codes, and retry info.
      operationId: WebhooksController_getDeliveries
      parameters:
        - name: organizationId
          required: true
          in: path
          schema:
            type: string
        - name: id
          required: true
          in: path
          schema:
            type: string
      responses:
        '200':
          description: >-
            Delivery history retrieved successfully. Returns array of delivery
            attempts.
        '401':
          description: Authentication required. Provide a valid bearer token.
        '403':
          description: Access denied. User is not a member of this organization.
        '404':
          description: Webhook not found with the provided ID.
      security:
        - bearer: []
components:
  securitySchemes:
    bearer:
      scheme: bearer
      bearerFormat: JWT
      type: http

````