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

# List Delivery Attempts

> Return a paginated, filterable list of delivery attempts for a webhook, so you can audit what was sent, the HTTP status received, and any errors.

**Authentication**: X-API-Key header required



## OpenAPI

````yaml /openapi.json get /v1/webhooks/{webhook_id}/deliveries
openapi: 3.1.0
info:
  title: Briq API
  description: Karibu Briq API Documentation
  version: '0.8'
servers:
  - url: https://karibu.briq.tz
    description: Production
  - url: https://pre-release.karibu.briq.tz
    description: Pre-release
  - url: http://karibu.briq.tz
    description: LocalPass
security: []
paths:
  /v1/webhooks/{webhook_id}/deliveries:
    get:
      tags:
        - Karibu-Webhooks
      summary: List Delivery Attempts
      description: >-
        Return a paginated, filterable list of delivery attempts for a webhook,
        so you can audit what was sent, the HTTP status received, and any
        errors.


        **Authentication**: X-API-Key header required
      operationId: list_webhook_deliveries_v1_webhooks__webhook_id__deliveries_get
      parameters:
        - name: webhook_id
          in: path
          required: true
          schema:
            type: string
            title: Webhook Id
        - name: status
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                enum:
                  - pending
                  - delivered
                  - failed
                  - exhausted
              - type: 'null'
            title: Status
          description: Filter by delivery status.
        - name: event_name
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Event Name
          description: Filter by event name, e.g. briq.message.delivered.
        - name: from_created_at
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                format: date-time
              - type: 'null'
            title: From Created At
        - name: to_created_at
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                format: date-time
              - type: 'null'
            title: To Created At
        - name: message_id
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Message Id
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            minimum: 1
            maximum: 100
            default: 50
            title: Limit
        - name: offset
          in: query
          required: false
          schema:
            type: integer
            minimum: 0
            default: 0
            title: Offset
        - name: X-API-Key
          in: header
          required: true
          schema:
            type: string
            title: X-Api-Key
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WebhookDeliveryListResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    WebhookDeliveryListResponse:
      properties:
        items:
          type: array
          items:
            $ref: '#/components/schemas/WebhookDeliveryOut'
          title: Items
        total:
          type: integer
          title: Total
          description: Total count matching the filters.
        limit:
          type: integer
          title: Limit
        offset:
          type: integer
          title: Offset
      type: object
      required:
        - items
        - total
        - limit
        - offset
      title: WebhookDeliveryListResponse
      description: Paginated list of webhook delivery attempts.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    WebhookDeliveryOut:
      properties:
        id:
          type: string
          title: Id
          description: Unique delivery id.
        event_id:
          type: string
          title: Event Id
          description: Event id from the envelope (idempotency).
        webhook_id:
          type: string
          title: Webhook Id
          description: Target webhook config id.
        app_id:
          anyOf:
            - type: string
            - type: 'null'
          title: App Id
          description: Developer app id.
        service_type:
          type: string
          title: Service Type
          description: 'Channel: sms, email, voice, otp, whatsapp.'
        event_name:
          type: string
          title: Event Name
          description: Event name, e.g. briq.message.delivered.
        status:
          type: string
          enum:
            - pending
            - delivered
            - failed
            - exhausted
          title: Status
        attempt_count:
          type: integer
          title: Attempt Count
          description: Number of delivery attempts made.
        max_attempts:
          type: integer
          title: Max Attempts
          description: Maximum attempts configured.
        last_status_code:
          anyOf:
            - type: integer
            - type: 'null'
          title: Last Status Code
          description: HTTP status from the last attempt.
        last_error:
          anyOf:
            - type: string
            - type: 'null'
          title: Last Error
          description: Last error message if failed.
        next_attempt_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Next Attempt At
        created_at:
          type: string
          format: date-time
          title: Created At
        updated_at:
          type: string
          format: date-time
          title: Updated At
      type: object
      required:
        - id
        - event_id
        - webhook_id
        - service_type
        - event_name
        - status
        - attempt_count
        - max_attempts
        - created_at
        - updated_at
      title: WebhookDeliveryOut
      description: Summary of a single webhook delivery attempt.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````