Skip to main content
GET
Get Asset

Overview

Fetch metadata and details for a specific uploaded asset using its unique identifier.

Request

Path Parameters

string
required
The unique identifier of the asset (UUID format)

Headers

string
required
Bearer token with your API key: Bearer sk-bab-your-api-key

Response

string
Unique identifier for the asset
string
Asset filename
string | null
S3 URL to access the asset
string
MIME type of the file
number | null
File size in bytes
string
Current state: uploading, processing, ready, or error
number | null
Duration in seconds (for video/audio files)
number | null
Width in pixels (for image/video files)
number | null
Height in pixels (for image/video files)
string
ISO 8601 timestamp of when the asset was uploaded

Examples

Response Example

Error Responses

404
Asset not found or you don’t have access
401
Invalid or missing API key

Use Cases

After uploading a large file, poll this endpoint to verify the upload completed successfully:
Before referencing an asset in your video project, verify it exists and is accessible:
Retrieve the public URL to download or display the asset:

Next Steps

Upload Asset

Upload a new asset

List Assets

View all your assets