Update strict playback status

Enables or disables strict playback origin checking. Requires block_download to be enabled.

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

PUT /panda_only_playback/

Enables or disables strict playback origin checking for the library of the authenticated user.

📘

What this mode does

When enabled, the stream can only be played through the Panda player. The player sends the required origin/referer credentials, so the official embed keeps working normally — in browsers and in in-app WebViews alike. Requests that hit the .m3u8 URL directly, outside the player, are refused.

⚠️

Check your integrations before enabling

Anything that consumes the .m3u8 URL outside the Panda player — a custom native player, a TV app, an offline flow — stops working while this mode is on. If every playback path goes through the official embed, there is no impact.

📘

Authorization

Requires a valid API token in the Authorization header (without Bearer prefix). The library is resolved from the token — there is no library_id in the path.

HTTP Method & Path

PUT /panda_only_playback/

Base URL: https://api-v2.pandavideo.com.br

Authentication Requirements

HeaderValue
AuthorizationYour Panda API token (no Bearer prefix)

Request Body

Content-Type: application/json

Body Parameters

NameTypeRequiredDescription
statusbooleanyestrue enables strict playback origin checking
{ "status": true }

Response

Success Response (200)

{ "status": true }
⚠️

Dependency on block_download

This mode can only be enabled when block_download is already enabled. Trying otherwise returns 400.
Disabling block_download also disables this mode, in cascade.

⚠️

Important

  • Changes take a few minutes to apply. Settings are cached: allow up to ~6 minutes before the change affects playback, and responses may stay cached at the CDN for a short while after that.
  • Non-boolean values are rejected with 400.

Error Responses

StatusWhenMessage
400status is not a booleanstatus must be a boolean
400block_download is disabledpanda_only_playback só pode ser ativado quando block_download estiver ativo
404Library not found for the token's user
500Internal error
📘

The dependency error is returned in Portuguese

The API returns that message in Portuguese. It is reproduced above exactly as your integration will receive it.

Example Usage

cURL — enable (requires block_download already on)

curl -X PUT "https://api-v2.pandavideo.com.br/panda_only_playback/" \
  -H "Authorization: $PANDA_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"status": true}'

cURL — disable

curl -X PUT "https://api-v2.pandavideo.com.br/panda_only_playback/" \
  -H "Authorization: $PANDA_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"status": false}'

Related

  • Read the current value: GET /panda_only_playback/
  • Prerequisite switch: Update block download status
Body Params
boolean
required
Responses

400

status must be a boolean, or block_download is not enabled

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