> ## 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.11.5-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.13
    description: Sandbox
  - url: https://api.polygon.technology/v0.13
    description: Production
security:
  - BearerAuth: []
tags:
  - name: Auth
    description: Authentication
  - name: Customers
    description: Customer management and KYC
  - name: CustomerTokens
    description: Customer-bound tokens for browser SDK calls
  - name: Wallets
    description: Embedded wallet association
  - name: Webhooks
    description: Webhook endpoints, signing secrets, and event delivery
  - name: Wallet
  - name: Quote
  - name: Transaction
  - name: Transfer
  - name: CashIns
  - name: CashLocation
  - name: Sandbox
  - name: VirtualAccount
  - name: Counterparty
  - name: ExternalAccount
  - name: Reference
  - name: DepositAddress
  - name: Indexer
    description: >-
      Read token balances, prices, and transaction history across EVM networks,
      Solana, and Tron. Indexer methods are webRPC calls: each is a `POST` with
      a JSON body, served at `/v1/{Service}/{Method}` on the API host rather
      than under the `/v0.13` base path. Authenticate with a publishable key in
      the `Api-Key` header, or with a bearer token from `POST /auth/token`.
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: >-
        Standard OMS error response. Error names and numeric codes are stable
        identifiers.
      properties:
        error:
          type: string
          description: Stable OMS error name.
          example: Unauthorized
        code:
          type: integer
          description: Stable OMS error code.
          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 `whd_` id identifies the
        delivery. `event.id` is the envelope id and dedup key, stable across
        retries.
      required:
        - event
      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
        resourceType:
          type: string
          x-go-type-skip-optional-pointer: true
          nullable: true
        resourceId:
          type: string
          x-go-type-skip-optional-pointer: true
          nullable: true
        status:
          $ref: '#/components/schemas/DeliveryStatus'
        statusReason:
          type: string
          x-go-type-skip-optional-pointer: true
          nullable: true
        sendAt:
          type: string
          format: date-time
          x-go-type: string
          x-go-type-skip-optional-pointer: true
        deliveredAt:
          type: string
          format: date-time
          x-go-type: string
          x-go-type-skip-optional-pointer: true
        failedAttempts:
          type: integer
          x-go-type-skip-optional-pointer: true
        test:
          type: boolean
          x-go-type-skip-optional-pointer: true
          description: True for a synthesized test delivery.
        event:
          $ref: '#/components/schemas/WebhookEvent'
        createdAt:
          type: string
          format: date-time
          x-go-type: string
          x-go-type-skip-optional-pointer: true
          description: When OMS stored the delivery.
    DeliveryAttempt:
      type: object
      description: >-
        One HTTP attempt within a delivery. Sensitive headers, URL query params
        and response-body fields are masked before storage. Request and response
        bodies are stored encrypted.
      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
          x-go-type: string
          x-go-type-skip-optional-pointer: true
        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: >-
            Snapshot of the body this attempt POSTed, cut off at 64 KiB;
            `requestBodyTruncated` is set when it is.
        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).
    WebhookEvent:
      type: object
      x-go-type: json.RawMessage
      description: >-
        The webhook body for this delivery, rendered as the current webhook
        format. `attempts[].requestBody` holds the body each attempt sent, cut
        off at 64 KiB when `requestBodyTruncated` is set.
      required:
        - id
        - type
        - createdAt
        - schema
        - data
      properties:
        id:
          type: string
          description: The event's dedup key, stable across retries.
          example: evt_01m4wp8xtpfm9tp57mh59nbgrq
        idempotencyKey:
          type: string
          description: >-
            The same on every emission of one logical change, so a repeat that
            carries a new id can be skipped. Absent when the producer set none.
          example: 6f1c2d3e-0a4b-5c7d-8e9f-1a2b3c4d5e6f
        type:
          type: string
          example: transfer.statusChanged
        createdAt:
          type: string
          format: date-time
          description: >-
            When the producer created the event, falling back to when it
            happened, in UTC with three decimals.
          example: '2026-10-14T09:30:00.100Z'
        schema:
          type: string
          description: >-
            `v1` for events in the V1 catalog, or an empty string for events
            published before it.
          example: v1
        data:
          type: object
          description: >-
            The event's data. An empty object when the delivery's payload could
            not be converted.
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: Token from POST /auth/token

````