Webhooks
Subscribe to and list real-time event subscriptions.
Webhooks deliver real-time events (call lifecycle, tool invocations) to your server.
List webhooks
const webhooks = await voice.webhooks.get();webhooks = client.webhooks()Create a webhook
const webhook = await voice.webhooks.create({
url: "https://hooks.acme.com/voice",
events: ["call.completed", "tool.invoked"],
});webhook = client.create_webhook(
url="https://hooks.acme.com/voice",
events=["call.completed", "tool.invoked"],
)Parameters
| Field | Type | Required | Description |
|---|---|---|---|
url | string | Yes | Callback endpoint URL. |
events | string[] | Yes | Event types to subscribe to, e.g. call.completed. |