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

# List Webhook Deliveries

> Returns the recorded attempts to deliver webhook events, newest first: one entry per HTTP attempt, with its status code, latency and outcome. A record can be lost after its request was sent, so a missing attempt does not prove that nothing was sent. Filterable by endpoint, event, event type, job (entity_id), outcome and time range (default: the last 30 days, which is how long attempts are kept). Delivery is at least once: deduplicate on the `x-heygen-event-id` header, which every delivery of an event carries. Each delivery has its own `x-heygen-delivery-id`, and `x-heygen-delivery-attempt` counts its attempts. An automatic delivery retries a connection error, a timeout, or an HTTP 5xx, 429 or 408 answer for about 35 seconds; any other 4xx fails it at once. Send again makes one attempt and is not retried.



## OpenAPI

````yaml /openapi/external-api.json get /v3/webhooks/deliveries
openapi: 3.1.0
info:
  title: HeyGen External API
  version: 1.0.0
  description: >-
    HeyGen's external API for programmatic AI video creation. See
    https://docs.heygen.com for full documentation.
  contact:
    name: HeyGen Product Infra
    url: https://heygen.com
servers:
  - url: https://api.heygen.com
    description: Production
security:
  - ApiKeyAuth: []
  - BearerAuth: []
tags:
  - name: Video
    description: >-
      Create videos from a prompt or an avatar, then list, fetch, deliver and
      delete them
  - name: Avatar
    description: >-
      Create avatars and looks, record consent, and generate with the Avatar 6
      model
  - name: Voice
    description: Text to speech, speech to speech, and voice cloning
  - name: Audio
    description: Music, sound effects, transcription, stem separation and audio analysis
  - name: Image
    description: Generate images
  - name: Video editing
    description: >-
      Translate, lipsync, clip, analyze and remove filler words or backgrounds
      from existing videos
  - name: Video Agent
    description: Create videos from a prompt with an agent that plans, writes and edits
  - name: Templates
    description: Generate videos from reusable templates by replacing their variables
  - name: HyperFrames
    description: Render HyperFrames compositions into video
  - name: Brand
    description: >-
      Brand kits (colors, fonts, logos) and brand glossaries (term translations
      and pronunciations)
  - name: Assets and folders
    description: Upload files and organize them in folders
  - name: Batches
    description: Submit and track videos, translations, lipsyncs and uploads in bulk
  - name: Webhooks
    description: Manage webhook endpoints and events
  - name: Feedback
    description: Tell HeyGen how a generated result turned out
  - name: Account and usage
    description: Your account, the current API key, request logs and usage
paths:
  /v3/webhooks/deliveries:
    get:
      tags:
        - Webhooks
      summary: List Webhook Deliveries
      description: >-
        Returns the recorded attempts to deliver webhook events, newest first:
        one entry per HTTP attempt, with its status code, latency and outcome. A
        record can be lost after its request was sent, so a missing attempt does
        not prove that nothing was sent. Filterable by endpoint, event, event
        type, job (entity_id), outcome and time range (default: the last 30
        days, which is how long attempts are kept). Delivery is at least once:
        deduplicate on the `x-heygen-event-id` header, which every delivery of
        an event carries. Each delivery has its own `x-heygen-delivery-id`, and
        `x-heygen-delivery-attempt` counts its attempts. An automatic delivery
        retries a connection error, a timeout, or an HTTP 5xx, 429 or 408 answer
        for about 35 seconds; any other 4xx fails it at once. Send again makes
        one attempt and is not retried.
      operationId: listWebhookDeliveries
      parameters:
        - name: start_ts
          in: query
          required: false
          description: 'Range start, Unix seconds. Default: 30 days before end_ts.'
          schema:
            type: integer
            minimum: 0
            maximum: 4102444800
        - name: end_ts
          in: query
          required: false
          description: 'Range end, Unix seconds. Default: now.'
          schema:
            type: integer
            minimum: 0
            maximum: 4102444800
        - name: token
          in: query
          required: false
          description: >-
            Opaque pagination cursor from a previous response's next_token, sent
            with the same filters and range.
          schema:
            maxLength: 512
            minLength: 1
            type: string
        - name: limit
          in: query
          required: false
          description: 'Maximum number of attempts to return (1-100). Default: 10.'
          schema:
            type: integer
            minimum: 1
            maximum: 100
            default: 10
        - name: endpoint_id
          in: query
          required: false
          description: Only attempts to this endpoint.
          schema:
            maxLength: 255
            minLength: 1
            type: string
        - name: event_id
          in: query
          required: false
          description: Only attempts to deliver this event.
          schema:
            maxLength: 255
            minLength: 1
            type: string
        - name: event_type
          in: query
          required: false
          description: Only events of this type.
          schema:
            type: string
            enum:
              - avatar_video.success
              - avatar_video.fail
              - avatar_video_gif.success
              - avatar_video_gif.fail
              - video_translate.success
              - video_translate.fail
              - video_translate.preflight.validation_failed
              - video_translate.preflight.download_failed
              - personalized_video
              - instant_avatar.success
              - instant_avatar.fail
              - photo_avatar_generation.success
              - photo_avatar_generation.fail
              - photo_avatar_train.success
              - photo_avatar_train.fail
              - photo_avatar_add_motion.success
              - photo_avatar_add_motion.fail
              - proofread_creation.success
              - proofread_creation.fail
              - live_avatar.success
              - live_avatar.fail
              - avatar_video_caption.success
              - avatar_video_caption.fail
              - video_agent.success
              - video_agent.fail
              - hyperframes_video.success
              - hyperframes_video.fail
              - ai_clipping.success
              - ai_clipping.fail
              - filler_word_removal.success
              - filler_word_removal.fail
              - podcast.success
              - podcast.fail
              - batch.finished
              - video_generation.success
              - video_generation.fail
              - video_delivery.success
              - video_delivery.fail
        - name: entity_id
          in: query
          required: false
          description: Only events about this job (a video ID, ...).
          schema:
            maxLength: 255
            minLength: 1
            type: string
        - name: outcome
          in: query
          required: false
          description: Only succeeded, or only failed, attempts.
          schema: {}
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/WebhookDeliveryAttemptResponse'
                  has_more:
                    type: boolean
                    description: Whether more pages are available
                  next_token:
                    type:
                      - string
                      - 'null'
                    description: Opaque cursor for the next page
        '400':
          description: Invalid request parameters
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    $ref: '#/components/schemas/StandardAPIError'
              example:
                error:
                  code: invalid_parameter
                  message: Invalid pagination token.
                  param: token
                  doc_url: null
        '401':
          description: Authentication failed
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    $ref: '#/components/schemas/StandardAPIError'
              example:
                error:
                  code: unauthorized
                  message: Invalid or expired API key. Verify your x-api-key header.
                  param: null
                  doc_url: null
        '429':
          description: Rate limit exceeded
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    $ref: '#/components/schemas/StandardAPIError'
              example:
                error:
                  code: rate_limit_exceeded
                  message: >-
                    Too many requests. Retry after the duration specified in the
                    Retry-After header.
                  param: null
                  doc_url: null
          headers:
            Retry-After:
              description: Seconds to wait before retrying
              schema:
                type: integer
      security:
        - ApiKeyAuth: []
        - BearerAuth: []
components:
  schemas:
    WebhookDeliveryAttemptResponse:
      description: One HTTP attempt to deliver one webhook event to one target.
      properties:
        attempt_id:
          description: Unique identifier of this attempt.
          title: Attempt Id
          type: string
        delivery_id:
          description: >-
            Shared by the attempts of one delivery; the x-heygen-delivery-id
            header.
          title: Delivery Id
          type: string
        event_id:
          description: The event delivered; the x-heygen-event-id header.
          title: Event Id
          type: string
        event_type:
          description: The event type, e.g. 'avatar_video.success'.
          examples:
            - avatar_video.success
          title: Event Type
          type: string
        entity_id:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          description: >-
            The job the event is about (a video ID, a translation ID, ...), when
            known.
          title: Entity Id
        target:
          $ref: '#/components/schemas/WebhookDeliveryTarget'
          description: Where the event was sent.
        trigger:
          description: 'automatic: sent when the event happened; send_again: a resend.'
          enum:
            - automatic
            - send_again
          title: Trigger
          type: string
        attempt:
          description: >-
            1 for the first attempt of a delivery, counting up through its
            retries; the x-heygen-delivery-attempt header.
          title: Attempt
          type: integer
        status_code:
          anyOf:
            - type: integer
            - type: 'null'
          default: null
          description: >-
            The HTTP status the target answered. Null when no response decided
            the attempt.
          title: Status Code
        error_class:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          description: >-
            Why the attempt ended without a deciding response: timeout,
            connection, non_public, redirect_limit, redirect_refused, internal
            or endpoint_deleted. Null when status_code decides it.
          title: Error Class
        outcome:
          description: >-
            succeeded: a 2xx (or a 3xx where redirects are not followed); failed
            otherwise.
          enum:
            - succeeded
            - failed
          title: Outcome
          type: string
        is_redirected:
          description: >-
            Always false: a redirect fails the attempt instead of being
            followed.
          title: Is Redirected
          type: boolean
        latency_ms:
          anyOf:
            - type: integer
            - type: 'null'
          default: null
          description: Milliseconds until the answer. Null when nothing was sent.
          title: Latency Ms
        created_at:
          description: ISO 8601, UTC.
          examples:
            - '2026-11-05T12:00:00.000Z'
          title: Created At
          type: string
      required:
        - attempt_id
        - delivery_id
        - event_id
        - event_type
        - target
        - trigger
        - attempt
        - outcome
        - is_redirected
        - created_at
      title: WebhookDeliveryAttemptResponse
      type: object
    StandardAPIError:
      type: object
      properties:
        code:
          type: string
          description: Machine-readable error code
          example: invalid_parameter
        message:
          type: string
          description: Human-readable error message
          example: Video not found
        param:
          type:
            - string
            - 'null'
          description: Which request field caused the error
        doc_url:
          type:
            - string
            - 'null'
          description: Link to error documentation
        errors:
          type: array
          description: >-
            Per-item error details for batch/multi-node failures (e.g. graph
            compilation errors by node).
          items:
            $ref: '#/components/schemas/StandardAPIErrorDetail'
        request_id:
          type: string
          description: >-
            Request identifier, also returned in the X-HeyGen-Request-Id
            response header. Include it when contacting support.
          example: 8c4f0b9e1d2a4f6b9e3c7a1d5f2b8e40
      required:
        - code
        - message
    WebhookDeliveryTarget:
      properties:
        type:
          description: A registered endpoint, or the callback_url the job's request set.
          enum:
            - endpoint
            - callback
          title: Type
          type: string
        endpoint_id:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          description: Set when type is endpoint.
          title: Endpoint Id
        endpoint_label:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          description: >-
            Set when type is endpoint and the endpoint still exists: its URL's
            scheme and host, and a fingerprint of its path in place of the path,
            which often holds a secret.
          examples:
            - https://hooks.example.com#9f86d081884c
          title: Endpoint Label
        callback_label:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          description: >-
            Set when type is callback: the URL's scheme and host, and a
            fingerprint of its path in place of the path.
          examples:
            - https://example.com#3b5d5c371295
          title: Callback Label
      required:
        - type
      title: WebhookDeliveryTarget
      type: object
    StandardAPIErrorDetail:
      type: object
      properties:
        code:
          type: string
          description: Machine-readable error code
          example: unknown_node_type
        message:
          type: string
          description: Human-readable error message
          example: Unknown node type
        node_id:
          type: string
          description: Graph node id this error pertains to, if applicable
        port:
          type: string
          description: Port name on the node this error pertains to, if applicable
        path:
          type: string
          description: Field path within the item this error pertains to, if applicable
      required:
        - code
        - message
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: HeyGen API key. Obtain from your HeyGen dashboard.
    BearerAuth:
      type: http
      scheme: bearer
      description: OAuth2 bearer token.

````

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