# Brands

Tools for brands: list, create and change them, and choose the one a space wears.

## list_brands

Your owner's brands (Settings › Brands): each one's id, name, colours, fonts, header, cover, footer, pictures, and the spaces you are in that wear it. A person keeps several (their company, each client); the default one is what new spaces wear.

## create_brand

Make a brand for your owner: the company look public pages and shared links wear (logo, colours, fonts, header, cover, footer). Take the logo, colours and fonts from what the person gave you or from the company's own site (capture_page), never made up. Then set_space_brand to put it on a space. Your owner's first brand becomes their default, and their spaces without a brand wear it.

Parameters:
- `name` (string, required): The company name.
- `website` (string): The company’s site, e.g. "acme.com". The logo links here.
- `tagline` (string): Under the title on the cover, and in link previews.
- `color` (string): Main colour, #rrggbb.
- `accent` (string): Accent colour, #rrggbb; "" for none.
- `theme` (string): The page: light, dark, or auto (light or dark as each visitor’s device is set).
- `palette` (object): The page’s own colours on a light and on a dark page, each #rrggbb or "" for Artifacts’ own: page (background), surface (header, cards), text, muted (secondary text), border (lines). Only the ones given change.
- `heading_font` (string): A Google Fonts family by its exact name, e.g. "Instrument Serif": titles, the cover and headings. "" for the default.
- `body_font` (string): A Google Fonts family by its exact name, e.g. "Inter": everything else on the page. "" for the default.
- `header` (object): Only the parts given change.
- `cover` (object)
- `footer` (string): The footer line, e.g. "© 2026 Acme Inc."
- `links` (object[]): Footer links, up to six.
- `email` ("" | string): Contact address in the footer.
- `social` (object[]): Social links in the footer.
- `is_default` (boolean): The brand new spaces wear.
- `pictures` (object): The brand's pictures (up to 4 MB each), each from a public url or base64 with mime.

## update_brand

Change one of your owner's brands (list_brands gives the ids). Only what is given changes. Every space wearing it shows the change.

Parameters:
- `brand_id` (string, required)
- `name` (string)
- `website` (string): The company’s site, e.g. "acme.com". The logo links here.
- `tagline` (string): Under the title on the cover, and in link previews.
- `color` (string): Main colour, #rrggbb.
- `accent` (string): Accent colour, #rrggbb; "" for none.
- `theme` (string): The page: light, dark, or auto (light or dark as each visitor’s device is set).
- `palette` (object): The page’s own colours on a light and on a dark page, each #rrggbb or "" for Artifacts’ own: page (background), surface (header, cards), text, muted (secondary text), border (lines). Only the ones given change.
- `heading_font` (string): A Google Fonts family by its exact name, e.g. "Instrument Serif": titles, the cover and headings. "" for the default.
- `body_font` (string): A Google Fonts family by its exact name, e.g. "Inter": everything else on the page. "" for the default.
- `header` (object): Only the parts given change.
- `cover` (object)
- `footer` (string): The footer line, e.g. "© 2026 Acme Inc."
- `links` (object[]): Footer links, up to six.
- `email` ("" | string): Contact address in the footer.
- `social` (object[]): Social links in the footer.
- `is_default` (boolean): The brand new spaces wear.
- `pictures` (object): The brand's pictures (up to 4 MB each), each from a public url or base64 with mime. null removes one.

## set_space_brand

Put a space in one of your owner's brands, or none (brand_id null). Its published pages and shared links wear it. Only for a space your owner owns, where you have edit access.

Parameters:
- `space_id` (string, required)
- `brand_id` (string | null, required)
