get
https://api-v2.pandavideo.com/library/
A single path that behaves in two distinct ways depending on whether the ?action=refer query parameter is present.
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
GET /library/{library_id}
{library_id}A single path that behaves in two distinct ways depending on whether the ?action=refer query parameter is present.
Operations Available
| Query | Operation |
|---|---|
| (no action) | Get library details (same shape as GET /library) |
?action=refer | List allowed referrers for this library |
?action=referis required to list referrers. Without it, the gateway returns the library details object — not the referrer list.
AuthorizationRequires a valid API token in the
Authorizationheader (withoutBearerprefix). Thelibrary_idmust belong to the authenticated user.
HTTP Method & Path
GET /library/{library_id}
Base URL: https://api-v2.pandavideo.com.br
Authentication Requirements
| Header | Value |
|---|---|
Authorization | Your Panda API token (no Bearer prefix) |
Path Parameters
| Name | Type | Required | Description |
|---|---|---|---|
library_id | string (uuid v4) | yes | Library ID owned by the authenticated user |
Query Parameters
| Name | Type | Required | Description |
|---|---|---|---|
action | string | when listing referrers | Fixed value: refer. Omit to return library details |
Response
Mode 1 — No action: Library details (200)
Same shape as GET /library. See the response schema on that page.
Mode 2 — ?action=refer: Referrer list (200)
?action=refer: Referrer list (200){
"refers": [
{
"id": "789e4567-e89b-12d3-a456-426614174999",
"type": "ALLOW",
"url": "example.com",
"status": "active"
},
{
"id": "abc12345-e89b-12d3-a456-426614174000",
"type": "ALLOW",
"url": "*.partner.com",
"status": "pending"
}
]
}Response Schema (referrer list)
| Field | Type | Description |
|---|---|---|
refers[].id | string (uuid) | Referrer entry ID |
refers[].type | string | Always ALLOW today |
refers[].url | string | Hostname (normalized to lowercase) |
refers[].status | string | One of: active, inactive, pending, deleting, turning_inactive |
Referrer states
active/inactive— terminal states.pending/turning_inactive/deleting— transient (syncing with Bunny CDN via the refer worker).
Error Responses
| Status | When |
|---|---|
400 | library_id failed UUID validation |
404 | Library not found or does not belong to the authenticated user |
500 | Internal error |
Example Usage
cURL — library details
curl -H "Authorization: $PANDA_API_TOKEN" \
https://api-v2.pandavideo.com.br/library/123e4567-e89b-12d3-a456-426614174000cURL — list referrers
curl -H "Authorization: $PANDA_API_TOKEN" \
"https://api-v2.pandavideo.com.br/library/123e4567-e89b-12d3-a456-426614174000?action=refer"Related
- Get the library for the current user:
GET /library - Add referrers:
POST /library/{library_id}?action=refer - Remove referrers:
DELETE /library/{library_id}?action=refer - Toggle refer policy:
POST /library/{library_id}?action=referValidation
