Skip to main content

Create a room.

POST 
/rooms

Synchronously create a Room.

Request

Body

required

Parameters that can be defined during room creation.

    unique_name string

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

    max_participants integer

    Possible values: >= 2 and <= 50

    Default value: 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.

    enable_recording boolean

    Enable or disable recording for that room.

    webhook_event_url url

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

    webhook_event_failover_url urlnullable

    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'.

    webhook_timeout_secs integernullable

    Possible values: <= 30

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

Responses

201: Create room response.

422: Unprocessable entity. Check the 'detail' field in response for details.

Loading...