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

# Get webhook delivery details

> Returns a single delivery record including its full attempt history — timestamps, HTTP status codes, and response bodies. Pass `include_payload=true` to also return the events that were sent.



## OpenAPI

````yaml /api-reference/v4.json get /v4/webhook_endpoints/{id}/deliveries/{delivery_id}
openapi: 3.0.3
info:
  title: Kit API
  version: '4.0'
servers:
  - url: https://api.kit.com
security: []
paths:
  /v4/webhook_endpoints/{id}/deliveries/{delivery_id}:
    get:
      tags:
        - Webhooks
      summary: Get webhook delivery details
      description: >-
        Returns a single delivery record including its full attempt history —
        timestamps, HTTP status codes, and response bodies. Pass
        `include_payload=true` to also return the events that were sent.
      parameters:
        - name: delivery_id
          in: path
          required: true
          schema:
            type: integer
          example: 0
        - name: id
          in: path
          required: true
          schema:
            type: integer
          example: 21
        - name: include_payload
          in: query
          required: false
          schema:
            type: boolean
          example: true
          description: >-
            To include the `payload` field in the response, use `true`. Omitted
            by default because a delivery can carry many events. Only `true` and
            `false` are accepted; any other value returns a 422.
      responses:
        '200':
          description: >-
            Returns 200 and the delivery with its payload and attempts including
            connection failure
          content:
            application/json:
              schema:
                type: object
                properties:
                  delivery:
                    type: object
                    properties:
                      id:
                        type: integer
                      event_type:
                        type: string
                      status:
                        type: string
                      attempt_count:
                        type: integer
                      created_at:
                        type: string
                      completed_at:
                        nullable: true
                      attempts:
                        type: array
                        items:
                          type: object
                          properties:
                            id:
                              type: integer
                            attempt_number:
                              type: integer
                            status_code:
                              type: integer
                              nullable: true
                            error_message:
                              type: string
                              nullable: true
                            response_body:
                              type: string
                              nullable: true
                            duration_ms:
                              type: integer
                              nullable: true
                            attempted_at:
                              type: string
                          required:
                            - id
                            - attempt_number
                            - status_code
                            - error_message
                            - response_body
                            - duration_ms
                            - attempted_at
                      payload:
                        type: array
                        items:
                          type: object
                          properties:
                            id:
                              type: string
                            data:
                              type: object
                              description: >-
                                The event data. Its shape depends on the event
                                type; see [Event
                                Types](https://developers.kit.com/webhooks/event-types).
                            type:
                              type: string
                            created:
                              type: string
                          required:
                            - id
                            - data
                            - type
                            - created
                        description: >-
                          Returned only when `include_payload` is `true`. The
                          events sent in this delivery, matching the `events`
                          array of the webhook request body.
                    required:
                      - id
                      - event_type
                      - status
                      - attempt_count
                      - created_at
                      - completed_at
                      - attempts
                required:
                  - delivery
              example:
                delivery:
                  id: 4
                  event_type: subscriber.activated
                  status: pending
                  attempt_count: 0
                  created_at: '2023-02-17T11:43:55Z'
                  completed_at: null
                  attempts:
                    - id: 1
                      attempt_number: 2
                      status_code: 200
                      error_message: null
                      response_body: ok
                      duration_ms: 150
                      attempted_at: '2023-02-17T11:43:55Z'
                    - id: 2
                      attempt_number: 1
                      status_code: null
                      error_message: Connection refused
                      response_body: null
                      duration_ms: null
                      attempted_at: '2023-02-17T11:43:55Z'
                  payload:
                    - id: 9b2f6a3e-4c1d-4e8a-9f0b-1a2b3c4d5e6f
                      data:
                        subscriber:
                          id: 123
                          state: active
                          fields: {}
                          created_at: '2026-01-01T00:00:00Z'
                          first_name: Alice
                          email_address: alice@example.com
                      type: subscriber.activated
                      created: '2026-01-01T00:00:00Z'
        '404':
          description: Returns 404 when delivery does not exist
          content:
            application/json:
              schema:
                type: object
                properties:
                  errors:
                    type: array
                    items:
                      type: string
                required:
                  - errors
              example:
                errors:
                  - Not Found
      security:
        - API Key: []
        - OAuth2: []
components:
  securitySchemes:
    API Key:
      description: Authenticate API requests via an API Key
      type: apiKey
      in: header
      name: X-Kit-Api-Key
    OAuth2:
      description: Authenticate API requests via an OAuth token
      type: oauth2
      flows:
        authorizationCode:
          authorizationUrl: https://api.kit.com/v4/oauth/authorize
          tokenUrl: https://api.kit.com/v4/oauth/token
          refreshUrl: https://api.kit.com/v4/oauth/token
          scopes:
            read: Read access to Kit API v4
            write: Write access to Kit API v4

````

## Related topics

- [Delivery history](/webhooks/delivery-history.md)
- [Quick start guide](/kit-app-store/quick-start-guide.md)
- [List webhook deliveries](/api-reference/webhooks/list-webhook-deliveries.md)
- [API Overview](/api-reference/overview.md)
- [Getting started with webhooks](/webhooks/getting-started.md)


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