api.brand

Overview

A brand is what every other surface follows: its identity, its logos, its colors and typography, and how it speaks. Creating and reading one costs nothing.

4 methodsfreeSDK 0.4.6+
Using Python?

Switch any code block to Python: the choice applies to every page. Python SDK guide and resource reference.

CallDoes
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

BlockHolds
identityTagline, long description, sector, languages, founding year, domain and social links.
logosUp to 12 logos, one of them the main logo.
paletteUp to 12 colors with their roles, and the typography.
platformMission, vision, values, positioning, promise, audiences, archetype, voice and key messages.
enterpriseShown, not defined yet: it is always null.

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.