Webhooks
Instead of polling, your server can be notified when a generation task finishes. The platform POSTs the result to your callback endpoint.
!
This page is a draft. The public webhook contract (registration flow, payload fields and signing scheme) is still being finalized. Until then, use Task Status polling.
How it works
- You register a callback URL for your account (contact us to configure).
- When a task transitions to a terminal state, the platform delivers a result notification to that URL.
- Your endpoint acknowledges with HTTP
200; anything else is treated as a delivery failure and retried.
Callback delivery
POST
your://callback-url
Draft
Planned payload shape for a completed video task:
PAYLOAD
{
"id": 10293847,
"status": "success",
"video_url": "https://.../output.mp4",
"timestamp": 1753248000
}
Verifying callbacks
Callback requests carry a challenge parameter on registration so your endpoint can prove ownership of the URL. A signed delivery header will be introduced with the final contract; verify it before trusting a payload.
Best practices
- Respond
200immediately and process the payload asynchronously. - Be idempotent — deliveries may be retried, deduplicate on
id. - Treat webhook data as a fast path only; reconcile with Task Status polling for anything critical.