Daily REST Helper
Classes and methods for interacting with the Daily API to manage rooms and tokens
Classes
DailyRoomSipParams
Configuration for SIP (Session Initiation Protocol) parameters.
Display name for the SIP endpoint
Whether video is enabled for SIP
SIP connection mode
Number of SIP endpoints
DailyRoomProperties
Properties that configure a Daily room’s behavior and features.
Room expiration time as Unix timestamp
Whether chat is enabled in the room
Whether the prejoin lobby UI is enabled
Whether emoji reactions are enabled
Whether to eject participants when room expires
Whether dial-out is enabled
Maximum number of participants allowed in the room
SIP configuration parameters
SIP URI configuration
Whether the camera video is turned off by default
DailyRoomParams
Parameters for creating a new Daily room.
Room name (if not provided, one will be generated)
Room privacy setting (“private” or “public”)
Room configuration properties
DailyRoomObject
Response object representing a Daily room.
Unique room identifier
Room name
Whether the room was created via API
Room privacy setting
Complete room URL
Room creation timestamp
Room configuration
DailyMeetingTokenProperties
Properties for configuring a Daily meeting token.
The room this token is valid for. If not set, token is valid for all rooms.
Whether to eject user when token expires
Eject user after this many seconds
“Not before” timestamp - users cannot join before this time
Expiration timestamp - users cannot join after this time
Whether token grants owner privileges
User’s display name in the meeting
Unique identifier for the user (36 char limit)
Whether user can share their screen
Whether to join with video off
Whether to join with audio off
Recording settings (“cloud”, “local”, or “raw-tracks”)
Whether to show prejoin UI
Whether to start cloud recording when user joins
DailyMeetingTokenParams
Parameters for creating a Daily meeting token.
Token configuration properties
Initialize DailyRESTHelper
Create a new instance of the Daily REST helper.
Your Daily API key
The Daily API base URL
An aiohttp client session for making HTTP requests
Create Room
Creates a new Daily room with specified parameters.
Room configuration parameters including name, privacy, and properties
Get Room From URL
Retrieves room information using a Daily room URL.
The complete Daily room URL
Get Token
Generates a meeting token for a specific room.
The complete Daily room URL
Token expiration time in seconds
Whether the token should have owner privileges (overrides any setting in params)
Additional token configuration. Note that room_name
, exp
, and is_owner
will be set based on the other function parameters.
Delete Room By URL
Deletes a room using its URL.
The complete Daily room URL
Delete Room By Name
Deletes a room using its name.
The name of the Daily room
Get Name From URL
Extracts the room name from a Daily room URL.
The complete Daily room URL