Getting Started
To start using webhooks with Ultravox:- Set up an endpoint: Create a URL on a server that can receive POST requests.
- Create a webhook: Use the Ultravox API to register the URL that will receive webhook events and select events you want to receive.
- Handle events: Process incoming webhook data in your application.
- Secure your webhook: Implement signature verification for security (recommended).
Webhook Payload Structure
All webhooks follow a consistent structure and return the event and details about the call.Account-wide and Agent Webhooks
A webhook created without anagentId is account-wide: it receives events for every call in your account. A webhook with an agentId receives events only for calls with that agent.
An account can have up to 10 account-wide webhooks, and each agent up to 3 of its own. Every account-wide webhook gets a request for every call event in the account, so the cap keeps the number of deliveries per call bounded. Creating a webhook beyond either limit returns
409 Conflict. To add more, delete webhooks you no longer use or set agentId to scope them to the agents they serve. If many systems need the same events, relay them from an endpoint you own.Best Practices
Respond Quickly: Return a 2xx status code (we recommend 204) as soon as you receive the webhook. Process the data asynchronously if needed. Handle Duplicates: In rare cases, you might receive the same webhook twice. Make your processing idempotent. Implement Security: Always verify webhook signatures to ensure requests are from Ultravox Realtime. Monitor Failures: Keep track of failed webhook deliveries and have a backup plan to retrieve missed data via our API. Use HTTPS: Always use HTTPS endpoints for webhooks to protect sensitive data in transit.Keep Building
- Learn about all Available Webhooks you can subscribe to.
- Learn about webhook errors and our retry strategy.
- Implement Webhook Security to protect your endpoints.
- Check out our API reference for webhook management endpoints.