Check out our upcoming events and meetups! View events →
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: process.env['TELNYX_API_KEY'], // This is the default and can be omitted
});
const response = await client.conferences.actions.leave('id', {
call_control_id: 'c46e06d7-b78f-4b13-96b6-c576af9640ff',
});
console.log(response.data);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.
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"
Successful response upon making a conference 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.conferences.actions.leave('id', {
call_control_id: 'c46e06d7-b78f-4b13-96b6-c576af9640ff',
});
console.log(response.data);