Disable RTMP stream key

Use this request to disable the RTMP stream key for a specific room.

POSThttps://api.100ms.live/v2/stream-keys/room/<room_id>/disable
curl --location --request POST 'https://api.100ms.live/v2/stream-keys/room/<room_id>/disable' \ --header 'Authorization: Bearer <management_token>'
RESPONSE
Status: 201 OK
{ "message": "key disabled successfully" }

Arguments

FieldTypeDescription
room_idstringmandatory

Errors

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

Note on resetting stream keys

In order to reset stream key for a particular room, disable the existing stream key for the room using the above given API, and then create a new stream key using the Create Stream Key API. This is especially important if a stream key is leaked publicly.


Have a suggestion? Recommend changes ->

Run in postman

Was this helpful?

1234