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

FieldTypeRequiredDescription
urlstringYesCallback endpoint URL.
eventsstring[]YesEvent types to subscribe to, e.g. call.completed.

On this page