Skip to main content
GET
/
assets
/
{asset_id}
Get Asset
curl --request GET \
  --url http://0.0.0.0:8008/assets/{asset_id} \
  --header 'Authorization: Bearer <token>'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "type": "video",
  "name": "<string>",
  "size_bytes": 123,
  "mime_type": "<string>",
  "save_original": true,
  "duration": 123,
  "user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "index_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "features": {},
  "proxy": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  },
  "preview": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  },
  "index_units": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "asset_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "asset_type": "video",
      "start_time": 123,
      "end_time": 123,
      "created": "2023-11-07T05:31:56Z",
      "updated": "2023-11-07T05:31:56Z"
    }
  ],
  "created": "2023-11-07T05:31:56Z",
  "updated": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

JWT in Authorization header. 'Bearer ' prefix optional.

Path Parameters

asset_id
string<uuid>
required

The ID of the asset to get

Response

Successful Response

API response schema for getting a single asset

id
string<uuid>
required
type
enum<string>
required
Available options:
video,
image,
audio,
other
name
string
required
size_bytes
integer
required
mime_type
string
required
save_original
boolean
required
user_id
string<uuid>
required
index_id
string<uuid>
required
features
object
required

Core feature states for an asset - maps core feature types to their current states

created
string<date-time>
required
updated
string<date-time>
required
duration
number | null

Duration of the asset in seconds (for videos/audio)

proxy
object | null

API response schema for proxy information

preview
object | null

API response schema for preview information

index_units
IndexUnitGetResponse · object[] | null