List Assets
Fetch a paginated list of assets with filtering, sorting, and search.Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
type | String | - | Filter by MIME type |
tags | [String!] | - | Filter by tags (AND logic) |
search | String | - | Search in name and description |
filter | AssetFilter | - | Advanced field filtering |
sort | [SortCriteria!] | - | Sort criteria |
page | Int | 1 | Page number |
limit | Int | 20 | Items per page |
Filter Example
Get Single Asset
Fetch a specific asset by ID.Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | ID! | Yes | Asset ID |
Example
Asset Fields
| Field | Type | Description |
|---|---|---|
id | ID! | Unique identifier |
name | String! | File name |
description | String | Asset description |
type | String! | MIME type |
url | String! | CDN URL |
size | Int! | File size in bytes |
width | Int | Image width (images only) |
height | Int | Image height (images only) |
tags | [String!] | Associated tags |
createdAt | DateTime! | Upload timestamp |
updatedAt | DateTime! | Last update timestamp |
Common MIME Types
| Type | Description |
|---|---|
image/jpeg | JPEG images |
image/png | PNG images |
image/gif | GIF images |
image/webp | WebP images |
image/svg+xml | SVG graphics |
video/mp4 | MP4 videos |
video/webm | WebM videos |
application/pdf | PDF documents |
