List library videos
const url = 'https://api.braiv.co/v1/videos?limit=20';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api.braiv.co/v1/videos?limit=20' \ --header 'Authorization: Bearer <token>'Lists accessible videos newest first. Pass the previous response’s token to continue. Required scope: videos:read.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Query Parameters
Section titled “Query Parameters ”Maximum videos to return. Values above 100 are capped at 100.
Last video ID from the previous page. An unknown token is ignored.
Responses
Section titled “ Responses ”A page of videos.
object
Videos in descending creation order.
object
Library video ID.
Overall normalized video processing state.
Current video title.
Current video description.
Media duration in seconds.
Current poster image URL.
Internal source provider label.
Ingested media kind.
Detected or selected source language.
Primary playback URL when available.
Playback URLs keyed by language code.
object
Owning workspace, if any.
Studio folder ids this video belongs to (UserVideos.tags).
ISO creation timestamp.
Import pipeline projection.
object
Current lifecycle state for this video subresource.
Language represented by the subresource.
Source transcription projection.
object
Current lifecycle state for this video subresource.
Language represented by the subresource.
Last video ID to pass to the next request, or null at the end.
Example
{ "videos": [ { "id": "vid_01JZ8M6A", "status": "ready", "title": "Launch demo", "duration": 184.2, "defaultLanguageCode": "en" } ], "nextPageToken": "vid_01JZ7ZZZ"}Request fields are missing, malformed, out of bounds, or mutually inconsistent.
object
Structured public API error envelope.
object
Stable machine-readable error code.
Human-readable error summary.
Machine-readable operation-specific context; empty when unavailable.
object
Example
{ "error": { "code": "INVALID_ARGUMENT", "message": "The request contains invalid or missing fields.", "details": {} }}A supported authentication header is missing or contains an invalid Public API key.
object
Structured public API error envelope.
object
Stable machine-readable error code.
Human-readable error summary.
Machine-readable operation-specific context; empty when unavailable.
object
Examples
Authentication header missing
{ "error": { "code": "UNAUTHENTICATED", "message": "Missing API key.", "details": {} }}API key invalid
{ "error": { "code": "INVALID_API_KEY", "message": "Invalid API key", "details": {} }}Authentication succeeded, but the required scope, workspace role, or resource permission is missing.
object
Structured public API error envelope.
object
Stable machine-readable error code.
Human-readable error summary.
Machine-readable operation-specific context; empty when unavailable.
object
Examples
{ "error": { "code": "INSUFFICIENT_SCOPE", "message": "The API key lacks the required scope.", "details": {} }}The API key exceeded its allowed concurrency or request rate. Retry after in-flight work completes or the limit resets.
object
Structured public API error envelope.
object
Stable machine-readable error code.
Human-readable error summary.
Machine-readable operation-specific context; empty when unavailable.
object
Example
{ "error": { "code": "RATE_LIMITED", "message": "API key concurrency limit reached", "details": {} }}An unexpected server error occurred.
object
Structured public API error envelope.
object
Stable machine-readable error code.
Human-readable error summary.
Machine-readable operation-specific context; empty when unavailable.
object
Example
{ "error": { "code": "INTERNAL", "message": "An unexpected error occurred.", "details": {} }}