Call webhooks

Create a call webhook

Changed on

Registers a callback URL for the on-call or post-call event. Wavix sends a POST callback to the URL when the event occurs. Creates persistent configuration that forwards call metadata to the URL on every matching call until the webhook is deleted.

post/v1/calls/webhooks

Request

  • Base URL
    https://api.wavix.com
  • URL
    https://api.wavix.com/v1/calls/webhooks
  • Auth
    HTTP bearer

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"
}

Changes