A brand page, ready to read
curl --request GET \
--url http://localhost:3000/api/v1/brands/{slug}/view \
--header 'Authorization: Bearer <token>'import requests
url = "http://localhost:3000/api/v1/brands/{slug}/view"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('http://localhost:3000/api/v1/brands/{slug}/view', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "3000",
CURLOPT_URL => "http://localhost:3000/api/v1/brands/{slug}/view",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "http://localhost:3000/api/v1/brands/{slug}/view"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("http://localhost:3000/api/v1/brands/{slug}/view")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:3000/api/v1/brands/{slug}/view")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": {
"brand": {
"slug": "<string>",
"name": "<string>"
},
"version": {
"number": 0,
"publishedAt": "2023-11-07T05:31:56Z"
},
"context": "<string>",
"contexts": [
"<string>"
],
"lang": "<string>",
"theme": {
"v1": {},
"surface": "<string>",
"panel": "<string>",
"dark": "<string>",
"ink": "<string>",
"muted": "<string>",
"onDark": "<string>",
"mutedOnDark": "<string>",
"accent": "<string>",
"accentText": "<string>",
"onAccent": "<string>",
"accentUse": "fill",
"line": "<string>",
"faces": {
"head": {
"family": "<string>",
"weight": 123,
"file": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"files": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"filename": "<string>",
"mime": "<string>"
}
],
"fallback": "<string>",
"google": true
},
"body": {
"family": "<string>",
"weight": 123,
"file": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"files": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"filename": "<string>",
"mime": "<string>"
}
],
"fallback": "<string>",
"google": true
},
"label": {
"family": "<string>",
"case": "<string>",
"tracking": 123,
"weight": 123,
"file": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"files": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"filename": "<string>",
"mime": "<string>"
}
],
"fallback": "<string>",
"google": true
}
},
"radius": 123,
"width": "narrow",
"density": "compact",
"scale": 123,
"device": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"logo": {
"key": "<string>"
},
"nav": "sidebar",
"band": true,
"header": "plain",
"separation": "space",
"numbering": true,
"motion": "none",
"toc": "side",
"checks": [
{
"pair": "<string>",
"fg": "<string>",
"bg": "<string>",
"ratio": 123,
"need": 123,
"ok": true,
"used": "<string>"
}
],
"settings": {
"accent": "<string>",
"accentUse": "fill",
"surface": "<string>",
"panel": "<string>",
"dark": "<string>",
"ink": "<string>",
"muted": "<string>",
"head": "<string>",
"body": "<string>",
"label": "<string>",
"logo": "<string>",
"device": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"radius": 20,
"width": "narrow",
"density": "compact",
"scale": 1.3425,
"nav": "sidebar",
"band": true,
"header": "plain",
"separation": "space",
"numbering": true,
"motion": "none",
"toc": "side",
"languages": [
{
"code": "<string>",
"label": "<string>",
"dir": "ltr"
}
]
}
},
"nav": [
{
"slug": "<string>",
"title": "<string>",
"parent": "<string>",
"position": 0,
"eyebrow": "<string>",
"lede": "<string>",
"cover": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"icon": "<string>",
"audience": "everyone",
"tabs": true,
"home": true,
"locked": true,
"updatedAt": "2023-11-07T05:31:56Z"
}
],
"page": {
"slug": "<string>",
"title": "<string>",
"parent": "<string>",
"position": 0,
"eyebrow": "<string>",
"lede": "<string>",
"cover": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"icon": "<string>",
"audience": "everyone",
"tabs": true,
"home": true,
"updatedAt": "2023-11-07T05:31:56Z",
"sections": [
{
"id": "<string>",
"template": "<string>",
"title": "<string>",
"body": "<string>",
"width": "text",
"columns": 0,
"tone": "<string>",
"hidden": true,
"keys": [
"<string>"
],
"props": {},
"eyebrow": "<string>",
"lede": "<string>",
"aside": "<string>",
"tab": "<string>",
"background": {
"color": "<string>",
"image": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"scrim": 123
},
"items": [
{
"key": "<string>",
"asset": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"text": "<string>",
"verdict": "do",
"caption": "<string>",
"link": "<string>",
"label": "<string>",
"icon": "<string>",
"download": true
}
],
"audience": "everyone",
"contexts": [
"<string>"
],
"only": "<string>",
"translations": {}
}
],
"aliases": [
"<string>"
],
"layout": "book"
},
"locked": true,
"rules": [
{
"key": "<string>",
"label": "<string>",
"context": "<string>",
"type": "color",
"value": "<string>",
"spec": {},
"usage": "<string>",
"assets": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"rendition": "<string>",
"title": "<string>",
"filename": "<string>",
"mime": "<string>",
"width": 0,
"height": 0,
"size": 0,
"preview": true
}
]
}
],
"media": {},
"collections": {},
"signed": {},
"warnings": [
"<string>"
],
"missing": [
"<string>"
],
"redirect": "<string>",
"updates": [
{
"version": 0,
"publishedAt": "2023-11-07T05:31:56Z",
"publishedBy": "<string>",
"note": "<string>",
"image": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"changes": {
"rules": {
"added": [
"<string>"
],
"changed": [
"<string>"
],
"removed": [
"<string>"
]
},
"pages": {
"added": [
{
"slug": "<string>",
"title": "<string>"
}
],
"changed": [
{
"slug": "<string>",
"title": "<string>"
}
],
"removed": [
{
"slug": "<string>",
"title": "<string>"
}
]
}
}
}
]
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"detail": "<unknown>"
}
}API Reference
A brand page, ready to read
A page of the draft as readers with every door open see it: the nav (pages above a reader’s level listed with a lock), the page’s sections, every context version of the rules they show, the assets they name that may be used, and each collection section’s assets. No page: the first. A slug it had before a rename gives the page with redirect set. theme is the look, derived and graded, as GET theme gives it. edit=1 takes write, and adds hidden pages and sections, warnings (theme pairs that fell back among them) and missing.
Scope: read.
GET
/
api
/
v1
/
brands
/
{slug}
/
view
A brand page, ready to read
curl --request GET \
--url http://localhost:3000/api/v1/brands/{slug}/view \
--header 'Authorization: Bearer <token>'import requests
url = "http://localhost:3000/api/v1/brands/{slug}/view"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('http://localhost:3000/api/v1/brands/{slug}/view', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "3000",
CURLOPT_URL => "http://localhost:3000/api/v1/brands/{slug}/view",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "http://localhost:3000/api/v1/brands/{slug}/view"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("http://localhost:3000/api/v1/brands/{slug}/view")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:3000/api/v1/brands/{slug}/view")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": {
"brand": {
"slug": "<string>",
"name": "<string>"
},
"version": {
"number": 0,
"publishedAt": "2023-11-07T05:31:56Z"
},
"context": "<string>",
"contexts": [
"<string>"
],
"lang": "<string>",
"theme": {
"v1": {},
"surface": "<string>",
"panel": "<string>",
"dark": "<string>",
"ink": "<string>",
"muted": "<string>",
"onDark": "<string>",
"mutedOnDark": "<string>",
"accent": "<string>",
"accentText": "<string>",
"onAccent": "<string>",
"accentUse": "fill",
"line": "<string>",
"faces": {
"head": {
"family": "<string>",
"weight": 123,
"file": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"files": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"filename": "<string>",
"mime": "<string>"
}
],
"fallback": "<string>",
"google": true
},
"body": {
"family": "<string>",
"weight": 123,
"file": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"files": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"filename": "<string>",
"mime": "<string>"
}
],
"fallback": "<string>",
"google": true
},
"label": {
"family": "<string>",
"case": "<string>",
"tracking": 123,
"weight": 123,
"file": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"files": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"filename": "<string>",
"mime": "<string>"
}
],
"fallback": "<string>",
"google": true
}
},
"radius": 123,
"width": "narrow",
"density": "compact",
"scale": 123,
"device": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"logo": {
"key": "<string>"
},
"nav": "sidebar",
"band": true,
"header": "plain",
"separation": "space",
"numbering": true,
"motion": "none",
"toc": "side",
"checks": [
{
"pair": "<string>",
"fg": "<string>",
"bg": "<string>",
"ratio": 123,
"need": 123,
"ok": true,
"used": "<string>"
}
],
"settings": {
"accent": "<string>",
"accentUse": "fill",
"surface": "<string>",
"panel": "<string>",
"dark": "<string>",
"ink": "<string>",
"muted": "<string>",
"head": "<string>",
"body": "<string>",
"label": "<string>",
"logo": "<string>",
"device": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"radius": 20,
"width": "narrow",
"density": "compact",
"scale": 1.3425,
"nav": "sidebar",
"band": true,
"header": "plain",
"separation": "space",
"numbering": true,
"motion": "none",
"toc": "side",
"languages": [
{
"code": "<string>",
"label": "<string>",
"dir": "ltr"
}
]
}
},
"nav": [
{
"slug": "<string>",
"title": "<string>",
"parent": "<string>",
"position": 0,
"eyebrow": "<string>",
"lede": "<string>",
"cover": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"icon": "<string>",
"audience": "everyone",
"tabs": true,
"home": true,
"locked": true,
"updatedAt": "2023-11-07T05:31:56Z"
}
],
"page": {
"slug": "<string>",
"title": "<string>",
"parent": "<string>",
"position": 0,
"eyebrow": "<string>",
"lede": "<string>",
"cover": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"icon": "<string>",
"audience": "everyone",
"tabs": true,
"home": true,
"updatedAt": "2023-11-07T05:31:56Z",
"sections": [
{
"id": "<string>",
"template": "<string>",
"title": "<string>",
"body": "<string>",
"width": "text",
"columns": 0,
"tone": "<string>",
"hidden": true,
"keys": [
"<string>"
],
"props": {},
"eyebrow": "<string>",
"lede": "<string>",
"aside": "<string>",
"tab": "<string>",
"background": {
"color": "<string>",
"image": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"scrim": 123
},
"items": [
{
"key": "<string>",
"asset": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"text": "<string>",
"verdict": "do",
"caption": "<string>",
"link": "<string>",
"label": "<string>",
"icon": "<string>",
"download": true
}
],
"audience": "everyone",
"contexts": [
"<string>"
],
"only": "<string>",
"translations": {}
}
],
"aliases": [
"<string>"
],
"layout": "book"
},
"locked": true,
"rules": [
{
"key": "<string>",
"label": "<string>",
"context": "<string>",
"type": "color",
"value": "<string>",
"spec": {},
"usage": "<string>",
"assets": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"rendition": "<string>",
"title": "<string>",
"filename": "<string>",
"mime": "<string>",
"width": 0,
"height": 0,
"size": 0,
"preview": true
}
]
}
],
"media": {},
"collections": {},
"signed": {},
"warnings": [
"<string>"
],
"missing": [
"<string>"
],
"redirect": "<string>",
"updates": [
{
"version": 0,
"publishedAt": "2023-11-07T05:31:56Z",
"publishedBy": "<string>",
"note": "<string>",
"image": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"changes": {
"rules": {
"added": [
"<string>"
],
"changed": [
"<string>"
],
"removed": [
"<string>"
]
},
"pages": {
"added": [
{
"slug": "<string>",
"title": "<string>"
}
],
"changed": [
{
"slug": "<string>",
"title": "<string>"
}
],
"removed": [
{
"slug": "<string>",
"title": "<string>"
}
]
}
}
}
]
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"detail": "<unknown>"
}
}Authorizations
bearersession
An API key: ab_...
Path Parameters
Brand slug
Query Parameters
The page's slug; the first page when left out
The context the reader starts in, e.g. dark-background
The reader's language
1: as the builder sees it
Available options:
1 Response
The page
Show child attributes
Show child attributes