Generate a new Video Room Token
Generate a Room Token allowing a client to join a Room.
Permissions
The API token must include the following scopes: Video.
Request Body — REQUIRED |
---|
room_name string — REQUIREDRoom's unique named identifier. Allowed characters: A-Za-z0-9_-. Up to 100 characters. The room does not have to exist when the token is created, but must exist prior to joining, or ensure auto_create_room is set to true. |
user_name stringA display name to use for the user. Up to 100 characters. (If not supplied, a random alphanumeric string will be returned for each authorization with this token.) |
permissions string[]A list of permissions, which define what user can do once they join the room. |
join_from date-timeThe user can't join the room before this time. Expects RFC 3339 datetime: |
join_until date-timeThe user can't join the room after this time. Expects RFC 3339 datetime: |
remove_at date-timeRemove user from the room at this time. Expects RFC 3339 datetime: |
remove_after_seconds_elapsed integerRemove user after they are in the room for N seconds. |
join_audio_muted booleanWhether the user joins the room with their audio muted. |
join_video_muted booleanWhether the user joins the room with their video muted. |
auto_create_room booleanBy default, if the user tries to use this token to join a room that doesn't exist, it will be created with default configuration. Set this to false to require the room to exist beforehand. |
enable_room_previews booleanWhether to generate a video with a preview of the content of the room. This parameter has effect only if this token auto-creates the room, thus it will be ignored if the room already exists. |
room_display_name stringDisplay name used if a room is auto-created when the token joins. Maximum of 200 characters. Defaults to the value of room_name. |
end_room_session_on_leave booleanWhether to end the room session when the member using this token leaves the room. |
join_as stringPossible values: [ Whether the user should join as a member or as a non-interactive audience participant. Audience participants cannot send audio or video. |
media_allowed stringPossible values: [ Indicates what media the user is allowed to receive. |
room_meta objectSet the room meta. |
meta objectSet the member meta. |
audio_video_sync booleanEnable/disable jitter buffer audio-video sync. |
Responses | |||||||
---|---|---|---|---|---|---|---|
200 OK
| |||||||
422 Unprocessable Entity. You may have specified invalid parameters.
|