Skip to main content
GET
/
assets
Get Assets
curl --request GET \
  --url http://0.0.0.0:8008/assets \
  --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"
    },
    "created": "2023-11-07T05:31:56Z",
    "updated": "2023-11-07T05:31:56Z"
  }
]

Authorizations

Authorization
string
header
required

JWT in Authorization header. 'Bearer ' prefix optional.

Query Parameters

index_id
string<uuid>
required

The ID of the index to get assets from

Response

Successful Response

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