Brand rules
const url = 'http://localhost:3000/api/v1/brand/rules';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/brand/rules \ --header 'Authorization: Bearer <token>'The canon, as structured records: color.primary, logo.neverDo, type.scale. Without context, every rule and its context variants. With one, one rule per key: the context’s own where it has one, the default otherwise.
Scope: read.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”A brand’s slug; the default brand when left out
A slug, e.g. instagram-story or dark-background
Only the rules that point at this asset
Live: the release readers see, with only the files that may leave the team; a number: that release. The draft without it
Responses
Section titled “Responses”Rules, and the contexts in use
object
object
The brand’s slug
Dotted, e.g. color.primary
The heading readers see; null: the key, in words
Null: the default
object
Pixels
400 regular, 700 bold
Assets it points at, in order: /a/{id}, or /a/{id}/{rendition} when it names one
Every context some rule is scoped to
Example
{ "data": [ { "type": "color" } ]}default
Section titled “default”An error
object
object
Examplegenerated
{ "error": { "code": "example", "message": "example", "detail": "example" }}