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

# Handles `GET /v1/webhooks/deliveries`.

> # Errors

Returns `401` without usable credentials and `500` when the store fails.



## OpenAPI

````yaml /openapi.json get /v1/webhooks/deliveries
openapi: 3.1.0
info:
  title: Esectra API
  description: >-
    Transaction screening, identity verification, and wallet risk.


    Every create route accepts `Idempotency-Key`; replaying one returns the
    original record with `200` where the first call returned `201`. `POST
    /v1/transactions` requires the header, because a duplicated transaction is a
    duplicated financial record.
  license:
    name: proprietary
    identifier: proprietary
  version: 0.1.0
servers:
  - url: https://qa.esectra.com
    description: Esectra QA Documentation
security: []
paths:
  /v1/webhooks/deliveries:
    get:
      tags:
        - Webhooks
      summary: Handles `GET /v1/webhooks/deliveries`.
      description: |-
        # Errors

        Returns `401` without usable credentials and `500` when the store fails.
      operationId: list_deliveries_handler
      responses:
        '200':
          description: Deliveries, newest first
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeliveryListResponseBody'
        '401':
          description: No usable credentials
        '503':
          description: A backing store could not be reached
      security:
        - api_key: []
        - session_cookie: []
components:
  schemas:
    DeliveryListResponseBody:
      type: object
      description: Delivery listing response body.
      required:
        - deliveries
      properties:
        deliveries:
          type: array
          items:
            $ref: '#/components/schemas/DeliveryBody'
          description: Deliveries, newest first.
        next_cursor:
          type:
            - string
            - 'null'
          description: >-
            Pass back as `cursor` to read the next page. Absent at the end of
            the

            listing, which is how a caller knows to stop.
    DeliveryBody:
      type: object
      description: A delivery as returned to a customer.
      required:
        - delivery_id
        - endpoint_id
        - event_id
        - event_type
        - subject_id
        - status
        - attempts
        - created_at
      properties:
        attempts:
          type: integer
          format: int32
          description: Attempts made.
          minimum: 0
        created_at:
          type: string
          description: RFC 3339 creation timestamp.
        delivery_id:
          type: string
          description: Delivery identifier.
        endpoint_id:
          type: string
          description: Endpoint it was sent to.
        event_id:
          type: string
          description: Event identifier, stable across attempts.
        event_type:
          type: string
          description: Event name.
        last_error:
          type:
            - string
            - 'null'
          description: Why the last attempt failed.
        last_response_status:
          type:
            - integer
            - 'null'
          format: int32
          description: HTTP status of the last attempt.
          minimum: 0
        next_attempt_at:
          type:
            - string
            - 'null'
          description: When the next attempt is scheduled.
        status:
          $ref: '#/components/schemas/DeliveryStatus'
          description: How far the delivery got.
        subject_id:
          type: string
          description: Object the event was about.
    DeliveryStatus:
      type: string
      description: How far a delivery has got.
      enum:
        - PENDING
        - DELIVERED
        - RETRYING
        - EXHAUSTED
  securitySchemes:
    api_key:
      type: http
      scheme: bearer
      description: >-
        A tenant API key. Acts for exactly one tenant and cannot conclude a
        case, because a conclusion records a person.
    session_cookie:
      type: apiKey
      in: cookie
      name: esectra_session
      description: >-
        A signed-in reviewer's session. httpOnly and SameSite=Lax; set by `POST
        /v1/control/sessions` and only usable once the second factor is met.

````