Get RTMP stream key

Use this request to get the RTMP stream key and URL for a specific room.

GEThttps://api.100ms.live/v2/stream-keys/room/<room_id>
curl --location --request GET 'https://api.100ms.live/v2/stream-keys/room/<room_id>' \ --header 'Authorization: Bearer <management_token>'
RESPONSE
Status: 200 OK
{ "data": [ { "id": "652d295286003bb661b5fc07", "key": "<stream_key>", "room_id": "<room_id>", "customer_id": "<customer_id>", "app_id": "<app_id>", "enabled": true, "url": "<rtmp_url>", "created_at": "2023-10-16T12:15:14.725Z", "updated_at": "2023-10-16T12:15:14.725Z" } ], "last": "652d295286003bb661b5fc07" }

Arguments

FieldTypeDescription
room_idstringmandatory

Errors

DescriptionCode
No active key found404
Room not found404
Room is disabled (not active)403
Authentication Error401

Have a suggestion? Recommend changes ->

Run in postman

Was this helpful?

1234