Skip to main content
POST
/
v1
/
calls
/
webhooks
Create a webhook
curl --request POST \
  --url https://api.wavix.com/v1/calls/webhooks \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "url": "https://you-site.com/webhook",
  "event_type": "post-call"
}
'
{
  "success": true,
  "event_type": "post-call",
  "url": "https://you-site.com/webhook"
}

Authorizations

Authorization
string
header
required

Bearer token using appid (Authorization: Bearer )

Body

application/json

Webhook configuration

url
string<uri>
required

Webhook URL to send call events to.

Example:

"https://you-site.com/webhook"

event_type
enum<string>
required

Use on-call to receive real-time status updates. Callbacks are sent when the call is initiated, answered, and ended. Use post-call to receive a callback after the call ends. The callback includes details such as call disposition, duration, and cost.

Available options:
post-call,
on-call
Example:

"post-call"

Response

Webhook successfully created

A call webhook response

success
boolean
required
Example:

"string"

event_type
enum<string>
required

Type of call events

Available options:
post-call,
on-call
Example:

"post-call"

url
string<uri>
required

Webhook URL

Example:

"https://you-site.com/webhook"