Skip to main content
POST
List media from the site's CMS

Body

application/json
query
string

Search text.

page
number

1-based. Defaults to 1.

limit
number

1-50. Defaults to 20.

kind
enum<string>

Which bucket to read. Honoured by library mode (createOrchestrator()), which also filters the response by it; the standalone server ignores the field and always returns images.

Available options:
image,
file
config
object

The CMS connection. { provider: "contentful", spaceId, deliveryToken, environment? }, { provider: "sanity", projectId, dataset?, token? } or { provider: "strapi", url, token? }.

Response

{ items, totalPages }. Library mode also returns canUpload.