| Call | Does |
|---|---|
| create({ name, … }) | Creates a brand, with its logos and colors if you have them. |
| list() | Every brand of the account, as summaries. |
| get(id) | One brand, complete. |
| remove(id) | Deletes it, with its logos and resources. |
const brand = await api.brand.create({
name: "Qahwa Lab",
description: "Specialty coffee roasted in Tunis",
logos: [{ path: "./logo.svg", main: true }],
});
console.log(brand.palette.colors); // extracted from the main logo
console.log(brand.completeness); // { done: 3, total: 9, missing: [...] }brand = api.brand.create(
name="Qahwa Lab",
description="Specialty coffee roasted in Tunis",
logos=[{"path": "logo.svg", "main": True}],
)
print(brand.palette.colors) # extracted from the main logo
print(brand.completeness) # {"done": 3, "total": 9, "missing": [...]}Five blocks
| Block | Holds |
|---|---|
identity | Tagline, long description, sector, languages, founding year, domain and social links. |
logos | Up to 12 logos, one of them the main logo. |
palette | Up to 12 colors with their roles, and the typography. |
platform | Mission, vision, values, positioning, promise, audiences, archetype, voice and key messages. |
enterprise | Shown, not defined yet: it is always null. |
A logo is a vector or a file you own
Never a generated picture. An agent that draws a logo writes an SVG and adds it. An SVG that carries a script, an event handler, embedded HTML or any external link is refused with unsafe_svg — it is not cleaned, because a cleaned file is not the file you sent.
Contrast is computed, not estimated
Each color comes back with its CMYK values, the text color that reads on it, and its contrast level against white and black. Without a palette, colors are extracted from the main logo, after the background is read in its corners and set aside.
Where the files live
Logos and resources are stored in the account's Object Storage, under brands/<id>/, and count against its space. Removing one frees its bytes.