Webhook
Webhooks allow you to receive real-time updates on avatar-related processes. You can register a webhook URL to get notifications about different events.
Registering a Webhook
To set up a webhook, you can register your URL by sending a request to either of the following endpoints: POST /v1/avatars/create_avatar
or POST /v1/lipsync/create_lipsync
.Include your webhook URL in the webhook_data.webhook_url field and set the “webhook.enabled” field to true in your request.
Event Types
There are three main event types you can subscribe to:
1. AVATAR EVENT
Description: This event is triggered during the avatar creation process.
Payload Structure:
Trigger Statuses:
processing : The avatar is currently being created.
failed : The avatar creation has failed.
published : The avatar has been successfully created and is now published.
consent_pending : Awaiting user consent.
consent_failed : User consent was not obtained.
2. AVATAR INFERENCE EVENT
Description: This event relates to the inference process of the avatar, i.e. when a video is being created from a Published Avatar. The inference_id in the payload represents the unique_id of the video created from the avatar.
Payload Structure:
Trigger Statuses:
succeeded : The video creation was successful.
failed : The video creation has failed.
3. LIPSYNC INFERENCE EVENT
Description: Triggered at the completion of the LipSync Process.
Payload Structure:
Trigger Statuses:
failed : Lip-sync creation failed.
succeeded : Lip-sync creation succeeded.