Get user library

Returns the library settings of the authenticated account — id (library_id), name, default encoding/playback qualities, referrer-protection flags, and allowed referers list.

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

GET /library

Returns the library settings of the authenticated account. The library holds account-level configuration that affects how videos are encoded and played back — including the default encoding and playback quality lists, referrer-protection settings, and other org-wide flags.

📘

Authorization

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

HTTP Method & Path

GET /library

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)

This endpoint takes no path, query, or body parameters.

Response

Success Response (200)

Returns the library settings object:

{
  "id": "ffffffff-1111-2222-3333-444444444444",
  "name": "My library",
  "encoding": ["240p", "360p", "480p", "720p", "1080p"],
  "playback": ["360p", "720p", "1080p"],
  "block_none_refer": false,
  "allowed_referers": [],
  "created_at": "2026-01-01T00:00:00.000Z",
  "updated_at": "2026-05-29T14:00:00.000Z"
}

Response Schema

FieldTypeDescription
idstring (uuid)Library ID — used as the library_id path parameter on other endpoints (e.g., Video Qualities).
namestringDisplay name of the library.
encodingarray of stringsResolutions that will be converted during encoding for new uploads. Values: 240p, 360p, 480p, 720p, 1080p, 1440p, 2160p.
playbackarray of stringsResolutions available for viewers during playback. Subset of encoding.
block_none_referbooleanWhen true, blocks playback requests that arrive without a Referer header.
allowed_referersarrayDomains allowed to embed/play videos (referer whitelist).
created_atstringISO 8601 timestamp of creation.
updated_atstringISO 8601 timestamp of last update.
📘

Use case

Save the id returned here to call Video Qualities and other library-scoped endpoints. The same id is also exposed as library_id on each video object.

Error Responses

  • 401 Unauthorized — Missing or invalid API token.
  • 500 Internal Server Error — Server-side error.

Example Usage

cURL

curl -X GET \
  'https://api-v2.pandavideo.com.br/library' \
  -H 'Authorization: your_api_token_here' \
  -H 'Accept: application/json'

Recipes

The Recipes section provides a collection of code examples and sample implementations to help you understand and use the API effectively.

Responses

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