Skip to main content

Switch supervisor role

POST 
/calls/:call_control_id/actions/switch_supervisor_role

Switch the supervisor role for a bridged call. This allows switching between different supervisor modes during an active call

Request

Path Parameters

    call_control_id stringrequired

    Unique identifier and token for controlling the call

Body

required

Switch supervisor role request

    role stringrequired

    Possible values: [barge, whisper, monitor]

    The supervisor role to switch to. 'barge' allows speaking to both parties, 'whisper' allows speaking to caller only, 'monitor' allows listening only.

Responses

200: Successful response upon making a call control command.

default: Unexpected error

Request samples


curl -L 'https://api.telnyx.com/v2/calls/:call_control_id/actions/switch_supervisor_role' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
-d '{
"role": "barge"
}'

Response samples


{
"data": {
"result": "ok"
}
}