import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: 'My API Key',
});
const response = await client.conferences.actions.leave('id', {
call_control_id: 'c46e06d7-b78f-4b13-96b6-c576af9640ff',
});
console.log(response.data);{
"data": {
"result": "ok"
}
}Removes a call leg from a conference and moves it back to parked state.
Expected Webhooks:
conference.participant.leftimport Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: 'My API Key',
});
const response = await client.conferences.actions.leave('id', {
call_control_id: 'c46e06d7-b78f-4b13-96b6-c576af9640ff',
});
console.log(response.data);{
"data": {
"result": "ok"
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Uniquely identifies the conference by id or name
Leave Conference request object
Unique identifier and token for controlling the call
"f91269aa-61d1-417f-97b3-10e020e8bc47"
Use this field to avoid execution of duplicate commands. Telnyx will ignore subsequent commands with the same command_id as one that has already been executed.
"891510ac-f3e4-11e8-af5b-de00688a4901"
Whether a beep sound should be played when the participant leaves the conference. Can be used to override the conference-level setting.
always, never, on_enter, on_exit "on_exit"
Region where the conference data is located. Defaults to the region defined in user's data locality settings (Europe or US).
Australia, Europe, Middle East, US "US"
Was this page helpful?