List library folders
const url = 'https://api.braiv.co/v1/folders';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/folders \ --header 'Authorization: Bearer <token>'Returns Studio folders in the API key or OAuth library (up to 200).
Soft-deleted folders and the reserved All Videos folder are omitted.
Each item includes parentId and a name path so agents can rebuild
the tree. Optional parentId lists direct children of that folder.
Required scope: videos:read.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Query Parameters
Section titled “Query Parameters ”When set, only folders whose parent is this id.
Responses
Section titled “ Responses ”Folders in the caller’s library.
object
Folders in the caller’s library.
object
Studio folder id. Pass as folderId on createVideo.
Display name.
Parent folder id, or null at the library root.
Ancestor names from the root through this folder.
Present when the folder belongs to a workspace library.
Example
{ "folders": [ { "id": "fold_client", "name": "Client A", "parentId": null, "path": [ "Client A" ] }, { "id": "fold_q1", "name": "Q1", "parentId": "fold_client", "path": [ "Client A", "Q1" ] } ]}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": {} }}