The look a portal borrows from its brand
GET
/api/v1/sites/look
const url = 'http://localhost:3000/api/v1/sites/look';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/sites/look \ --header 'Authorization: Bearer <token>'A portal’s empty logo or accent is its first brand’s when served, from the brand’s live release: this is that logo and accent, for a form to show before the portal is saved. A portal sets its own to override them (white-label).
Scope: write.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”brand
string
The brand the portal shows first, by slug
Responses
Section titled “Responses”The look
Media typeapplication/json
object
data
required
object
logo
required
The brand’s mark, an asset id: its logo rule named mark, icon or symbol, else its first logo with an image; null: none
string | null
accent
required
The brand’s color.primary, else its first color; null: none
string | null
Examplegenerated
{ "data": { "logo": "example", "accent": "example" }}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" }}