Skip to main content
Webhooks provide a powerful way to receive real-time notifications about events in your Ultravox Realtime account. Instead of repeatedly polling our API to check for updates, webhooks push event data directly to your application as soon as something happens. When you configure a webhook in Ultravox, we’ll send an HTTP POST request to your specified URL whenever a subscribed event occurs. This allows your application to react immediately to important events like call starts, call ends, etc. Your server needs to respond with a 2xx to confirm receipt. If delivery fails, we will retry delivery.

Getting Started

To start using webhooks with Ultravox:
  1. Set up an endpoint: Create a URL on a server that can receive POST requests.
  2. Create a webhook: Use the Ultravox API to register the URL that will receive webhook events and select events you want to receive.
  3. Handle events: Process incoming webhook data in your application.
  4. 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.
See Event Payload Reference.

Account-wide and Agent Webhooks

A webhook created without an agentId 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