post
https://api-v2.pandavideo.com.br/lives//rtmp_endpoint
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
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
POST /lives/{live_id}/rtmp_endpoint
{live_id}/rtmp_endpointAttaches 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.
AuthorizationRequires a valid Panda API token sent in the
Authorizationheader (no Bearer prefix).
HTTP Method & Path
POST /lives/{live_id}/rtmp_endpoint
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
| Field | Type | Required | Description | Constraints |
|---|---|---|---|---|
live_id | string (uuid) | Yes | ID of the live stream that should be restreamed. | uuid |
Request Body
Content-Type: application/json
Body Parameters
| Field | Type | Required | Description | Constraints |
|---|---|---|---|---|
rtmp_url | string | Yes | Destination 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: thertmp_urlmust 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
| Field | Type | Description |
|---|---|---|
status | boolean | true 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 destinations —
GET /lives/{live_id}/rtmp_endpoint(documentation page coming soon). - Remove a restream destination —
DELETE /lives/{live_id}/rtmp_endpoint?rtmp_id=...(documentation page coming soon).
