Live Restream

Attaches a restream RTMP/RTMPS destination to a live stream. Panda pushes the same video to the provided URL — used to broadcast simultaneously to YouTube, Twitch, FB Live, etc.

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

POST /lives/{live_id}/rtmp_endpoint

Attaches a restream destination to an existing live stream. While the broadcast is active (or once it goes online), Panda will push the same video to the provided RTMP/RTMPS URL — useful for simultaneously streaming to YouTube, Twitch, Facebook Live, or any other RTMP-compatible destination.

📘

Authorization

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

HTTP Method & Path

POST /lives/{live_id}/rtmp_endpoint

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

FieldTypeRequiredDescriptionConstraints
live_idstring (uuid)YesID of the live stream that should be restreamed.uuid

Request Body

Content-Type: application/json

Body Parameters

FieldTypeRequiredDescriptionConstraints
rtmp_urlstringYesDestination RTMP/RTMPS URL. Use the full URL including the stream key as required by the destination (YouTube, Twitch, FB Live…).
{
  "rtmp_url": "rtmps://a.rtmp.youtube.com/live2/your-stream-key"
}
⚠️

Heads up: the rtmp_url must already include the destination's secret/stream key path or query. Panda just forwards the video — it does not authenticate against the destination on your behalf.

Response

Success Response (200)

{
  "status": true
}

Response Schema

FieldTypeDescription
statusbooleantrue when the restream destination was attached successfully.

Error Responses

  • 400 Bad Request — Missing or invalid rtmp_url.
  • 401 Unauthorized — Missing or invalid API token.
  • 404 Not Found — Live not found for the given live_id.
  • 500 Internal Server Error — Server-side error.

Example Usage

cURL

curl -X POST \
  'https://api-v2.pandavideo.com.br/lives/<live_id>/rtmp_endpoint' \
  -H 'Authorization: your_api_token_here' \
  -H 'Content-Type: application/json' \
  -d '{
  "rtmp_url": "rtmps://a.rtmp.youtube.com/live2/your-stream-key"
}'

Related

  • List restream destinationsGET /lives/{live_id}/rtmp_endpoint (documentation page coming soon).
  • Remove a restream destinationDELETE /lives/{live_id}/rtmp_endpoint?rtmp_id=... (documentation page coming soon).
Path Params
uuid
required

ID of the live stream.

Body Params

RTMP/RTMPS destination to push the live stream to (restream).

string
required

Destination RTMP/RTMPS URL where the live should be restreamed. Use the full URL including the stream key path/query the destination requires (e.g., YouTube, Twitch, Facebook Live).

Response

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