A brand's pages
GET
/api/v1/brands/{slug}/pages
const url = 'http://localhost:3000/api/v1/brands/example/pages';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
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:3000/api/v1/brands/example/pages \ --header 'Authorization: Bearer <token>'In order, with their tree fields, how many sections each has and the keys of the rules they show. GET one for its sections.
Scope: read.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”slug
required
string
Brand slug
Responses
Section titled “Responses”Pages
Media typeapplication/json
object
data
required
Array<object>
object
slug
required
string
title
required
string
position
required
integer
hidden
required
boolean
parent
required
The page it sits under; null at the top
string | null
eyebrow
required
string | null
lede
required
string | null
icon
required
string | null
audience
required
On portals: who may read it
string
tabs
required
Its child pages show as tabs across its top
boolean
aliases
required
Slugs it had before a rename: they still find it
Array<string>
layout
required
Landing: a front with no nav column, on-this-page or pager; book: a chapter
string
updatedAt
required
The last change to what it says
string format: date-time
revision
required
What it says, as a hash: send it back in If-Match (edit_page and save_page: revision) to refuse a write over a change you haven’t seen
string
sections
required
How many
integer
keys
required
The rules its sections show, by key: keys, items’ keys and background colors
Array<string>
Example
{ "data": [ { "audience": "everyone", "layout": "book" } ]}default
Section titled “default”An error
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
detail
Examplegenerated
{ "error": { "code": "example", "message": "example", "detail": "example" }}