put
https://api-v2.pandavideo.com.br/live_stream_key/
Renames a stream key, changes its default flag and/or rotates the stream_key value. Blocked while a live is online on the key, and title is always required.
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
PUT /live_stream_key/{id}
{id}Updates a stream key: rename it, change its default flag, and/or rotate (reset) the stream_key value. The same endpoint handles all three.
AuthorizationRequires a valid Panda API token sent in the
Authorizationheader (no Bearer prefix).
Blocked while the key is broadcasting. If a live is currentlyonlineon this key, the call fails with400 "live online using this key". Finish the live first — see Finish live.
Resetting invalidates the current key. Afterreset_stream_key: truethe previousstream_keystops working: update the encoder with the new value before the next broadcast.
HTTP Method & Path
PUT /live_stream_key/{id}
Base URL: https://api-v2.pandavideo.com.br
Authentication Requirements
| Security Scheme | Header | Note |
|---|---|---|
| API Key | Authorization | Panda API token (without Bearer prefix) |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
Authorization | header | string | Yes | Panda API token (without Bearer prefix) |
Path Parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | string (uuid) | Yes | The key id returned by Stream Keys — not the stream_key value. |
Request Body
Content-Type: application/json
| Field | Type | Required | Description |
|---|---|---|---|
title | string | Yes | Display name of the key. Minimum 3 characters. |
reset_stream_key | boolean | No | When true, rotates the stream_key value to a new one. |
set_default | boolean | No | Makes this the account's default key, clearing default on the other keys. |
titleis always required — even when all you want is to reset the key or change the default, you must resend the title. Unknown fields are rejected (additionalProperties: false).
The region of a key cannot be changed.regionis set when the key is created and is not accepted here. To publish from the other region, create another key with POST /live_stream_key.
Example — rename and rotate the secret
{ "title": "Canal principal", "reset_stream_key": true }Response
Success Response (200)
{
"id": "{stream_key_id}",
"title": "Canal principal",
"stream_key": "{new_stream_key}",
"created_at": "2026-09-07T02:30:00.000Z",
"default": false,
"subaccount_id": null
}stream_key changes only when reset_stream_key: true was sent.
Error Responses
- 400 Bad Request — validation error (missing or too short
title);"live online using this key";"Subaccounts are not allowed to update stream keys". - 401 Unauthorized — missing or invalid API token.
- 404 Not Found —
"stream key was not found". - 500 Internal Server Error — server-side error.
Example Usage
cURL — rename and rotate
curl -X PUT "https://api-v2.pandavideo.com.br/live_stream_key/{stream_key_id}" \
-H "Authorization: {api_key}" \
-H "Content-Type: application/json" \
-d '{ "title": "Canal principal", "reset_stream_key": true }'Related
- Stream Keys — list the keys and read
is_attachedbefore rotating. - Create Live Stream Key — create a key, choosing its region.
- Delete Live Stream Key — remove a key.
