Make a listing yours
const url = 'http://localhost:3000/api/v1/hub/offers/example/example';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"slug":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url http://localhost:3000/api/v1/hub/offers/example/example \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "slug": "example" }'Take an offer: a brand in your project from the listing’s release (as Start from this brand), with its domain, released and public on BrandHub. The listing goes private, its address leads to yours for good, and its organization’s admins find a resolved claim and an audit entry. No brand moves between organizations. Organization admin, signed in.
Scope: admin.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”The listing’s organization
The listing’s brand
Request Body
Section titled “Request Body”object
The new brand’s slug in your project; the listing’s when left out
Examplegenerated
{ "slug": "example"}Responses
Section titled “Responses”Your brand, and where it is on BrandHub
object
object
Only grants on it, and admins, reach it in the app
Who sees it on BrandHub
The BrandHub brand it started from, as {org}/{brand}@{n}
Its own domain (acme.com): whoever proves it may claim its BrandHub listing
Claimed on BrandHub by whoever proved its domain: the listing that took its place, as {org}/{brand}
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
Example
{ "data": { "visibility": "private", "hub": { "visibility": "private" } }}default
Section titled “default”An error
object
object
Examplegenerated
{ "error": { "code": "example", "message": "example", "detail": "example" }}