Skip to main content
POST
/
call
/
{uuid}
/
answer
Answer an inbound call
curl --request POST \
  --url https://api.wavix.com/v1/call/{uuid}/answer \
  --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

appid
string
query
required

An API key to authorize your request

Path Parameters

uuid
string<uuid>
required

Call ID.

Body

application/json

Answer call request parameters

call_recording
boolean
default:false

Indicates whether the call should be recorded

call_transcription
boolean
default:false

Indicates whether the call is transcribed after it ends

stream_url
string<uri>

WebSocket URL for call streaming

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 successfully answered.

success
boolean
Example:

true

I