Regenerate live

Reactivates a live that expired without ever receiving a signal. The live goes back to provisioning and keeps the same id, the same stream key and the same player URL.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

POST /lives/{live_id}/regenerate

Reactivates a live that expired without ever receiving a signal.

📘

Authorization

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

📘

expired is not a failure. If the live becomes ready but no signal ever arrives, it moves to expired. Do not create a new live: call POST /lives/{live_id}/regenerate and the same live goes back to provisioning, keeping its id, its stream key and its player URL.

Without this endpoint you would create a new live on every failed attempt, and expired lives would pile up in your listing with no clear reason why.

HTTP Method & Path

POST /lives/{live_id}/regenerate

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

FieldTypeRequiredDescription
live_idstring (uuid)YesID of the expired live to bring back.

Request Body

None.

Response

Success Response (200)

{
  "id": "{live_id}",
  "status": "provisioning",
  "stream_key": "{stream_key}",
  "stream_key_id": "{stream_key_id}",
  "rtmp": "rtmp://vz-{hash}.us.pandavideo.live/live",
  "region": "us",
  "started_at": null
}

Response Schema

FieldTypeDescription
idstring (uuid)The same id as before — the live is reused, not recreated.
statusstringBack to provisioning.
stream_keystring (uuid)The same stream key as before.
stream_key_idstring (uuid)Stream key attached to this live.
rtmpstringIngest server.
regionstringIngest region of this live: us or br.
started_atstring | nullReset to null.
⚠️

It only works on a live in expired. Any other status is rejected, and the error tells you which status the live is in.

Error Responses

// the live is not expired (the error says which status it is in)
{ "errCode": "BadRequest",
  "errMsg": "Live {live_id} is not expired (status: online); only expired lives can be regenerated" }

// legacy live, with no region
{ "errCode": "BadRequest",
  "errMsg": "Live {live_id} has no region (legacy or inconsistent live); the channel cannot be regenerated" }

// two lives of the account coming up at the same instant
{ "errCode": "BadRequest",
  "errMsg": "another live of this account is starting at the same moment; try again in a few seconds" }

// 404
{ "errMsg": "Live with id: {live_id} was not found" }
  • 401 Unauthorized — missing or invalid API token.

Example Usage

cURL

curl -X POST "https://api-v2.pandavideo.com.br/lives/{live_id}/regenerate" \
  -H "Authorization: {api_key}"

Related

  • Create live — the statuses a live goes through, and the errors you get when a stream key is already taken.
  • List lives — find your lives in expired.
Path Params
uuid
required

ID of the expired live to regenerate.

Responses

400

The live is not expired, the live has no region, or another live of the account is starting at the same moment.

404

Live not found.

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