CMS items

List items in a collection

Returns the collection’s active items in manual (drag) order by default, 20 per page (max 100); paginate with cursor or with 1-based page offsets, not both. Filter with published (true / false) and a JSON-encoded filter map of { fieldKey: { operator: value } } — operators eq, neq, in, nin, gt, gte, lt, lte, contains, startsWith, endsWith, and exists, plus slug equality on reference fields; metadata keys are id, slug, publishedAt, publishAt, createdAt, and updatedAt. Combine clauses with filterLogic (and by default, or or). search accepts a query string (1–200 characters) or JSON { "query", "fields" } to restrict which text fields are searched; sort accepts JSON { "kind": "field" | "meta", "field", "direction": "asc" | "desc" }, where sortable metadata fields are id, slug, publishedAt, publishAt, createdAt, updatedAt, and position. depth (0–3, default 0) embeds referenced items in place of their ids, one level per unit.

get/cms/collections/{collectionId}/items

Request

  • Base URL: https://api.cactal.ai/v1
  • URL: https://api.cactal.ai/v1/cms/collections/{collectionId}/items
  • Auth: HTTP bearer

Path parameters

collectionIdstring required

Query parameters

cursorstring
pageinteger
limitinteger
depthinteger
'true'
OR
'false'
filterstring
filterLogic'and' | 'or'
searchstring
sortstring

Response

One page of items.

nextCursorstring nullable required

Opaque cursor for the next page when paginating with cursor. null on the last page and when paginating with page.

nextPageinteger nullable required

Next page number when paginating with page. null on the last page and when paginating with cursor.

Changes

No recorded changes to this operation across all 1 revision of this API.