Webhook Overview
To access your meeting data, listen for POST requests sent to the webhook URL configured in the request. You will receive two types of data:- Live Meeting: Real-time updates as the agent interacts during the meeting. Currently, these events include agent status updates.
- Post-Meeting Data: Information collected after the meeting concludes, including video recordings and speech time events.
1. Live Meeting Events
The live events sent to your webhook will follow this format:Event Fields:
- event: The key-value pair indicating the type of event. This will always be
agent.status_updatefor agent status events. - data: Contains details about the agent’s status:
- agentId: The unique identifier of the agent.
- status: An object containing the following properties:
- code: Represents the current status of the agent. Possible values include:
- joining_call: The agent has acknowledged the request to join the call.
- in_waiting_room: The agent is currently in the “waiting room” of the meeting.
- recording_started: The agent is in the meeting and actively recording audio and video.
- recording_completed: The agent has stopped recording the meeting.
- call_ended: The agent has left the call.
- created_at: An ISO 8601 formatted string representing the date and time when the event occurred.
- code: Represents the current status of the agent. Possible values include:
2. Success Webhook
To receive the final meeting data, you need to listen for POST requests sent to the webhook URL you’ve set up in your account. You will receive one of two event types:- “event”: “complete” – Indicates that the meeting recording and processing have successfully finished.
- “event”: “failed” – Indicates that the agent encountered an error and the meeting data couldn’t be processed.
Example: Complete Event
Here’s an example of the payload you’ll receive for a successful event, assuming your webhook URL ishttps://your-company.com/your-endpoint:
3. Failed Webhook
Here’s an example of the payload you’ll receive for a failed event, assuming your webhook URL ishttps://your-company.com/your-endpoint:
The failure types can be:
| Error | Description |
|---|---|
ServerError | An unexpected error occurred. Please contact us if the issue persists. |
InvalidMeetingUrl | The meeting URL provided is not a valid (Zoom, Meet, Teams) URL. |
WaitingRoomTimeoutExceeded | The agent was not admitted within the provided time. By default, this time is 15 minutes, but it can be configured via automaticLeave.waitingRoomTimeout |
DeniedFromWaitingRoom | The agent was denied entry from the waiting room. |
meetingNotFound | No meeting was found at the given link. |
cannotJoinMeeting | The bot could not join the meeting URL provided. . |
meetingPasswordIncorrect | The meeting password is incorrect. |
Retrieve the Meeting Recording
To access the recording generated by the agent, use the Retrieve Meeting Data API endpoint. Replace the AGENT-ID with the ID you saved in Step 1, and substitute the Authorization placeholder with your API key.- Bash
- JavaScript
- Python