get
https://api-v2.pandavideo.com.br/library/?action=folder_refer
Lists the domains registered directly on a folder.
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
GET /library/{library_id}?action=folder_refer
{library_id}?action=folder_referLists the domains registered directly on a folder. Domains inherited from parent folders are not included here — use List inherited folder referrers for those.
action=folder_referis requiredBoth
actionandfolder_idare required query parameters. Withoutaction, this path returns the library details instead of a 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}?action=folder_refer&folder_id={folder_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) | yes | Library ID owned by the authenticated user |
Query Parameters
| Name | Type | Required | Description |
|---|---|---|---|
action | string | yes | Fixed value: folder_refer |
folder_id | string (uuid) | yes | Folder whose domains you want to list |
Response
Success Response (200)
{
"refers": [
{
"id": "789e4567-e89b-12d3-a456-426614174999",
"url": "course.mysite.com",
"type": "ALLOW",
"status": "active",
"origin": { "type": "folder", "id": "123e4567-e89b-12d3-a456-426614174000" }
}
]
}Response Schema
| Field | Type | Description |
|---|---|---|
refers | object[] | Domains registered on the folder. Empty array when none |
refers[].id | string (uuid) | Referrer ID — use it to remove or toggle the domain |
refers[].url | string | Hostname |
refers[].type | string | ALLOW or BLOCK |
refers[].status | string | active, inactive, pending, deleting or turning_inactive |
refers[].origin | object | Scope this row applies to — { type, id } |
Important
- Folder domains replace the library list for videos in that folder — they do not add to it.
- The field is called
originhere, but the consolidated view (?action=refer_all) calls the same informationscope. This inconsistency is real in the API.
Error Responses
| Status | When |
|---|---|
400 | Missing or unknown action |
404 | Folder not found |
500 | Internal error |
Example Usage
cURL
curl -X GET \
"https://api-v2.pandavideo.com.br/library/{library_id}?action=folder_refer&folder_id={folder_id}" \
-H "Authorization: $PANDA_API_TOKEN"Related
- Inherited domains:
GET /library/{library_id}?action=folder_refer_inherited - Add a folder domain:
POST /library/{library_id}?action=folder_refer - Consolidated view:
GET /library/{library_id}?action=refer_all
