Skip to main content

Streamkeys

applies to MistServer 3.7 and newer

This call allows you to get the stream keys currently configured in MistServer. Stream keys allow pushing into MistServer while bypassing all other security and triggers.

It's worth nothing that a stream does not need any configuration for a stream key to work: MistServer will dynamically create the stream as-needed, but you can still create it if you want to override the default configuration (such as the buffer window size, or stream processes).

For more information please visit the stream keys documentation or the how-to stream tokens using stream keys.

To request the list of stream keys, send any non-object value to the streamkeys endpoint:

{
"streamkeys":true
}

You can also overwrite the current list with a new list, by providing it as a JSON object:

{
"streamkeys":{
"stream key 1": "stream_1",
"stream key 2": "stream_2",
"stream key 3": "stream_3"
}
}

The response to this call always contains the full list of stream keys followed by the stream name they allow access to:

"streamkeys": {
"9p6iKigoFluD1WcUeRtp3pNTxpvp0fMQ": "example",
"w7mhwcgHid5oCtdMRybPjrpl1JudDVsY": "streamname"
}