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

# Get a delivery with its attempts



## OpenAPI

````yaml /api-reference/openapi.yaml get /webhooks/{webhookId}/deliveries/{deliveryId}
openapi: 3.0.3
info:
  title: Polygon OMS Public API
  version: v26.05.28-0001
  description: >-
    Unified API for moving money between crypto and fiat. Three ways to move
    money: Transactions (instant, wallet or card funded, including Cash-In for
    in-person cash deposits), Deposit Addresses (reusable crypto deposit
    configurations), and Virtual Accounts (dedicated bank accounts that
    auto-convert fiat to crypto). Standard transactions follow a two-step flow:
    create a Quote (pricing), then create a Transaction (execution). Cash-in
    codes generate a one-time deposit code for in-person cash deposits at retail
    locations.
  contact:
    name: Polygon OMS
    url: https://oms.polygon.technology
servers:
  - url: https://sandbox-api.polygon.technology/v0.11
    description: Sandbox
  - url: https://api.polygon.technology/v0.11
    description: Production
security:
  - BearerAuth: []
tags:
  - name: Auth
    description: Authentication via FrontEgg
  - name: Customers
    description: Customer management and KYC
  - name: Customer
  - name: Wallet
  - name: Quote
  - name: Transaction
  - name: CashIns
  - name: CashLocation
  - name: Sandbox
  - name: VirtualAccount
  - name: Counterparty
  - name: ExternalAccount
  - name: DepositAddress
paths:
  /webhooks/{webhookId}/deliveries/{deliveryId}:
    get:
      tags:
        - Webhooks
      summary: Get a delivery with its attempts
      operationId: getWebhookDelivery
      parameters:
        - name: webhookId
          in: path
          required: true
          schema:
            type: string
        - name: deliveryId
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Delivery with attempts
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetDeliveryResponse'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    GetDeliveryResponse:
      type: object
      required:
        - delivery
        - attempts
      properties:
        delivery:
          $ref: '#/components/schemas/WebhookDelivery'
        attempts:
          type: array
          items:
            $ref: '#/components/schemas/DeliveryAttempt'
    ErrorResponse:
      type: object
      required:
        - error
        - code
        - msg
        - status
      description: >-
        Canonical OMSX error envelope, matching the webrpc shape every OMSX
        service emits. Names and numeric codes are stable identifiers defined in
        `schema/omsx/errors.ridl`.
      properties:
        error:
          type: string
          description: Stable error name from schema/omsx/errors.ridl
          example: Unauthorized
        code:
          type: integer
          description: Stable numeric code from schema/omsx/errors.ridl
          example: 1000
        msg:
          type: string
          description: Human-readable message (kept stable across releases)
          example: unauthorized access
        cause:
          type: string
          description: >-
            Optional internal cause for operator triage; filtered before
            reaching end customers
          example: signature
        status:
          type: integer
          description: HTTP status mirrored in the body for client convenience
          example: 401
    WebhookDelivery:
      type: object
      description: >-
        One delivery of one event to one webhook. The id is the partner-facing
        envelope id and dedup key, stable across retries.
      properties:
        id:
          type: string
          x-go-type-skip-optional-pointer: true
          example: whd_01H9Xa8F5dN6mP3q
        object:
          type: string
          x-go-type-skip-optional-pointer: true
          example: webhookDelivery
        webhookId:
          type: string
          x-go-type-skip-optional-pointer: true
          example: whk_01H9Xa8F5dN6mP3q
        eventType:
          type: string
          x-go-type-skip-optional-pointer: true
          example: transaction.settled
        eventId:
          type: string
          x-go-type-skip-optional-pointer: true
          example: evt_01H9Xa8F5dN6mP3q
        resourceType:
          type: string
          x-go-type-skip-optional-pointer: true
          nullable: true
        resourceId:
          type: string
          x-go-type-skip-optional-pointer: true
          nullable: true
        sequence:
          type: integer
          x-go-type-skip-optional-pointer: true
          format: int64
          nullable: true
          description: >-
            Per-resource monotonic counter for consumer-side reordering/gap
            detection.
        status:
          $ref: '#/components/schemas/DeliveryStatus'
        statusReason:
          type: string
          x-go-type-skip-optional-pointer: true
          nullable: true
        sendAt:
          type: string
          format: date-time
        deliveredAt:
          type: string
          format: date-time
          nullable: true
        occurredAt:
          type: string
          format: date-time
          nullable: true
        failedAttempts:
          type: integer
          x-go-type-skip-optional-pointer: true
        payload:
          type: object
          x-go-type-skip-optional-pointer: true
          description: Domain payload of the event, before envelope wrap.
        test:
          type: boolean
          x-go-type-skip-optional-pointer: true
          description: True for a synthesized test delivery.
        createdAt:
          type: string
          format: date-time
    DeliveryAttempt:
      type: object
      description: >-
        One HTTP attempt within a delivery. Sensitive header/body fields are
        redacted before storage.
      properties:
        attemptNumber:
          type: integer
          x-go-type-skip-optional-pointer: true
        statusCode:
          type: integer
          x-go-type-skip-optional-pointer: true
          nullable: true
        error:
          type: string
          x-go-type-skip-optional-pointer: true
          nullable: true
        durationMs:
          type: integer
          x-go-type-skip-optional-pointer: true
          nullable: true
        createdAt:
          type: string
          format: date-time
        targetUrl:
          type: string
          x-go-type-skip-optional-pointer: true
          nullable: true
          description: >-
            Target URL with userinfo stripped and credential-bearing query
            params redacted.
        requestMethod:
          type: string
          x-go-type-skip-optional-pointer: true
          nullable: true
        requestHeaders:
          type: object
          x-go-type-skip-optional-pointer: true
          nullable: true
          additionalProperties:
            type: string
          description: Stored as a JSON map; sensitive header names redacted.
        requestBody:
          type: string
          x-go-type-skip-optional-pointer: true
          nullable: true
          description: Immutable snapshot of the partner envelope we POST.
        requestBodyTruncated:
          type: boolean
          x-go-type-skip-optional-pointer: true
          nullable: true
        responseHeaders:
          type: object
          x-go-type-skip-optional-pointer: true
          nullable: true
          additionalProperties:
            type: string
        responseBody:
          type: string
          x-go-type-skip-optional-pointer: true
          nullable: true
          description: Up to 64 KiB stored; sensitive JSON field names redacted.
        responseBodyTruncated:
          type: boolean
          x-go-type-skip-optional-pointer: true
          nullable: true
    DeliveryStatus:
      type: string
      enum:
        - queued
        - inProgress
        - delivered
        - failed
        - skipped
      description: >-
        Delivery lifecycle state. `skipped` is recorded but not dispatched
        (suspended/disabled webhook).
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: Token from POST /auth/token

````