v50

latestOpenAPI 3.1.0MITraw.githubusercontent.com2026-06-16122182589.7 KB
Call webhooks

Create a call webhook

Registers a callback URL for the on-call or post-call event. Wavix sends a POST callback to the URL when the event occurs.

post/v1/calls/webhooks

Request body

urlstring uri required

Webhook URL to send call events to.

event_type'post-call' | 'on-call' required

Allowed values: on-call, post-call.

  • on-call: Sends real-time status updates when a call starts, is answered, and ends.

  • post-call: Sends a callback after the call ends with disposition, duration, and cost.

Example request

{
  "url": "https://you-site.com/webhook"
}

Response

Returns the created call webhook.

successboolean required

Indicates whether the request was successful.

event_type'post-call' | 'on-call' required

Type of call event the webhook subscribes to. One of post-call (delivered once after the call ends) or on-call (delivered for in-call events while the call is active).

urlstring uri required

Webhook URL

Example response

{
  "success": true,
  "event_type": "post-call",
  "url": "https://you-site.com/webhook"
}