Live Meetings API
The Live Meetings API provides the ability to fetch live rooms in which people are currently present. In order to use the API, you will need to obtain an API key by connecting to your wallet.
Endpoint
https://api.huddle01.com/api/v1/live-meetings
Whatever meetings are created using Create Room API and are joined by users, will be listed in the Live Meetings API. The API will return the list of all the rooms which are currently live and the number of users present in each room.
/live-meetings
Get All Live Meetings API
The API supports a GET request with the following required parameters:
x-api-key
- Add your API Key to the headers to fetch all rooms associated with your API Key.
const response = await axios.get(
'https://api.huddle01.com/api/v1/live-meeting',
{},
{
headers: {
'Content-Type': 'application/json',
'x-api-key': {{API_KEY}},
},
}
);
Upon success, the API will return a response with an array of rooms with the following fields:
title
- The title of the room passed during room creation.hostWalletAddress
- An array of wallet addresses who are assigned as hosts.roomId
- The roomId of the room created using Create Room API.
In case of an error, the API will return an error message with a corresponding status code.
{
{
"liveMeetings": [
{
"title": "first meeting",
"hostWalletAddress": [],
"roomId": "wpd-hjnj-cyf"
},
{
"title": "second meeting",
"hostWalletAddress": [],
"roomId": "gvh-pmpn-nbe"
}
]
}
}
Endpoint
https://api.huddle01.com/api/v1/live-meeting/?roomId=YOUR_ROOM_ID
If the room isn't live, the API will throw a 404 NOT FOUND error.
Whatever meetings are created using Create Room API and are joined by users, will be listed in the Live Meetings API. The API will return the list of all the rooms which are currently live and the number of users present in each room.
/live-meeting
Get Single Live Meeting API
The API supports a GET request with the following required parameters:
x-api-key
- Add your API Key to the headers to fetch all rooms associated with your API Key.roomId
- Add the roomId in query params to fetch the details of a single active room.
const response = await axios.get(
'https://api.huddle01.com/api/v1/live-meetings',
{
roomId: 'YOUR_ROOM_ID',
},
{
headers: {
'Content-Type': 'application/json',
'x-api-key': {{API_KEY}},
},
}
);
Upon success, the API will return a response with the following fields:
title
- The title of the room passed during room creation.hostWalletAddress
- An array of wallet addresses who are assigned as hosts.roomId
- The roomId of the room created using Create Room API.
{
{
"title": "first meeting",
"hostWalletAddress": [],
"roomId": "wpd-hjnj-cyf"
},
}