Get Content
GET
/content/{slug}
const url = 'http://localhost:9000/content/example?limit=20&offset=0';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 'http://localhost:9000/content/example?limit=20&offset=0'Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” slug
required
string
Query Parameters
Section titled “Query Parameters ” limit
integer
offset
integer
order
string
fields
string
Responses
Section titled “ Responses ”OK
Media type application/json
object
content
object
id
string
label
string
slug
string
format
string
prefix
string
metadata
object
key
additional properties
any
content_fields
Array<object>
object
id
string
name
string
label
string
field_type
string
sort_order
string
Example generated
{ "content": { "id": "example", "label": "example", "slug": "example", "format": "example", "prefix": "example", "metadata": {}, "content_fields": [ { "id": "example", "name": "example", "label": "example", "field_type": "example", "sort_order": "example" } ] }}