How do I get a webhook when a render finishes, and how do I verify it?
Polling a render until it finishes works, but it is not what you want in production. Here is how webhooks are set up and checked.
Outgoing webhooks sit on the same Studio entitlement as API keys. Register an HTTPS endpoint and Vidmoat POSTs a signed event to it.
Set it up
- Open Webhooks in the developer console, add your public HTTPS URL and choose the events. No events selected means all of them.
- Save the signing secret. It starts with
whsec_and is shown when you create the endpoint or roll the secret. - Press Send test. It delivers one
pingevent and shows what your receiver returned. The delivery log keeps every attempt.
The events you will use most
render.completed, with the job id, project id, file URL, poster URL, format, duration, width and height.render.failed, with the job id, project id and error.
There are also credit, app and Telegram bot events. AI generation jobs do not send events: poll the job for those. New event types and fields can appear, so ignore what you do not recognise.
Verify every request
Each request carries Vidmoat-Event-Id, Vidmoat-Event-Type and Vidmoat-Signature, which looks like t=<unix seconds>,v1=<hex HMAC-SHA256>. The MAC is HMAC-SHA256 with your secret over the timestamp, a full stop, and the exact raw request body. Compute it before you parse the JSON, compare in constant time, and reject a timestamp more than five minutes from your clock. Most frameworks parse JSON before your handler runs, and re-serialised JSON will never match, so read the raw bytes first.
Retries
- Answer with any
2xxas soon as the event is stored, then do the work. Delivery is at least once, so store the eventidand skip repeats. - A timeout, network error,
5xx,408,429or redirect is retried, up to 5 attempts, waiting 10, 20, 40 and then 80 seconds. - After 20 failed deliveries in a row the endpoint is disabled and the console says why.
Keep a recovery path
If you miss one, check GET /v1/renders/{id} with a bounded poll. Do not queue another render because a notification has not arrived yet.
Node and Python verification code is in the webhook guide.
Replies
Outgoing webhooks sit on the same Studio entitlement as API keys. Register an HTTPS endpoint and Vidmoat POSTs a signed event to it.
Set it up
- Open Webhooks in the developer console, add your public HTTPS URL and choose the events. No events selected means all of them.
- Save the signing secret. It starts with
whsec_and is shown when you create the endpoint or roll the secret. - Press Send test. It delivers one
pingevent and shows what your receiver returned. The delivery log keeps every attempt.
The events you will use most
render.completed, with the job id, project id, file URL, poster URL, format, duration, width and height.render.failed, with the job id, project id and error.
There are also credit, app and Telegram bot events. AI generation jobs do not send events: poll the job for those. New event types and fields can appear, so ignore what you do not recognise.
Verify every request
Each request carries Vidmoat-Event-Id, Vidmoat-Event-Type and Vidmoat-Signature, which looks like t=<unix seconds>,v1=<hex HMAC-SHA256>. The MAC is HMAC-SHA256 with your secret over the timestamp, a full stop, and the exact raw request body. Compute it before you parse the JSON, compare in constant time, and reject a timestamp more than five minutes from your clock. Most frameworks parse JSON before your handler runs, and re-serialised JSON will never match, so read the raw bytes first.
Retries
- Answer with any
2xxas soon as the event is stored, then do the work. Delivery is at least once, so store the eventidand skip repeats. - A timeout, network error,
5xx,408,429or redirect is retried, up to 5 attempts, waiting 10, 20, 40 and then 80 seconds. - After 20 failed deliveries in a row the endpoint is disabled and the console says why.
Keep a recovery path
If you miss one, check GET /v1/renders/{id} with a bounded poll. Do not queue another render because a notification has not arrived yet.
Node and Python verification code is in the webhook guide.