Check out our upcoming events and meetups! View events →
Hold a list of participants in a conference 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.conferences.actions.hold('id');
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.
Uniquely identifies the conference by id or name
List of unique identifiers and tokens for controlling the call. When empty all participants will be placed on hold.
The URL of a file to be played to the participants when they are put on hold. media_name and audio_url cannot be used together in one request.
"http://example.com/message.wav"
The media_name of a file to be played to the participants when they are put on hold. The media_name must point to a file previously uploaded to api.telnyx.com/v2/media by the same user/organization. The file must either be a WAV or MP3 file.
"my_media_uploaded_to_media_storage_api"
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.hold('id');
console.log(response.data);{
"data": {
"result": "ok"
}
}