API Callbacks
This guide includes an overview of different callback formats you might see from the API.
Video Callbacks
If a callback_url
is providing in the POST /videos
call, you will receive callbacks on video generation completed and on video error.
Video Generation Completed
Video Generation Error
On error, the status_details
parameter will contain the error message. You can learn more about API Errors and Status Details here
Replica Training
If a callback_url
is provided in the POST /replicas
call, you will receive a callback on replica training completion or on replica training error.
Replica Training Completed
Replica Training Error
On error, the error_message
parameter will contain the error message. You can learn more about API Errors and Status Details here
Conversations
Overview
If callback_url
is provided in the Create Conversation API Request, callbacks will be sent to provide inside into the state of the conversation. Our callbacks range from system-related callbacks like replica joins and room shutdowns, to application-related callbacks like final transcription parsing and recording ready webhooks, with many more webhooks coming soon!
Callback Types
Our callbacks are split into two main categories:
- System Callbacks
These callbacks are to provide insight into system-related events in a conversation. They are:
-
system.replica_joined: This is fired when the replica becomes ready for a conversation.
-
system.shutdown: This is fired when the room shuts down, for any of the following reasons:
max_call_duration reached
,participant_left_timeout reached
,participant_absent_timeout reached
,internal error occurred at step x
. -
Application Callbacks
These callbacks are to inform developers about logical events that take place. They are:
- application.transcription_ready: This is fired after ending a conversation, where the chat history is saved and returned.
- application.recording_ready: This is fired if you had enabled recording on, set up a custom S3 bucket for recording and started a recording inside the room at any point. This will point to the key at which your new recording lies, useful for serving recordings through a CDN.