import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: 'My API Key',
});
const response = await client.calls.actions.switchSupervisorRole('call_control_id', { role: 'barge' });
console.log(response.data);{
"data": {
"result": "ok"
}
}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: 'My API Key',
});
const response = await client.calls.actions.switchSupervisorRole('call_control_id', { role: 'barge' });
console.log(response.data);{
"data": {
"result": "ok"
}
}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"
Was this page helpful?