Skip to main content
HeyGen records every attempt to deliver a webhook: where it went, what your server answered, and how long it took. Use these records to find out why a webhook did not arrive, to watch an endpoint’s failure rate, and to pick the events to send again. There are two views of the same records:

Access

  • Authenticate with an API key or an OAuth token. A restricted key needs the webhooks:read scope.
  • Both lists cover the workspace the key or token belongs to.
  • Attempts are kept for 30 days.

Check delivery status per event

Each event in GET /v3/webhooks/events has a deliveries array with one entry per target: each endpoint the event was sent to, and the request’s callback_url if it set one. Filter with event_type, entity_id (the job’s ID, such as a video ID), and a creation-time range in Unix seconds with start_ts and end_ts.
A field with no value is left out of the response instead of being returned as null. For example, a timed-out attempt has no status_code key. Read optional fields with .get() or an equivalent.
unknown means no attempt is recorded for that target. It does not prove that nothing was sent: events from before HeyGen started recording attempts have no records, and a record can be lost after its request went out. Check your own logs for the event ID before you send an unknown event again. deliveries is left out of the response while delivery records cannot be read.

List delivery attempts

GET /v3/webhooks/deliveries returns one entry per HTTP attempt, newest first. With no filters it returns the last 30 days.
With the HeyGen CLI:
A missing attempt does not prove that nothing was sent, for the same reason as unknown above.

Targets

Labels show the URL’s scheme and host, then # and a 12-character fingerprint in place of the path, because a webhook path often holds a secret token. HeyGen never stores or returns the full path, the body, the headers, or the signature of a delivery.

Error classes

error_class is present when an attempt ended without an HTTP answer that decided it, or when your server answered with a redirect. Common status codes from your server:

Recipes

Why did my server not get the webhook for a job?

Filter by the job’s ID:
  • No attempts: check that an enabled endpoint subscribes to the event type, or that the request set a callback_url. Check GET /v3/webhooks/events with the same entity_id to see whether the event happened.
  • succeeded: your server answered 2xx. Search your server’s logs for the event_id.
  • failed: read status_code or error_class above, fix the cause, then send the event again.

Find events that did not arrive

After an outage, list the events in the outage window and keep those whose delivery to your endpoint did not succeed:
Send failed events again with Send again. Check unknown ones against your own logs first.

Watch an endpoint’s failure rate

Poll GET /v3/webhooks/deliveries?endpoint_id=...&outcome=failed&start_ts=... every few minutes with start_ts set to the previous poll, and alert when the count rises. Count deliveries rather than attempts: group by delivery_id, because one delivery can make up to 5 failed attempts.

Next steps

Send events again

Resend an event from the last 30 days once your server is fixed.

Delivery and retries

Which answers are retried, and for how long.