Skip to main content

Streamkey_add

applies to MistServer 3.7 and newer

This call allows you to add (or edit) stream keys to the current stream key configuration.

You can add a stream key by calling the streamkey_add call and pass it a streamkey and streamname to create a stream key/name pair. While any valid UTF-8 string can be used in a streamkey we do not recommend using any characters that could have special meaning (or require special encoding) within URLs or protocols.

You can pass multiple keys/name pairs at the same time:

{
"streamkey_add": {
"stream_key":"stream_name",
"UhFQ4DSYtSKOtX8NmUx1t1LFeJLllEBM": "live",
"w7mhwcgHid5oCtdMRybPjrpl1JudDVsY": "live"
}
}

The response will be the stream keys that were successfully added by this call. If any stream key already existed it is updated with the new stream name.

{
"streamkey_add": {
"added": [
"UhFQ4DSYtSKOtX8NmUx1t1LFeJLllEBM",
"stream_key",
"w7mhwcgHid5oCtdMRybPjrpl1JudDVsY"
]
}
}

Note that a stream key is considered "added" only if it did not already exist with the same stream name (e.g. it is only considered added if the configuration changed).