Create IFrame Room API
The Huddle01 API provides the ability to create rooms, join room tokens for hosting various communication experiences. In order to use the API, you will need to obtain an API key by connecting to your wallet.
If you have a custom Huddle01 subdomain, use the Create Room API instead
Endpoint
https://api.huddle01.com/api/v1/create-iframe-room
The Create Iframe Room API is to create a meeting room and obtain roomId, and meetingLink.
Additionally, you can add custom functionalities such as muteOnEntry
,
roomLock
, and hostWallets
, among others, to enhance the functionality of
your iframe meeting rooms.
Create Iframe Room Api
The API supports a POST request with the following required parameters:
title
- The title of the room.roomLocked
- Boolean value to lock the room.
const response = await axios.post(
'https://api.huddle01.com/api/v1/create-iframe-room',
{
title: 'Huddle01-Test',
roomLocked: true
},
{
headers: {
'Content-Type': 'application/json',
'x-api-key': {{API_KEY}},
},
}
);
Upon success, the API will return a response with the following fields:
message
- The message returned from the server.roomId
- The id of the room created.
In case of an error, the API will return an error message with a corresponding status code.
{
"message": "Meeting Created Successfully",
"data": {
"roomId": "tyt-eyoq-zwq",
"meetingLink": "https://app.huddle01.com/tyt-eyoq-zwq"
}
}
Request
Params | Definition | Data Type | Mandatory |
---|---|---|---|
title | The title of the room. This will be displayed in the room list. | string | Y |
description | The description of the room. This will be displayed in the room list. | string | N |
roomType | AUDIO will be for Audio Spaces and VIDEO will be for normal meetings with Video and Audio both. | AUDIO | VIDEO | N |
startTime | The start time of the room. This will be displayed in the room list. | string (ISO 8601) | N |
expiryTime | The expiry time of the room. This will be displayed in the room list. | string (ISO 8601) | N |
hostWallets | The host wallets how who will have admin access to the room. | string [ ] | N |
roomLocked | The start time of the room. This will be displayed in the room list. | boolean | true |
muteOnEntry | Every new peer who joins, must be muted | boolean | false |
videoOnEntry | Every new peer who joins, must have their video turned off | boolean | false |
Response
Fields | Definition | Data Type |
---|---|---|
message | The message returned from the server. | string |
roomId | The id of the room created. | string |