POST

Add a brand color

Adds a color to the editor's brand kit, which every user of the editor gets.

View as Markdown
POSThttps://api.muzekit.com/v1/brand/colors
curl https://api.muzekit.com/v1/brand/colors \
  -H "Authorization: Bearer $MUZEKIT_SECRET_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "value": "#3B6EF5", "name": "Primary" }'

Body

valuestringrequired

A six-digit hex color, like #3B6EF5. Stored in upper case.

namestring

A label shown in the editor, up to 60 characters.

The brand kit is the editor's, so Test and Live keys add to the same one. A value that isn't a hex color is refused with 400 invalid_color. Images and fonts go in with Upload an asset and "brand": true; see the whole kit with Get the brand kit.

Examples

Add your palette

One request adds one color, so loop over the palette. The same value sent twice gives two entries; see Add only the colors that are missing.

for PAIR in "#3B6EF5:Primary" "#E8553D:Coral" "#111827:Ink"; do
  curl -s https://api.muzekit.com/v1/brand/colors \
    -H "Authorization: Bearer $MUZEKIT_SECRET_KEY" \
    -H "Content-Type: application/json" \
    -d "{ \"value\": \"${PAIR%%:*}\", \"name\": \"${PAIR#*:}\" }"
done

Set up a brand kit for a new editor

A full kit is colors, a logo and a font. Colors go in here; the logo and the font are uploads with "brand": true (the font with its family). Every end user gets them in their next session.

AUTH="Authorization: Bearer $MUZEKIT_SECRET_KEY"
API=https://api.muzekit.com/v1

# Colors
curl -s $API/brand/colors -H "$AUTH" -H "Content-Type: application/json" \
  -d '{ "value": "#3B6EF5", "name": "Primary" }'

# Logo
URL=$(curl -s $API/assets/uploads -H "$AUTH" -H "Content-Type: application/json" \
  -d '{ "name": "logo.png", "type": "image/png", "brand": true }' \
  | jq -r .upload_url)
curl -X PUT "$URL" -H "Content-Type: image/png" --data-binary @logo.png

# Font
URL=$(curl -s $API/assets/uploads -H "$AUTH" -H "Content-Type: application/json" \
  -d '{
    "name": "Acme-Bold.woff2",
    "type": "font/woff2",
    "family": "Acme",
    "brand": true
  }' \
  | jq -r .upload_url)
curl -X PUT "$URL" -H "Content-Type: font/woff2" --data-binary @Acme-Bold.woff2

Response

JSON
{
  "object": "asset",
  "id": "ast_dQC3Z8RgqAH",
  "kind": "color",
  "name": "Primary",
  "url": null,
  "value": "#3B6EF5",
  "type": null,
  "size": null,
  "width": null,
  "height": null,
  "family": null,
  "created_at": "2026-10-17T02:10:00.000Z"
}