HeyGen retries a webhook for only about 35 seconds. If your server was down longer, rejected events because of a bug, or lost them after answering 200, send them again with POST /v3/webhooks/events/{event_id}/redeliver.
Access
- Authenticate with an API key or an OAuth token. A restricted key needs the
webhooks:writescope to send, andwebhooks:readto find events and check the result. - You can send again any event your workspace received in the last 30 days.
Send an event again
1
Find the event and its target
Get the event’s
event_id and its targets from GET /v3/webhooks/events, filtered by entity_id (the job’s ID) or a time range. Each entry in the event’s deliveries names a target it was sent to; see Monitor deliveries.2
Send it again
Name one target in the body: an endpoint the event was sent to, or the The resend runs in the background. The answer is
callback_url of the request that created the job.202 Accepted with the new delivery’s ID:3
Check the result
The resend’s attempt appears in Find the entry whose
GET /v3/webhooks/deliveries with trigger set to send_again, usually within a few seconds:delivery_id matches the one you got back, and read its outcome.What your server receives
A resend is the same event, delivered again:- Same
x-heygen-event-idas the first delivery, so a server that deduplicates on it skips an event it already processed. To process an event again on purpose, remove its ID from your store first. - A new
x-heygen-delivery-id, thedelivery_idin the202answer, withx-heygen-delivery-attempt: 1. - The same
event_dataas first sent, except that download URLs in it, such asurlonavatar_video.success, are signed again so they work. If the video has since been withheld by moderation, its media links arenull. - Signed with the endpoint’s current secret. If you rotated the secret since the event first went out, verify with the new one. Deliveries to a callback URL are not signed.
Limits
- One attempt. A resend makes one attempt with a 5-second timeout and is not retried, whatever your server answers. If it fails, fix the cause and send the event again.
- 30 days. Older events answer
409webhook_event_expired. - Its own targets only. You can send an event only to an endpoint it was sent to, or to the callback URL of its request. Events created before HeyGen recorded each event’s targets can go to any current endpoint that subscribes to their event type, or to the
callback_urlin their data. - Enabled endpoints only. A disabled endpoint answers
409webhook_endpoint_disabled, and a deleted one404webhook_not_found. - One at a time per target. While a resend of an event to a target is running, or for up to four minutes after it was accepted if its outcome is not yet known, another resend of the same event to the same target answers
409webhook_redelivery_in_progress. - Five per workspace. A workspace can have at most 5 resends queued or running at once. More answer
429webhook_redelivery_limit_exceeded, without aRetry-Afterheader. Each resend finishes within seconds, so send them one after another rather than all at once.
Errors
Send an
Idempotency-Key header so a retry after a network error returns the first answer instead of starting a second resend.
Resend after an outage
This script finds the events your endpoint did not receive in a time window and sends them again one at a time, waiting for each resend to finish before the next. It skipsunknown deliveries, which have no record and may have arrived: check those against your own logs.
Related
Monitor deliveries
Every attempt’s status code, error class and latency.
Delivery and retries
Headers, timeouts, and which answers are retried.

