Skip to main content
POST
/
call
/
webhooks
Create a webhook
curl --request POST \
  --url https://api.wavix.com/v1/call/webhooks \
  --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

appid
string
query
required

An API key to authorize your request

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"

I