Get shorts outputs
const url = 'https://api.braiv.co/v1/shorts/shorts_01JZA';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/shorts/shorts_01JZA \ --header 'Authorization: Bearer <token>'Returns up to five non-deleted outputs. partial_failed returns 200 because usable outputs may be present. Required scope: videos:read.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Shorts request document ID returned by createShorts.
Example
shorts_01JZAResponses
Section titled “ Responses ”Request completed fully or partially; inspect status and outputs.
object
Shorts request ID.
Current request lifecycle.
Planned number of outputs.
Pollable shorts job ID.
All available non-deleted generated outputs for the request.
object
Generated output ID.
Output family.
Playback URL for the generated video.
Generated output thumbnail URL.
Output duration in seconds.
Generated output title.
Generated output summary.
Example
{ "shortsRequestId": "req_01JZA", "status": "partial_failed", "clipsExpected": 3, "jobId": "shorts_req_01JZA", "outputs": [ { "outputId": "out_01", "type": "shorts", "videoUrl": "https://cdn.braiv.co/out_01.mp4", "thumbnailUrl": "https://cdn.braiv.co/out_01.jpg", "duration": 42.5, "title": "Three launch lessons" } ]}Request is pending or processing; outputs may be incomplete.
object
Shorts request ID.
Current request lifecycle.
Planned number of outputs.
Pollable shorts job ID.
All available non-deleted generated outputs for the request.
object
Generated output ID.
Output family.
Playback URL for the generated video.
Generated output thumbnail URL.
Output duration in seconds.
Generated output title.
Generated output summary.
Example
{ "shortsRequestId": "req_01JZA", "status": "processing", "clipsExpected": 3, "jobId": "shorts_req_01JZA", "outputs": []}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 resource does not exist or is not accessible to the caller.
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": "NOT_FOUND", "message": "Resource not found.", "details": {} }}Request failed with no successful terminal result.
object
Shorts request ID.
Current request lifecycle.
Planned number of outputs.
Pollable shorts job ID.
All available non-deleted generated outputs for the request.
object
Generated output ID.
Output family.
Playback URL for the generated video.
Generated output thumbnail URL.
Output duration in seconds.
Generated output title.
Generated output summary.
Example
{ "shortsRequestId": "req_01JZA", "status": "failed", "clipsExpected": 3, "jobId": "shorts_req_01JZA", "outputs": []}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": {} }}