Create a conference
POST/conferences
Creates a conference on demand from an existing call leg using a call_control_id and a conference name. Upon creating the conference, the call will be automatically bridged to the conference. Conferences will expire after all participants have left the conference or after 4 hours regardless of the number of active participants.
Request
- application/json
Body
required
Unique identifier and token for controlling the call
Name of the conference
Possible values: [always
, never
, on_enter
, on_exit
]
Default value: never
Whether a beep sound should be played to existing participants when another participant joins and/or leaves the conference. Defaults to "never".
Use this field to add state to every subsequent webhook. It must be a valid Base-64 encoded string.
Default value: true
Toggle background comfort noise.
Use this field to avoid duplicate commands. Telnyx will ignore commands with the same "command_id".
Time length (minutes) after which the conference will end.
The URL to an audio file to be played to participants joining the conference. Takes effect only when "start_conference_on_create" is set to "false".
Whether the conference should be started on creation. If the conference isn't started all participants that join are automatically put on hold. Defaults to "true".
Responses
200: Successful response
- application/json
401: Unauthorized
422: Unprocessable entity. Can be caused by improper use of filters or nodes.
Request samples
curl -L 'https://api.telnyx.com/conferences' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{
"call_control_id": "AgDIxmoRX6QMuaIj_uXRXnPAXP0QlNfXczRrZvZakpWxBlpw48KyZQ==",
"name": "Business",
"beep_enabled": "on_exit",
"client_state": "aGF2ZSBhIG5pY2UgZGF5ID1d",
"comfort_noise": false,
"command_id": "891510ac-f3e4-11e8-af5b-de00688a4901",
"duration_minutes": 5,
"hold_audio_url": "http://www.example.com/audio.wav",
"start_conference_on_create": false
}'
Response samples
{
"data": {
"id": "string",
"name": "string",
"created_at": "string",
"expires_at": "string"
}
}