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

# Get Delivery

> One delivery with the body FlowIQ sent (`payload`). Scope: read.

One delivery with `payload`, the event exactly as it was (and will be) sent. The id is the `X-Flowiq-Delivery-Id` header on the request your server received.

## Basic Usage

```bash theme={null}
curl "https://api.flowiq.live/v1/webhooks/deliveries/c0a1f3d2-5e6b-4a7c-9d8e-1f2a3b4c5d6e" \
  -H "Authorization: Bearer fiq_YOUR_API_KEY"
```

***

## Path Parameters

| Parameter | Type | Required | Description |
| - | - | - | - |
| `id` | string | Yes | The delivery id |

***

## Response

### Success (200)

```json theme={null}
{
  "organization_id": "a4234f32-…",
  "data": {
    "id": "c0a1f3d2-5e6b-4a7c-9d8e-1f2a3b4c5d6e",
    "event_type": "message_received",
    "status": "failed",
    "attempts": 3,
    "last_status_code": 503,
    "payload": {
      "event_type": "message_received",
      "event_id": "9e8d7c6b-5a4f-4e3d-8c2b-1a0f9e8d7c6b",
      "organization_id": "a4234f32-…",
      "message": "Hi, is my order on its way?",
      "…": "…"
    }
  }
}
```

***

The example shows a few fields; the delivery carries every field of the [list item](https://docs.flowapt.com/flowiq-api-reference/endpoint/list-webhook-deliveries.md).


## OpenAPI

````yaml flowiq-api-reference/openapi-webhook-deliveries.json GET /v1/webhooks/deliveries/{id}
openapi: 3.1.0
info:
  title: FlowIQ Webhook Deliveries API
  version: 1.0.0
  description: >-
    The delivery log of your webhooks: every event FlowIQ sent, each attempt's
    result, and a way to send one again.
servers:
  - url: https://api.flowiq.live
    description: FlowIQ Production API
security:
  - BearerAuth: []
paths:
  /v1/webhooks/deliveries/{id}:
    get:
      tags:
        - Webhooks
      summary: Get Delivery
      description: 'One delivery with the body FlowIQ sent (`payload`). Scope: read.'
      operationId: getWebhookDelivery
      parameters:
        - name: id
          in: path
          required: true
          description: Delivery id (X-Flowiq-Delivery-Id on the request you received)
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
                properties:
                  organization_id:
                    type: string
                    format: uuid
                  data:
                    allOf:
                      - $ref: '#/components/schemas/Delivery'
                      - type: object
                        properties:
                          payload:
                            type: object
                            description: The event exactly as sent
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          $ref: '#/components/responses/RateLimited'
components:
  schemas:
    Delivery:
      type: object
      properties:
        id:
          type: string
          format: uuid
        webhook_id:
          type:
            - string
            - 'null'
          format: uuid
          description: The webhook it was sent to (null once that webhook is deleted)
        url:
          type: string
        platform:
          type:
            - string
            - 'null'
          example: whatsapp
        event_type:
          type: string
          example: message_received
        event_id:
          type: string
          format: uuid
          description: Same as event_id in the body; one per event, shared by every attempt
        status:
          type: string
          enum:
            - pending
            - in_flight
            - delivered
            - failed
            - dead
        attempts:
          type: integer
        max_attempts:
          type: integer
          example: 8
        next_attempt_at:
          type:
            - string
            - 'null'
          format: date-time
          description: When FlowIQ tries again (pending / failed only)
        last_attempt_at:
          type:
            - string
            - 'null'
          format: date-time
        last_status_code:
          type:
            - integer
            - 'null'
          description: Your server's HTTP status on the last attempt
        last_error:
          type:
            - string
            - 'null'
          example: HTTP 503
        last_duration_ms:
          type:
            - integer
            - 'null'
        delivered_at:
          type:
            - string
            - 'null'
          format: date-time
        created_at:
          type: string
          format: date-time
    Error:
      type: object
      properties:
        error:
          type: string
        code:
          type: string
        message:
          type: string
        request_id:
          type: string
          format: uuid
  responses:
    BadRequest:
      description: Invalid request
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Unauthorized:
      description: Missing or invalid API key
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Forbidden:
      description: The key lacks the scope
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    RateLimited:
      description: 240 reads or 60 actions per minute per key; Retry-After says when
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: fiq_ API key
      description: >-
        Your FlowIQ organisation API key (Settings → API Keys), sent as a bearer
        token. Format: `Bearer fiq_YOUR_API_KEY`

````

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