Number of APIs: 7
GET {{HOST}}/v2/active-rooms/<room_id>
Retrieves the details of a specific active room. 100ms allows you to retrieve details of an active room with their ID.
GET {{HOST}}/v2/active-rooms/:room_id/peers/:peer_id
Retrieves the details of a specific peer in an active room. You can use the peer_id to retrieve the details of the peer. Use retrieve active room state API to get the list of connected peers in an active room. Note: You can leverage this API to retrieve the details of connected peers in an active room only. To retrieve details of the peers that left the session already, use the Retrieve a specific session API
Why would you use this API?
3. List Peers
GET {{HOST}}/v2/active-rooms/:room_id/peers
4. Update Peer
POST {{HOST}}/v2/active-rooms/:room_id/peers/:peer_id
You can use this API to update the details of a connected peer, such as name, role, and metadata (custom/additional information to build real-time interactivity scenarios).Arguments
Name
Type
Description
Required
room_id
— path paramstring
Unique identifier of the room where the peer is active.
Example: 627cda81ab4f3b56a077dc33Yes
peer_id
— path paramstring
Unique identifier of the peer/participant for which you wish to update details.
Example: 1038fa72-9345-4651-beab-436f9242ebf4Yes
name
— body paramstring
The name of the peer used in the active session.
No
role
— body paramstring
You can use this to update the role type of the peer. For example, to take the peer to a breakout room.
No
metadata
— body paramobject
You can use a stringified JSON to update various custom/additional information to a peer such as businessuserid, raisehand/lowerhand info, and more
No
Why would you use this API?
5. Send Message
POST {{HOST}}/v2/active-rooms/<room_id>/send-message
You can use this API to send messages to a single peer, a set of peers (a particular role), or all connected peers in the active room. This API supports arguments such as ENDPOINTSpeer_id
and role
to implement this.
peer_id
is specified -- message will be sent only to the specified connected peer.role
is specified -- message will be sent to all the connected peers assigned with that particular role.peer_id
and role
are specified -- preference will be given to the peer_id and the message will be sent only to the specified connected peer.peer_id
and role
are not specified -- message(broadcast) will be sent to all the connected peers.Arguments
Name
Type
Description