Skip to main content
POST
/
v1
/
calls
/
{uuid}
/
answer
Answer a call
curl --request POST \
  --url https://api.wavix.com/v1/calls/{uuid}/answer \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "call_recording": false,
  "call_transcription": false,
  "stream_url": "wss://examples.com/stream",
  "stream_type": "twoway",
  "stream_channel": "inbound"
}
'
{
  "success": true
}

Authorizations

Authorization
string
header
required

Bearer token using appid (Authorization: Bearer )

Path Parameters

uuid
string<uuid>
required

Call ID.

Body

application/json

Answer call configuration.

call_recording
boolean
default:false

Indicates whether the call should be recorded.

call_transcription
boolean
default:false

Indicates whether the call should be transcribed after it ends.

stream_url
string<uri>

WebSocket URL to stream the call.

Example:

"wss://examples.com/stream"

stream_type
enum<string>

Specifies the streaming type. Can be either oneway for unidirectional or twoway for bidirectional streaming.

Available options:
oneway,
twoway
Example:

"twoway"

stream_channel
enum<string>

Specifies which audio channel to stream. Use inbound to stream the incoming channel (to Wavix), outbound for the outbound channel (from Wavix), or both to stream both. For bidirectional call streaming, this setting is ignored and the inbound channel is only streamed.

Available options:
inbound,
outbound,
both
Example:

"inbound"

Response

Call answered.

success
boolean

Indicates whether the request was successful.

Example:

true