Update/Reset 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
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

PUT /live_stream_key/{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.

📘

Authorization

Requires a valid Panda API token sent in the Authorization header (no Bearer prefix).

⚠️

Blocked while the key is broadcasting. If a live is currently online on this key, the call fails with 400 "live online using this key". Finish the live first — see Finish live.

⚠️

Resetting invalidates the current key. After reset_stream_key: true the previous stream_key stops 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 SchemeHeaderNote
API KeyAuthorizationPanda API token (without Bearer prefix)

Parameters

NameInTypeRequiredDescription
AuthorizationheaderstringYesPanda API token (without Bearer prefix)

Path Parameters

NameTypeRequiredDescription
idstring (uuid)YesThe key id returned by Stream Keys — not the stream_key value.

Request Body

Content-Type: application/json

FieldTypeRequiredDescription
titlestringYesDisplay name of the key. Minimum 3 characters.
reset_stream_keybooleanNoWhen true, rotates the stream_key value to a new one.
set_defaultbooleanNoMakes this the account's default key, clearing default on the other keys.
🚧

title is 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. region is 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

Path Params
string
required

ID of the live stream key to update

Body Params
string
boolean
Responses

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json