Check out our upcoming events and meetups! View events →
Switch the supervisor role for a bridged call. This allows switching between different supervisor modes during an active call
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: process.env['TELNYX_API_KEY'], // This is the default and can be omitted
});
const response = await client.calls.actions.switchSupervisorRole('call_control_id', {
role: 'barge',
});
console.log(response.data);{
"data": {
"result": "ok"
}
}Documentation Index
Fetch the complete documentation index at: https://developers.telnyx.com/llms.txt
Use this file to discover all available pages before exploring further.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Unique identifier and token for controlling the call
Switch supervisor role request
The supervisor role to switch to. 'barge' allows speaking to both parties, 'whisper' allows speaking to caller only, 'monitor' allows listening only.
barge, whisper, monitor "barge"
Successful response upon making a call control command.
Show child attributes
{ "result": "ok" }Was this page helpful?
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: process.env['TELNYX_API_KEY'], // This is the default and can be omitted
});
const response = await client.calls.actions.switchSupervisorRole('call_control_id', {
role: 'barge',
});
console.log(response.data);{
"data": {
"result": "ok"
}
}