Skip to main content
POST
JavaScript

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Parameters that can be defined during room creation.

unique_name
string

The unique (within the Telnyx account scope) name of the room.

Example:

"My room"

max_participants
integer
default:10

The maximum amount of participants allowed in a room. If new participants try to join after that limit is reached, their request will be rejected.

Required range: 2 <= x <= 50
Example:

10

enable_recording
boolean
default:false

Enable or disable recording for that room.

Example:

true

webhook_event_url
string<uri>

The URL where webhooks related to this room will be sent. Must include a scheme, such as 'https'.

Example:

"https://example.com"

webhook_event_failover_url
string<uri>
default:""

The failover URL where webhooks related to this room will be sent if sending to the primary URL fails. Must include a scheme, such as 'https'.

Example:

"https://failover.example.com"

webhook_timeout_secs
integer

Specifies how many seconds to wait before timing out a webhook.

Required range: 0 <= x <= 30
Example:

25

Response

Create room response.

data
object
Example: