A brand on BrandHub
const url = 'http://localhost:3000/api/v1/brands/example/hub';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/hub \ --header 'Authorization: Bearer <token>'Every published brand is on BrandHub at {org}/{brand}, private by default: its project’s people see it, signed in. Public, anyone and any agent reads its latest publish, as a page, llms.txt, brand.json and design tokens. portals: the portals it could link as its guidelines; null without the right to manage portals.
Scope: read.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Brand slug
Responses
Section titled “Responses”The brand on BrandHub
object
object
Private: the project’s people see it on BrandHub, signed in; public: anyone and any agent
Its page there: BrandHub’s own address when public, the app’s /hub when private
That portal was picked; false: it is the brand’s first public portal
Its BrandHub files (brand.json, llms.txt, tokens) read in the last 30 days, as its BrandHub card shows
Taken off BrandHub by whoever runs the server, and why: it can’t be made public until they list it again
Claimed by whoever proved its domain: the listing that took its place, as {org}/{brand}; it can’t be made public again
How BrandHub names it: {org}/{brand}
What its organization proved it holds, a domain or github.com/{login}; null: a community listing
The terms of use its guidelines portal asks readers to accept, in markdown
object
Example
{ "data": { "visibility": "private", "portals": [ { "access": "public" } ] }}default
Section titled “default”An error
object
object
Examplegenerated
{ "error": { "code": "example", "message": "example", "detail": "example" }}