Wavix Call webhooks API
Webhook configuration for call events
Webhook configuration for call events
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/wavix-com:wavix-com-call-webhooks-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Wavix Call webhooks API
description: Wavix provides robust APIs that let you integrate voice and text messaging features directly into your app. Send text, place calls, and access detailed reports programmatically.
termsOfService: https://wavix.com/terms-and-conditions
license:
name: MIT
identifier: MIT
contact:
name: Wavix
url: https://wavix.com
email: support@wavix.com
version: 3.2.0
servers:
- url: https://api.wavix.com
description: https://api.wavix.com
variables: {}
security:
- bearerAuth: []
tags:
- name: Call webhooks
description: Webhook configuration for call events
paths:
/v1/calls/webhooks:
get:
tags:
- Call webhooks
summary: List call webhooks
description: Returns the configured call webhooks for the authenticated account. Wavix sends POST callbacks for `on-call` and `post-call` events.
operationId: call_webhooks_list
security:
- bearerAuth:
- webhooks:read
x-fern-sdk-group-name:
- callWebhooks
x-fern-sdk-method-name: list
x-mcp:
readOnly: true
destructive: false
openWorld: false
expose: true
toolset: voice_config
parameters: []
responses:
'200':
description: Returns the list of call webhooks.
headers: {}
content:
application/json:
schema:
$ref: '#/components/schemas/CallWebhookListResponse'
examples:
default:
value:
- event_type: post-call
url: https://you-site.com/voice/post-call/webhook
- event_type: on-call
url: https://you-site.com/voice/on-call/webhook
'400':
$ref: '#/components/responses/BadRequestErrorResponse'
'401':
$ref: '#/components/responses/UnauthorizedErrorResponse'
'403':
$ref: '#/components/responses/ForbiddenErrorResponse'
deprecated: false
post:
tags:
- Call webhooks
summary: Create a call webhook
description: '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.
**Behavior:** Without `expected_url`, the webhook is set to `url` whatever it was before. With `expected_url`, the webhook is set only while it currently has that URL; an empty string matches an unset webhook. Otherwise the call returns `409` and the webhook is unchanged. Setting the URL the webhook already has succeeds. If the call returns a `Something went wrong` error, the webhook is unchanged and you can retry the request.'
operationId: call_webhooks_create
security:
- bearerAuth:
- webhooks:write
x-fern-sdk-group-name:
- callWebhooks
x-fern-sdk-method-name: create
x-mcp:
readOnly: false
destructive: true
openWorld: true
expose: true
confirm: true
toolset: voice_config
parameters: []
requestBody:
description: Attributes for the new call webhook.
content:
application/json:
schema:
$ref: '#/components/schemas/CallWebhooksCreateRequest'
required: true
responses:
'201':
description: Returns the created call webhook.
headers: {}
content:
application/json:
schema:
$ref: '#/components/schemas/CallWebhook'
examples:
default:
value:
success: true
event_type: post-call
url: https://you-site.com/webhook
'400':
$ref: '#/components/responses/BadRequestErrorResponse'
'401':
$ref: '#/components/responses/UnauthorizedErrorResponse'
'403':
$ref: '#/components/responses/ForbiddenErrorResponse'
'409':
$ref: '#/components/responses/WebhookInUseErrorResponse'
'422':
$ref: '#/components/responses/ValidationErrorResponse'
deprecated: false
delete:
tags:
- Call webhooks
summary: Delete a call webhook
description: 'Removes the call webhook for the given event type. Wavix stops sending callbacks for that event.
**Behavior:** Without `expected_url`, the webhook is cleared whatever URL it has. With `expected_url`, the webhook is cleared only while it currently has that URL; an empty value matches an unset webhook. Otherwise the call returns `409` and the webhook is unchanged. Clearing an unset webhook succeeds. Percent-encode the `expected_url` value in the query string. If the call returns a `Something went wrong` error, the webhook is unchanged and you can retry the request.'
operationId: call_webhooks_delete
security:
- bearerAuth:
- webhooks:write
x-fern-sdk-group-name:
- callWebhooks
x-fern-sdk-method-name: delete
x-mcp:
readOnly: false
destructive: true
openWorld: false
expose: true
toolset: voice_config
parameters:
- name: event_type
in: query
description: Event type of the webhook to delete. One of `post-call` (callbacks sent after a call ends) or `on-call` (real-time call status callbacks during a call).
required: true
style: form
explode: true
schema:
type: string
enum:
- post-call
- on-call
example: post-call
- name: expected_url
in: query
description: Clears the webhook only if it currently has this URL. Percent-encode the value. An empty value clears only an unset webhook.
required: false
style: form
explode: true
schema:
type: string
example: https://your-site.com/webhook
responses:
'200':
description: Returns a success confirmation. The call webhook is removed.
headers: {}
content:
application/json:
schema:
$ref: '#/components/schemas/SuccessResponse'
examples:
default:
value:
success: true
'400':
$ref: '#/components/responses/BadRequestErrorResponse'
'401':
$ref: '#/components/responses/UnauthorizedErrorResponse'
'403':
$ref: '#/components/responses/ForbiddenErrorResponse'
'409':
$ref: '#/components/responses/WebhookInUseErrorResponse'
'422':
$ref: '#/components/responses/ValidationErrorResponse'
deprecated: false
webhooks:
OnCallEvent:
post:
summary: On-call event
operationId: on_call_event
security: []
description: Sends a notification to track the lifecycle of an active call.status updates. It's triggered when a call is initiated, answered, and ends.
tags:
- Call webhooks
requestBody:
description: Callback payload.
content:
application/json:
schema:
$ref: '#/components/schemas/Call'
responses:
'200':
description: Return a 200 status to indicate that the data was successfully received
PostCallEvent:
post:
summary: Post-call event
operationId: post_call_event
security: []
description: The `post-call` callback includes details such as call disposition, duration, and cost. It's triggered after the call ends.
tags:
- Call webhooks
requestBody:
description: Callback payload.
content:
application/json:
schema:
$ref: '#/components/schemas/CallStatusWebhook'
responses:
'200':
description: Return a 200 status to indicate that the data was successfully received
components:
schemas:
Call:
type: object
additionalProperties: false
required:
- uuid
- id
- event_type
- event_time
- event_payload
- from
- to
- call_started
- call_answered
- call_completed
- machine_detected
- tag
properties:
uuid:
type: string
format: uuid
deprecated: true
description: Call ID. Deprecated — use `id` instead.
example: 5dccb6b0-f35c-488c-867b-86fb012c4415
id:
type: string
format: uuid
description: Call ID. Alias of `uuid`.
example: 5dccb6b0-f35c-488c-867b-86fb012c4415
direction:
$ref: '#/components/schemas/CallDirection'
event_type:
type: string
description: 'Most recent lifecycle event for the call. One of:
- `call_setup` — the call is being initiated.
- `ringing` — the destination is ringing.
- `early_media` — early media (such as ringback) is playing before answer.
- `answered` — the destination answered the call.
- `completed` — the call ended normally.
- `busy` — the destination was busy.
- `cancelled` — the call was cancelled before answer.
- `rejected` — the destination rejected the call.
- `on_call_event` — an in-call event occurred (see `event_payload`).'
enum:
- call_setup
- ringing
- early_media
- answered
- completed
- busy
- cancelled
- rejected
- on_call_event
example: call_setup
event_time:
type: string
format: date-time
description: Date and time of the latest event in ISO 8601 format.
example: '2025-09-22T12:56:38.547Z'
event_payload:
description: Event-specific metadata.
oneOf:
- $ref: '#/components/schemas/OnCallEventPayload'
- type: 'null'
example:
type: audio
payload:
status: completed
playback_id: 3fa85f64-5717-4562-b3fc-2c963f66afa6
from:
type: string
description: Caller ID.
example: '+18045961058'
to:
type: string
description: Destination number.
example: '17653889567'
call_started:
type: string
format: date-time
description: Date and time when the call started in ISO 8601 format.
example: '2025-09-22T12:56:38.547Z'
call_answered:
type:
- string
- 'null'
format: date-time
description: Date and time when the call was answered in ISO 8601 format.
call_completed:
type:
- string
- 'null'
format: date-time
description: Date and time when the call ended in ISO 8601 format.
machine_detected:
type: boolean
description: Indicates whether the call was answered by a machine.
example: false
tag:
type: string
description: Call metadata
example: marketing-campaign
WebhookInUseErrorResponse:
title: WebhookInUseErrorResponse
type: object
required:
- success
- error
- message
description: Error returned when a webhook change is rejected because the webhook no longer has the expected URL.
properties:
success:
type: boolean
description: Indicates whether the request was successful. Always `false` for this error.
example: false
error:
type: boolean
description: Indicates that the request failed. Always `true` for this error.
example: true
message:
type: string
description: Human-readable description of the conflict.
example: Webhook already in use
ValidationErrorResponse:
title: ValidationErrorResponse
type: object
properties:
success:
type: boolean
description: Indicates whether the request was successful. Always `false` for this error.
example: false
message:
type: string
description: Human-readable description naming the missing or invalid request parameter.
example: Missing or invalid parameter <param_name>
CallWebhooksCreateRequest:
type: object
additionalProperties: false
required:
- url
- event_type
properties:
url:
type: string
format: uri
description: Webhook URL to send call events to.
example: https://you-site.com/webhook
event_type:
type: string
description: "Allowed values: `on-call`, `post-call`.\n - `on-call`: Sends real-time status updates\n when a call starts, is answered, and ends.\n\n - `post-call`: Sends a callback after the call ends\n with disposition, duration, and cost."
enum:
- post-call
- on-call
expected_url:
type: string
description: Applies the change only if the webhook currently has this URL. Pass an empty string to set the webhook only while it is unset, or your own URL to replace your webhook. Setting the URL the webhook already has always succeeds.
example: ''
SuccessResponse:
title: SuccessResponse
required:
- success
type: object
properties:
success:
type: boolean
description: Indicates whether the request was successful.
example: true
UnauthorizedErrorResponse:
title: UnauthorizedErrorResponse
type: object
properties:
success:
type: boolean
description: Indicates whether the request was successful. Always `false` for this error.
example: false
error:
type: boolean
description: Indicates that the response represents an error. Always `true` for this error.
example: true
message:
type: string
description: Human-readable description stating that authentication is missing or invalid.
example: Unauthorized
ForbiddenErrorResponse:
title: ForbiddenErrorResponse
type: object
properties:
success:
type: boolean
description: Indicates whether the request was successful. Always `false` for this error.
example: false
message:
type: string
description: Human-readable description of why access is forbidden.
example: The service is not provisioned for your account.
CallDisposition:
title: CallDisposition
enum:
- answered
- noanswer
- busy
- failed
- all
type: string
description: Final disposition of the call. One of `answered` (the called party answered), `noanswer` (no answer within the ring timeout), `busy` (the called party was busy), `failed` (the call could not be routed), or `all` (matches any disposition when used as a filter).
CallStatusWebhook:
title: CallStatusWebhook
required:
- direction
- uuid
- destination
- duration
- charge
- date
- disposition
- from
- to
- per_minute
type: object
additionalProperties: false
properties:
direction:
type: string
description: Direction of the call. One of `inbound` (call received by the account) or `outbound` (call placed by the account).
enum:
- inbound
- outbound
example: outbound
uuid:
type: string
description: Call ID
example: 99df5ffd-962a-410f-bcce-d08f1f7f328c
destination:
type:
- string
- 'null'
description: Destination of the call. For outbound calls, it contains the country name and, optionally, a mobile carrier or city name. For inbound calls, the destination includes the user-defined SIP trunk name, SIP URI, or PSTN number that the call is forwarded to.
example: France
duration:
type: integer
description: Duration of the call, in seconds
format: int32
example: 6
charge:
type: string
description: Total charge for the call, in USD
example: '0.822'
date:
type: string
description: Date and time of the call
format: date-time
example: '2023-08-21T06:43:36.000Z'
disposition:
$ref: '#/components/schemas/CallDisposition'
from:
type:
- string
- 'null'
description: ANI/From attribute of the call
example: '14302287001'
to:
type:
- string
- 'null'
description: DNIS/To attribute of the call
example: '33170363950'
per_minute:
type: string
description: Price per minute, in USD
example: '0.027'
description: Post-call webhook payload
CallWebhook:
title: CallWebhook
required:
- success
- event_type
- url
type: object
additionalProperties: false
properties:
success:
type: boolean
description: Indicates whether the request was successful.
example: true
event_type:
type: string
description: 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).
enum:
- post-call
- on-call
example: post-call
url:
type: string
format: uri
description: Webhook URL
example: https://you-site.com/webhook
description: A call webhook response
CallDirection:
type: string
enum:
- inbound
- outbound
description: Direction of the call. One of `inbound` (call received by the account) or `outbound` (call placed by the account).
CallWebhookListResponse:
title: CallWebhookListResponse
type: array
description: List of call webhooks configured for the phone number.
items:
type: object
additionalProperties: false
required:
- event_type
- url
properties:
event_type:
type: string
description: 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).
enum:
- post-call
- on-call
example: post-call
url:
type: string
format: uri
description: Webhook URL
example: https://your-site.com/webhook
OnCallEventPayload:
type: object
description: Payload for the `on_call_event` event type.
required:
- type
properties:
type:
type: string
description: Type of in-call sub-event. One of `audio` (audio playback progress) or `collect` (DTMF digit collection progress).
enum:
- audio
- collect
example: audio
payload:
type:
- object
- 'null'
description: 'Sub-event-specific data. Structure depends on the `type` field:
- `audio`: `{ "status": "started" | "completed", "playback_id": "<uuid>" }`
- `collect`: `{ "digits": "<digits>", "status": "started" | "completed" | "failed" }`'
example:
status: completed
playback_id: 3fa85f64-5717-4562-b3fc-2c963f66afa6
responses:
UnauthorizedErrorResponse:
description: Unauthorized
headers: {}
content:
application/json:
schema:
$ref: '#/components/schemas/UnauthorizedErrorResponse'
BadRequestErrorResponse:
description: Request failed. Missing or invalid parameter <param_name>
headers: {}
content:
application/json:
schema:
$ref: '#/components/schemas/ValidationErrorResponse'
ForbiddenErrorResponse:
description: Request failed. The feature is disabled for your account.
headers: {}
content:
application/json:
schema:
$ref: '#/components/schemas/ForbiddenErrorResponse'
ValidationErrorResponse:
description: Validation error
headers: {}
content:
application/json:
schema:
$ref: '#/components/schemas/ValidationErrorResponse'
WebhookInUseErrorResponse:
description: Request failed. The webhook has a different URL than `expected_url` or `expected_sms_relay_url`; nothing was changed.
headers: {}
content:
application/json:
schema:
$ref: '#/components/schemas/WebhookInUseErrorResponse'
securitySchemes:
bearerAuth:
type: http
scheme: bearer
description: 'Wavix API key. Pass as `Authorization: Bearer <api_key>`. Keys support per-resource scopes (none / read / write). See [Restricted keys and scopes](https://docs.wavix.com/api-reference/authentication#restricted-keys-and-scopes).
'