Wavix Call streaming API
Real-time call audio streaming over WebSocket
Real-time call audio streaming over WebSocket
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-streaming-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 streaming 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 streaming
description: Real-time call audio streaming over WebSocket
paths:
/v1/calls/{call_id}/streams:
post:
tags:
- Call streaming
summary: Start call streaming
description: Starts streaming the audio of the call identified by `call_id` to the WebSocket destination in `stream_url`, in the direction (`stream_type`) and channel (`stream_channel`) you configure. The streamed audio can include the remote party's voice.
operationId: call_control_streams_create
security:
- bearerAuth:
- calls:write
x-fern-sdk-group-name:
- callControl
- streams
x-fern-sdk-method-name: create
x-mcp:
readOnly: false
destructive: true
openWorld: true
expose: true
toolset: calls
parameters:
- name: call_id
in: path
description: The `uuid` of the call.
required: true
schema:
type: string
format: uuid
requestBody:
description: Destination and options for the media stream.
content:
application/json:
schema:
$ref: '#/components/schemas/CallStreamCreateRequest'
required: true
responses:
'200':
description: Returns the created media stream, including its `stream_id`.
content:
application/json:
schema:
$ref: '#/components/schemas/CallStreamResponse'
examples:
success:
summary: Successful response
value:
success: true
stream_id: 123e4567-e89b-12d3-a456-426614174000
'400':
description: Returns a validation error when a request parameter is invalid.
content:
application/json:
schema:
$ref: '#/components/schemas/CallControlValidationErrorResponse'
'401':
$ref: '#/components/responses/UnauthorizedErrorResponse'
'403':
$ref: '#/components/responses/ForbiddenErrorResponse'
'404':
$ref: '#/components/responses/NotFoundErrorResponse'
'422':
$ref: '#/components/responses/ValidationErrorResponse'
deprecated: false
/v1/calls/{call_id}/streams/{id}:
delete:
tags:
- Call streaming
summary: Stop call streaming
description: Stops the media stream identified by `id` on the call identified by `call_id`.
operationId: call_control_streams_delete
security:
- bearerAuth:
- calls:write
x-fern-sdk-group-name:
- callControl
- streams
x-fern-sdk-method-name: delete
x-mcp:
readOnly: false
destructive: true
openWorld: true
expose: true
toolset: calls
parameters:
- name: call_id
in: path
description: The `uuid` of the call.
required: true
schema:
type: string
format: uuid
- name: id
in: path
description: The `uuid` of the media stream to stop.
required: true
schema:
type: string
format: uuid
responses:
'200':
description: Returns a success confirmation. The media stream is stopped.
content:
application/json:
schema:
$ref: '#/components/schemas/SuccessResponse'
examples:
success:
summary: Successful response
value:
success: true
'400':
$ref: '#/components/responses/BadRequestErrorResponse'
'401':
$ref: '#/components/responses/UnauthorizedErrorResponse'
'403':
$ref: '#/components/responses/ForbiddenErrorResponse'
'404':
$ref: '#/components/responses/NotFoundErrorResponse'
deprecated: false
components:
schemas:
CallStreamCreateRequest:
type: object
additionalProperties: false
required:
- stream_url
- stream_type
- stream_channel
properties:
stream_url:
type: string
format: uri
description: WebSocket URL (`ws://` or `wss://`) that receives the call's audio.
example: wss://examples.com/stream
stream_type:
description: Direction of audio streamed to `stream_url`.
example: twoway
$ref: '#/components/schemas/CallStreamType'
type: string
stream_channel:
description: Audio channel streamed to `stream_url`.
example: inbound
$ref: '#/components/schemas/CallStreamChannel'
type: string
CallStreamType:
type: string
enum:
- oneway
- twoway
description: Specifies the streaming type. Can be either `oneway` for unidirectional or `twoway` for bidirectional streaming.
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>
CallStreamChannel:
type: string
enum:
- inbound
- outbound
- both
description: 'Audio channel to stream: `inbound` streams the incoming channel (to Wavix), `outbound` the outbound channel (from Wavix), and `both` both channels. For bidirectional call streaming, this setting is ignored and only the inbound channel is streamed.'
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.
CallControlValidationErrorResponse:
title: CallControlValidationErrorResponse
type: object
required:
- success
- message
properties:
success:
type: boolean
description: Indicates whether the request was successful. Always `false` for this error.
example: false
message:
type: string
description: Human-readable summary of the validation failure.
example: Validation error
errors:
type: object
description: 'Field-level validation messages, keyed by the offending request
field name (snake_case). Absent when the request body could not be
parsed at all (for example, malformed JSON).
'
additionalProperties:
type: string
example:
to: required
NotFoundErrorResponse:
title: NotFoundErrorResponse
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 stating that no resource matches the given ID.
example: Record not found
CallStreamResponse:
type: object
properties:
success:
type: boolean
description: Indicates that the request was successful
example: true
stream_id:
type: string
format: uuid
description: Stream ID
example: 123e4567-e89b-12d3-a456-426614174000
responses:
BadRequestErrorResponse:
description: Request failed. Missing or invalid parameter <param_name>
headers: {}
content:
application/json:
schema:
$ref: '#/components/schemas/ValidationErrorResponse'
UnauthorizedErrorResponse:
description: Unauthorized
headers: {}
content:
application/json:
schema:
$ref: '#/components/schemas/UnauthorizedErrorResponse'
ForbiddenErrorResponse:
description: Request failed. The feature is disabled for your account.
headers: {}
content:
application/json:
schema:
$ref: '#/components/schemas/ForbiddenErrorResponse'
NotFoundErrorResponse:
description: Request failed. An object with the specified ID is not found.
headers: {}
content:
application/json:
schema:
$ref: '#/components/schemas/NotFoundErrorResponse'
ValidationErrorResponse:
description: Validation error
headers: {}
content:
application/json:
schema:
$ref: '#/components/schemas/ValidationErrorResponse'
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).
'