A brand as files
GET
/api/v1/brands/{slug}/files
const url = 'http://localhost:3000/api/v1/brands/example/files?assets=ids';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/files?assets=ids' \ --header 'Authorization: Bearer <token>'Brand as code: the brand as YAML for a Git repository. brand.yaml (slug, name, theme, the order of rules/, the page tree), rules/{group}.yaml (the rules whose key starts with the group), pages/{slug}.yaml (a page’s fields and sections). Every default is left out, so the same brand is always the same bytes. Assets the repository holds are named by path under assets/, the rest by id; assets=files gives every asset a path, to fetch from assets[path].url and add beside the files.
Scope: read.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”slug
required
string
Brand slug
Query Parameters
Section titled “Query Parameters”assets
string
Files: every asset as a file under assets/
Responses
Section titled “Responses”The files
Media typeapplication/json
object
data
required
object
brand
required
string
files
required
object
key
additional properties
string
assets
required
Each path under assets/ the files name, with its asset: fetch it from url, or compare by sha256
object
key
additional properties
object
id
required
string format: uuid
filename
required
string
mime
required
string
size
required
integer
sha256
required
string
url
required
string format: uri
source
required
Any of:
null
Examplegenerated
{ "data": { "brand": "example", "files": { "additionalProperty": "example" }, "assets": { "additionalProperty": { "id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "filename": "example", "mime": "example", "size": 1, "sha256": "example", "url": "https://example.com" } }, "source": { "remote": "example", "branch": "example", "path": "example", "commit": "example", "syncedAt": "2026-04-15T12:00:00Z", "pending": true, "files": 1 } }}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" }}