List media

View .md

List the current user's uploaded and imported media assets.


List the current user's uploaded/imported assets.

GET/v1/media
API key (dra_…) or dashboard JWT

List uploaded/imported media assets for the current user.

Authorizationstringheaderrequired

Bearer token. Use a Dravo API key (`dra_…`) or a dashboard JWT.

limitintquery

1 to 100 (default 50).

itemsobject[]

Media assets; each has the fields below.

idstring

Media asset id. Reference it from media_urls when publishing.

public_urlstring

Public CDN URL of the ingested file.

kindstring

image or video.

content_typestring

MIME type, e.g. image/jpeg or video/mp4.

size_bytesinteger

File size in bytes.

statusstring

Always ready once ingestion succeeds.

created_atstring (ISO 8601)

When the asset was ingested.

totalinteger

Total assets in the library.

const response = await fetch("https://api.dravo.dev/v1/media", {  method: "GET",  headers: {  "Authorization": "Bearer " + process.env.DRAVO_API_KEY,}});const data = await response.json();console.log(data);
{  "items": [    {      "id": "media_8f2c1d",      "public_url": "https://cdn.dravo.dev/u/abc/2f1c....jpg",      "kind": "image",      "content_type": "image/jpeg",      "size_bytes": 84211,      "status": "ready",      "created_at": "2026-06-27T10:00:00Z"    }  ],  "total": 1}