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 that belongs to the authenticated user. The library is resolved by the token's user_id — no path or query parameters are required.

📘

Authorization

Requires a valid API token in the Authorization header (without Bearer prefix).

HTTP Method & Path

GET /library

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

Authentication Requirements

HeaderValue
AuthorizationYour Panda API token (no Bearer prefix)

Response

Success Response (200)

{
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "user_id": "2481ef9b-5642-4fcd-b9aa-094e98b5cf0a",
  "name": "pv-production-2481ef9b-5642-4fcd-b9aa-094e98b5cf0a",
  "video_library_id": "609b5860-e7ba-4023-8a36-09e30f4ed1fb",
  "pullzone_name": "vz-163a34ba-25b",
  "pullzone_id": "4449600",
  "api_key": "aws",
  "video_library_pullzone_id": "4449601",
  "parallel_upload_limit": 5,
  "playback": ["720p", "480p", "360p", "240p", "1080p", "1440p", "2160p"],
  "block_none_refer": false,
  "encoding": ["1080p", "720p", "240p", "360p", "480p", "1440p", "2160p"],
  "keep_original_files": false,
  "compression_mode": "quality",
  "hls_segment_duration": 10,
  "drm": true
}

Response Schema

FieldTypeDescription
idstring (uuid)Library ID — this is the library_id used by the other /library endpoints
user_idstring (uuid)Owner user ID
namestringLibrary name (auto-generated on signup)
video_library_idstring (uuid)Internal video library identifier
pullzone_namestringCDN pullzone name — this is the {library} segment of the player subdomain (player-{pullzone_name}.tv.pandavideo.com.br)
pullzone_idstringCDN pullzone ID
api_keystringInternal storage provider identifier (e.g. aws)
video_library_pullzone_idstringVideo library pullzone ID
parallel_upload_limitintegerMax parallel uploads (default 5)
playbackstring[]Resolutions exposed to the player. Expected to be a subset of encoding
encodingstring[]Resolutions the transcoding pipeline generates. Values: 240p, 360p, 480p, 720p, 1080p, 1440p, 2160p
block_none_referbooleantrue when the CDN rejects playback requests without an allowed referrer
keep_original_filesbooleantrue when the uploaded master is preserved. Required to re-encode or encrypt a video later
compression_modestringEncoder preset — size, balanced or quality
hls_segment_durationintegerDuration of each HLS segment, in seconds (415, default 6)
drmbooleantrue when DRM is enabled for this library
⚠️

Important

  • This response has no timestamps — there is no created_at / updated_at field.
  • playback and encoding are returned unordered; do not rely on the position of a resolution.
  • keep_original_files is a prerequisite for re-encoding and for encrypting videos that already exist. With it disabled, those operations fail.
📘

Security settings are not returned here

The library-wide security switches have their own endpoints and are not part of this response:

SettingEndpoint
Download protectionGET /block_download/
Strict playback originGET /panda_only_playback/
HLS encryption of new uploadsGET /library/{library_id}/hls-encryption

The allowed-referrer list is not returned here either — use GET /library/{library_id}?action=refer. Only the block_none_refer policy flag appears above.

📘

Bootstrap on first access

If LibrarySettings does not yet exist, it is created on-the-fly from the CDN's EnabledResolutions (or a default of ["360p","480p","720p","1080p"] when the CDN is unreachable). Cache keys getLibraryById_{id} and getVerifyIfHasLibraryId_USER_ID are invalidated.

Error Responses

StatusWhen
404Library with user id: USER_ID was not found — the token's user has no library
500Internal error

Example Usage

cURL

curl -H "Authorization: $PANDA_API_TOKEN" \
  https://api-v2.pandavideo.com.br/library

Related

  • Get a specific library by ID: GET /library/{library_id} — see the page Get library details or referrers
  • Update qualities / settings: PUT /library/{library_id} — see the page Videos Qualities
  • HLS segment duration: see Configure Hls Segments
Responses

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