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
- application/json
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.
- application/json
default: Unexpected error
- application/json
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"
}
}
{
"errors": [
{
"code": "string",
"title": "string",
"detail": "string",
"source": {
"pointer": "string",
"parameter": "string"
},
"meta": {}
}
]
}