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

# Retrieve a Webhook Delivery

> Get a webhook delivery, including its status and latest attempt.

<Badge color="green">0 Credits</Badge>

Find the delivery ID in [List Webhook Deliveries](/api-reference/webhooks/list) or the event's `X-Context-Delivery-Id` header. For the full delivery history, use [List Webhook Delivery Attempts](/api-reference/webhooks/attempts).


## OpenAPI

````yaml GET /webhooks/deliveries/{delivery_id}
openapi: 3.1.0
info:
  title: Context.dev API
  description: API for retrieving context data from any website
  version: 1.0.0
servers:
  - url: https://api.context.dev/v1
security: []
tags:
  - name: Webhooks
    description: Inspect and retry webhook deliveries. These endpoints cost no credits.
  - name: Batch
    description: Scrape many pages or crawl a site asynchronously.
  - name: Monitors
    description: >-
      Monitor pages, sitemaps, and extracted website data for exact or semantic
      changes. Webhook payloads are documented by the
      MonitorsChangeDetectedWebhookPayload and
      MonitorsRunCompletedWebhookPayload schemas.
  - name: News
    description: >-
      Search live first-party RSS and free historical news data by company
      identity.
paths:
  /webhooks/deliveries/{delivery_id}:
    get:
      tags:
        - Webhooks
      summary: Get a webhook delivery
      description: Get a webhook delivery, including its status and latest attempt.
      operationId: getWebhookDelivery
      parameters:
        - schema:
            type: string
            pattern: ^whd_[a-f0-9]{32}$
            description: Delivery ID.
          required: true
          description: Delivery ID.
          name: delivery_id
          in: path
        - $ref: '#/components/parameters/RequestTags'
      responses:
        '200':
          description: Webhook delivery
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/WebhookDelivery'
                  - type: object
                    properties:
                      key_metadata:
                        $ref: '#/components/schemas/KeyMetadata'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          description: Rate limit exceeded (600 requests per minute per organization).
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: Webhook service is temporarily unavailable.
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  parameters:
    RequestTags:
      name: tags
      in: query
      required: false
      style: form
      explode: false
      schema:
        $ref: '#/components/schemas/RequestTags'
      description: >-
        Comma-separated tags for tracking request usage. Up to 20 tags, each
        1-50 characters.
      example: production,team-alpha
  headers:
    RateLimitLimit:
      description: Maximum requests per minute.
      schema:
        type: integer
        minimum: 1
    RateLimitRemaining:
      description: Requests remaining in the current minute.
      schema:
        type: integer
        minimum: 0
    RateLimitReset:
      description: Unix timestamp in seconds when the rate limit resets.
      schema:
        type: integer
  schemas:
    WebhookDelivery:
      type: object
      properties:
        id:
          type: string
          description: Delivery ID.
        event:
          type: string
          enum:
            - batch.completed
            - batch.failed
            - batch.cancelled
            - change.detected
            - run.completed
          description: Webhook event type.
        source:
          oneOf:
            - type: object
              properties:
                type:
                  type: string
                  enum:
                    - batch
                  description: Delivery source.
                batch_id:
                  type: string
                  description: Batch ID.
              required:
                - type
                - batch_id
              title: Batch
            - type: object
              properties:
                type:
                  type: string
                  enum:
                    - monitor
                  description: Delivery source.
                monitor_id:
                  type: string
                  description: Monitor ID.
                run_id:
                  type: string
                  description: Monitor run ID.
              required:
                - type
                - monitor_id
                - run_id
              title: Monitor
          description: Batch or monitor run that produced the event.
        url:
          type: string
          format: uri
          description: Webhook destination URL.
        status:
          type: string
          enum:
            - pending
            - delivering
            - retrying
            - delivered
            - failed
            - cancelled
          description: Current delivery status.
        created_at:
          type: string
          format: date-time
          description: Event creation time.
        retry_expires_at:
          type: string
          format: date-time
          description: Manual retry deadline, seven days after event creation.
        delivered_at:
          type:
            - string
            - 'null'
          format: date-time
          description: Last successful delivery time, or null if never delivered.
        next_attempt_at:
          type:
            - string
            - 'null'
          format: date-time
          description: Next scheduled attempt, or null if none.
        last_error:
          type:
            - object
            - 'null'
          properties:
            code:
              type: string
              description: Error code.
            message:
              type: string
              description: Error details.
          required:
            - code
            - message
          description: Latest delivery error, or null if none.
        event_id:
          type: string
          description: Stable event ID for deduplicating received webhooks.
        retry:
          allOf:
            - $ref: '#/components/schemas/WebhookRetry'
            - description: Automatic retry settings for this event.
        last_attempt:
          anyOf:
            - $ref: '#/components/schemas/WebhookAttempt'
            - type: 'null'
          description: Latest attempt, or null if none.
      required:
        - id
        - event
        - source
        - url
        - status
        - created_at
        - retry_expires_at
        - delivered_at
        - next_attempt_at
        - last_error
        - event_id
        - retry
        - last_attempt
    KeyMetadata:
      type: object
      properties:
        credits_consumed:
          type: integer
          description: Credits used by this request.
        credits_remaining:
          type: integer
          description: Credits remaining for your organization.
      required:
        - credits_consumed
        - credits_remaining
      description: Credit usage, included whenever a valid API key is provided.
    ErrorResponse:
      type: object
      properties:
        message:
          type: string
          description: Error message
        error_code:
          type: string
          enum:
            - INTERNAL_ERROR
            - VALID
            - NOT_FOUND
            - FORBIDDEN
            - USAGE_EXCEEDED
            - RATE_LIMITED
            - UNAUTHORIZED
            - DISABLED
            - PAID_PLAN_REQUIRED
            - INSUFFICIENT_PERMISSIONS
            - TIMEOUT_EXCEEDS_MAXIMUM
            - WEBSITE_ACCESS_ERROR
            - WEBSITE_BLOCKED
            - WEBSITE_NOT_FOUND
            - PDF_SKIPPED
            - PDF_IMAGES_ONLY
            - EXTERNAL_PROVIDER_ERROR
            - INPUT_VALIDATION_ERROR
            - ZDR_NOT_SUPPORTED
            - ZDR_NOT_ENABLED
            - FREE_EMAIL_DETECTED
            - DISPOSABLE_EMAIL_DETECTED
            - REQUEST_TIMEOUT
            - COLD_DOMAIN_TIMEOUT_TOO_LOW
            - UNSUPPORTED_CONTENT
            - CONTENT_TOO_LARGE
            - MONITOR_PAUSED
            - MONITOR_NO_WEBHOOK
            - COLLECTION_PAUSED
            - MONITOR_LIMIT_EXCEEDED
            - SEARCH_UNAVAILABLE
            - BATCH_LIMIT_EXCEEDED
            - BATCH_NOT_CANCELLABLE
            - BATCH_NOT_COMPLETED
            - IDEMPOTENCY_KEY_CONFLICT
            - DELIVERY_IN_PROGRESS
            - DELIVERY_ALREADY_DELIVERED
            - DELIVERY_EXPIRED
            - DELIVERY_CANCELLED
          description: Error code indicating the type of error
        key_metadata:
          $ref: '#/components/schemas/KeyMetadata'
    RequestTags:
      type: array
      items:
        type: string
        minLength: 1
        maxLength: 50
      maxItems: 20
      description: >-
        Optional tags for tracking usage. Up to 20 tags, each 1 to 50
        characters.
      example:
        - production
        - team-alpha
    WebhookRetry:
      type: object
      properties:
        delays_seconds:
          type: array
          items:
            type: integer
            minimum: 1
            maximum: 86400
          maxItems: 10
          description: >-
            Retry delays in seconds, totaling at most 72 hours. Use [] to
            disable automatic retries.
          example:
            - 30
            - 300
            - 3600
      additionalProperties: false
      description: Webhook retry settings. Use {} for the default schedule.
      example:
        delays_seconds:
          - 10
          - 60
          - 300
          - 1800
          - 7200
          - 21600
          - 57600
    WebhookAttempt:
      type: object
      properties:
        attempt:
          type: integer
          minimum: 1
          description: Attempt number, starting at 1.
        trigger:
          type: string
          enum:
            - initial
            - automatic
            - manual
          description: What started this attempt.
        url:
          type: string
          format: uri
          description: URL used for this attempt.
        started_at:
          type: string
          format: date-time
          description: Attempt start time.
        completed_at:
          type:
            - string
            - 'null'
          format: date-time
          description: Completion time, or null while in progress.
        http_status:
          type:
            - integer
            - 'null'
          description: HTTP response status, or null if no response was received.
        error:
          type:
            - object
            - 'null'
          properties:
            code:
              type: string
              description: Error code.
            message:
              type: string
              description: Error details.
          required:
            - code
            - message
          description: Attempt error, or null if none.
      required:
        - attempt
        - trigger
        - url
        - started_at
        - completed_at
        - http_status
        - error
  responses:
    BadRequest:
      description: Bad request
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
      headers:
        X-RateLimit-Limit:
          $ref: '#/components/headers/RateLimitLimit'
        X-RateLimit-Remaining:
          $ref: '#/components/headers/RateLimitRemaining'
        X-RateLimit-Reset:
          $ref: '#/components/headers/RateLimitReset'
    Unauthorized:
      description: Unauthorized
      headers:
        X-RateLimit-Limit:
          $ref: '#/components/headers/RateLimitLimit'
        X-RateLimit-Remaining:
          $ref: '#/components/headers/RateLimitRemaining'
        X-RateLimit-Reset:
          $ref: '#/components/headers/RateLimitReset'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    NotFound:
      description: Not found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
      headers:
        X-RateLimit-Limit:
          $ref: '#/components/headers/RateLimitLimit'
        X-RateLimit-Remaining:
          $ref: '#/components/headers/RateLimitRemaining'
        X-RateLimit-Reset:
          $ref: '#/components/headers/RateLimitReset'

````