Retrieve Room Codes

Retrieves Room Codes for all Roles in a Room. You can choose to retrive Room Codes for a specific Role and/or only enabled Room Codes using these as filter in the API endpoint.

GEThttps://api.100ms.live/v2/room-codes/room/<room_id>
curl --location --request GET 'https://api.100ms.live/v2/room-codes/room/<room_id>' \ --header 'Authorization: Bearer <management_token>'
RESPONSE
Status: 200 OK
{ "limit": 20, "data": [ { "code": "hkj-sdf-fda", "room_id": "329d23d4f772854d9bf633df", "role": "host", "enabled": true, "created_at": "2023-03-03T11:41:08.082Z", "updated_at": "2023-03-03T11:41:08.082Z", }, { "code": "wiw-giw-bzs", "room_id": "329d23d4f772854d9bf633df", "role": "guest", "enabled": false, "created_at": "2023-03-03T11:41:08.082Z", "updated_at": "2023-03-03T11:41:08.082Z", } ], "last": "" }

Allowed Filters

FieldTypeDescriptionRequired
rolestringWhen specified, it retrieves all Room Codes for the specified Role in the room.No
enabledbooleanSpecify enabled as true or false to retrieve enabled or disabled Room CodesNo
limitintDetermines the number of Room Code objects to be included in the response.No
startstringNo

Errors

DescriptionCode
Room not found404
Room is disabled403
Authentication Error401
Role not found404
Invalid query parameter400

Have a suggestion? Recommend changes ->

Run in postman

Was this helpful?

1234