Skip to main content
POST
Answer a call

Authorizations

Authorization
string
header
required

Wavix API key. Pass as Authorization: Bearer <api_key>. Keys support per-resource scopes (none / read / write). See Restricted keys and scopes.

Path Parameters

id
string<uuid>
required

The uuid of the call.

Body

application/json

Options to apply when answering the call.

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>

Direction of audio streamed to stream_url.

Available options:
oneway,
twoway
Example:

"twoway"

stream_channel
enum<string>

Audio channel streamed to stream_url.

Available options:
inbound,
outbound,
both
Example:

"inbound"

Response

Returns a success confirmation. The call is answered.

success
boolean
required

Indicates whether the request was successful.

Example:

true