List published pages
GET
/api/v1/content/pages
const url = 'https://example.com/api/v1/content/pages?locale=th&limit=20';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://example.com/api/v1/content/pages?locale=th&limit=20'Parameters
Section titled “ Parameters ”Query Parameters
Section titled “Query Parameters”locale
required
string
Content locale.
limit
integer
Maximum items returned.
cursor
string
Opaque cursor returned in the previous response.
Responses
Section titled “ Responses ”A cursor-paginated page of published pages.
Media typeapplication/json
object
data
required
Array<object>
object
contentHtml
required
string
contentJson
required
Native Tiptap document retained for re-editing.
object
type
required
string
content
Array<object>
A Tiptap node. Runtime input is limited to 100 nested levels.
object
type
required
string
attrs
object
key
additional properties
any
content
Array<object> recursive
marks
Array<object>
A Tiptap text mark.
object
type
required
string
attrs
object
key
additional properties
any
text
string
createdAt
required
string format: date-time
id
required
string format: uuid
locale
required
string
media
required
seo
required
slug
required
string
status
required
string
title
required
string
translationGroupId
required
string format: uuid
translations
required
Array<object>
object
href
required
string
locale
required
string
updatedAt
required
string format: date-time
meta
required
object
hasMore
required
boolean
limit
required
integer
locale
required
string
Example
{ "data": [ { "contentJson": { "type": "doc" }, "locale": "th", "media": [ { "mimeType": "image/avif" } ], "status": "draft", "translations": [ { "locale": "th" } ] } ], "meta": { "locale": "th" }}The cached representation is still current.
The request parameters are invalid.
Media typeapplication/problem+json
object
Example
{ "maintenance": { "locale": "th" }}The request could not be completed.
Media typeapplication/problem+json
object
Example
{ "maintenance": { "locale": "th" }}The content service is not ready, or the site is closed for maintenance; then maintenance carries what the owner wrote for visitors.
Media typeapplication/problem+json
object
Example
{ "maintenance": { "locale": "th" }}
