Media
List Media
List media resources built from published article/item images and author avatars.
GET
List Media
Endpoint
Notes
Media API currently returns image resources from:- Published article/item featured images (
source: post) - Author avatars (
source: author)
Query parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
page | integer | 1 | Page number |
per_page | integer | 10 | Items per page |
search | string | - | Search by title/description |
orderby | string | date | date, created_at, or title |
order | string | desc | asc or desc |
_fields | string | - | Comma-separated attribute field filter |
Example request
Example response
Response field descriptions
| Field | Type | Description |
|---|---|---|
data[].id | string | Media ID (post-{postId} or author-{authorId}) |
data[].type | string | Resource type (media) |
data[].attributes.source | string | Source entity type (post or author) |
data[].attributes.source_id | string | Source entity ID |
data[].attributes.url | string | Media URL |
data[].attributes.type | string | Media type (image) |
data[].attributes.title | string | null | Media title |
data[].attributes.description | string | null | Media description |
data[].attributes.aspect_ratio | string | null | Aspect ratio label |
data[].attributes.palette | object | null | Palette metadata |
data[].attributes.created_at | string | ISO datetime |
meta.total | number | Total media items |
meta.per_page | number | Page size |
meta.page | number | Current page |
Filtering and pagination
searchmatches media title and description.orderbysupports date/title-oriented sorting.pageandper_pagecontrol pagination.
Error responses
403if organization is not in Skayle CMS mode.500for unexpected server errors.
List Media