Skip to main content
GET
List Media

Request

Headers

string
required
Your API key in the format: Bearer imperial_live_xxxxxxxxxxxxx

Query Parameters

number
default:"1"
Page number for pagination
number
default:"50"
Number of items per page (max: 100)
string
default:"active"
Filter by status: active, trash, or all
string
Filter by folder. For active status, leaving this empty shows Root by default.
string
Search across your whole library (filename/original filename, plus tag exact match)
string
Date filter start (YYYY-MM-DD, UTC)
string
Date filter end (YYYY-MM-DD, UTC)
string
MIME prefix filter (e.g. image/, video/, application/) or other
number
Minimum file size in bytes
number
Maximum file size in bytes
boolean
Filter favorites (true or false)
string
Include tags (comma-separated). Must include all tags.
string
Exclude tags (comma-separated)
Back-compat: tag=foo is still supported and behaves like tags=foo.

Response

array
Array of media objects (images and videos)
object
Pagination information

Example Requests

Example Response

Media Object Fields

string
Unique identifier for the media
string
Direct CDN URL to the media file
string | null
Thumbnail URL (for videos only, null for images)
string
MIME type (e.g., image/jpeg, video/mp4)
string
Original filename
string
File size displayed in human-readable format
string
ISO 8601 timestamp of upload
string
Always "upload" for user uploads

Pagination

The API returns up to 50 items per page by default. Use the page and limit parameters to navigate through your media:

Filtering

Currently, the API returns all media sorted by upload date (newest first). Additional filtering options will be added in future updates.

Error Responses

Unauthorized

Invalid Parameters

Use this endpoint to build custom galleries or dashboards for your media library.