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

# List delivery attempts

> Returns recent delivery attempts for an endpoint — status, attempt count, the HTTP code your server returned, and the last error. Cap the page with `limit` (default 50).



## OpenAPI

````yaml https://api.kuahr.com/openapi/v1.json get /v1/webhooks/{id}/deliveries
openapi: 3.1.1
info:
  title: Kua API
  description: >-
    The Kua developer API — payroll, wallets, and payments for your own company.


    Authenticate with an API key issued from **Settings → API keys** in the
    dashboard, sent in the `X-Api-Key` header. Every request is scoped to the
    company that owns the key. Base URL: `https://api.kuahr.com` (all endpoints
    are versioned under `/v1`).
  version: v1
servers:
  - url: https://api.kuahr.com
    description: Production
security:
  - ApiKey: []
tags:
  - name: Payroll
    description: List and create payroll runs.
  - name: Employees
    description: Add people to your company.
  - name: Events
    description: The company event timeline (also delivered via webhooks).
  - name: Webhooks
    description: Register endpoints and inspect deliveries.
  - name: Test data
    description: Manage sandbox (test-mode) data.
  - name: Leave
    description: >-
      Time-off types, requests, balances, and allocations (requires the Leave
      add-on).
  - name: Advances
    description: Salary advances (requires the Salary advance add-on).
  - name: Performance
    description: OKRs, appraisals, and promotions (requires the Performance add-on).
paths:
  /v1/webhooks/{id}/deliveries:
    get:
      tags:
        - Webhooks
      summary: List delivery attempts
      description: >-
        Returns recent delivery attempts for an endpoint — status, attempt
        count, the HTTP code your server returned, and the last error. Cap the
        page with `limit` (default 50).
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
            format: uuid
        - name: limit
          in: query
          schema:
            pattern: ^-?(?:0|[1-9]\d*)$
            type:
              - integer
              - string
            format: int32
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WebhookDeliveryList'
              example:
                deliveries:
                  - id: e5f6a7b8-0000-0000-0000-000000000001
                    eventType: payroll.run.disbursed
                    status: Delivered
                    attempts: 1
                    responseStatusCode: 200
                    lastAttemptAt: '2026-07-25T10:30:05+00:00'
                    nextAttemptAt: '2026-07-25T10:30:05+00:00'
                    error: null
                    createdAt: '2026-07-25T10:30:00+00:00'
        '401':
          description: Unauthorized
components:
  schemas:
    WebhookDeliveryList:
      required:
        - deliveries
      type: object
      properties:
        deliveries:
          type: array
          items:
            $ref: '#/components/schemas/WebhookDeliveryItem'
      description: Recent delivery attempts for an endpoint.
    WebhookDeliveryItem:
      required:
        - id
        - eventType
        - status
        - attempts
        - responseStatusCode
        - lastAttemptAt
        - nextAttemptAt
        - error
        - createdAt
      type: object
      properties:
        id:
          type: string
          format: uuid
        eventType:
          type: string
          description: The event type that was delivered.
        status:
          type: string
          description: Delivery status, e.g. `Delivered`, `Pending`, `Exhausted`.
        attempts:
          pattern: ^-?(?:0|[1-9]\d*)$
          type:
            - integer
            - string
          description: How many attempts have been made.
          format: int32
        responseStatusCode:
          pattern: ^-?(?:0|[1-9]\d*)$
          type:
            - 'null'
            - integer
            - string
          description: >-
            HTTP status your endpoint returned on the last attempt (null if
            never reached).
          format: int32
        lastAttemptAt:
          type:
            - 'null'
            - string
          description: When the last attempt was made (null if not yet attempted).
          format: date-time
        nextAttemptAt:
          type: string
          description: When the next retry is scheduled.
          format: date-time
        error:
          type:
            - 'null'
            - string
          description: The last error, if the attempt failed.
        createdAt:
          type: string
          description: When the delivery was first queued.
          format: date-time
      description: One delivery attempt of an event to an endpoint.
  securitySchemes:
    ApiKey:
      type: apiKey
      description: Your API key, e.g. `kua_live_…` (or `kua_test_…` in test mode).
      name: X-Api-Key
      in: header

````