List contents

Lists the site's published content entries, paginated. Filter by locale, tag, category, slug or date range. With `groupByTranslation=true` on a multi-language site, each item carries its per-locale `translations`, published ones only.

Required access
No credentialOptional: publishable keySite access
GET/contents
Base URLhttps://api.lynkow.com/storefront/{siteId}

Query parameters

authorId
string

Author user ID. UUID format

category
string

Keeps only the contents in the category with this slug

categoryIds
string[]

Keeps only the contents in at least one of these categories (UUIDs)

contentMode
enum("standard" | "structured")

One of: standard, structured

dateFrom
string

Filter from date (ISO 8601)

dateTo
string

Filter until date (ISO 8601)

excludeIds
string[]

Leaves out the items with these UUIDs

fallback
boolean

With `locale`, `false` leaves out the items not translated into the requested locale. Single-language sites ignore it

Default: true

groupByTranslation
boolean

On a multi-language site, `true` adds each content its `translations`. Without `locale`, it also lists one content per translation group

hasCategory
boolean

`true` keeps the contents in at least one category, `false` those in none

hasTag
boolean

`true` keeps the contents with at least one tag, `false` those with none

ids
string[]

Keeps only the items with these UUIDs

limit
number

Number of items per page

Default: 20

Max: 100

Min: 1

locale
string

BCP 47 locale code (e.g. "en", "fr")

page
number

Page number, starting at 1

Default: 1

Min: 1

publishedFrom
string

Filter by publish date from (ISO 8601)

publishedTo
string

Filter by publish date until (ISO 8601)

slug
string

URL-friendly identifier, unique per site and locale

slugs
string[]

Keeps only the items whose slug is one of these

sortBy
enum("created_at" | "updated_at" | "published_at" | "title" | "slug" | "display_order")

One of: created_at, updated_at, published_at, title, slug, display_order

Default: "published_at"

sortOrder
enum("asc" | "desc")

One of: asc, desc

Default: "desc"

status
enum("draft" | "published" | "archived" | "scheduled")

One of: draft, published, archived, scheduled

tag
string

Keeps only the contents carrying the tag with this slug

tagIds
string[]

Keeps only the contents with at least one of these tags (UUIDs)

translationGroupId
string

Translation group UUID (links translations across locales). UUID format

type
string

Resource type

Feedback

Was this page helpful?