POST/v1/brands
Save a brand kit: colours, fonts, logo and values that fill {{brand.…}} placeholders
Put {{brand.color.primary}} in a layer's fill, {{brand.font.heading}} in its font, {{brand.logo}} in an image's src, {{brand.website}} in a text, and one template renders in any brand: pass brand with a render, or make one brand the default. A SaaS keeps a brand per customer; an agency, per client. The response's variables lists every placeholder the brand fills.
REQUEST BODY · APPLICATION/JSON · REQUIRED
{
"name": "Acme",
"default": true,
"logo": "https://img.imageapis.com/u/upl_4kq8wz2mhxtd7vbn3rce.png",
"colors": {
"primary": "#4f46e5",
"background": "#0f172a",
"text": "#ffffff"
},
"fonts": {
"heading": "Playfair Display",
"body": "Inter"
},
"values": {
"website": "acme.com",
"tagline": "Rockets, mostly"
}
}
REQUEST
curl -X POST "https://api.imageapis.com/v1/brands" \
-H "X-API-Key: YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Acme",
"default": true,
"logo": "https://img.imageapis.com/u/upl_4kq8wz2mhxtd7vbn3rce.png",
"colors": {
"primary": "#4f46e5",
"background": "#0f172a",
"text": "#ffffff"
},
"fonts": {
"heading": "Playfair Display",
"body": "Inter"
},
"values": {
"website": "acme.com",
"tagline": "Rockets, mostly"
}
}'
import requests
r = requests.post("https://api.imageapis.com/v1/brands", headers={"X-API-Key": "YOUR_KEY"}, json={
"name": "Acme",
"default": True,
"logo": "https://img.imageapis.com/u/upl_4kq8wz2mhxtd7vbn3rce.png",
"colors": {
"primary": "#4f46e5",
"background": "#0f172a",
"text": "#ffffff"
},
"fonts": {
"heading": "Playfair Display",
"body": "Inter"
},
"values": {
"website": "acme.com",
"tagline": "Rockets, mostly"
}
})
print(r.status_code, r.headers.get("X-Gw-Remaining"))
print(r.json())
const r = await fetch("https://api.imageapis.com/v1/brands", {
method: "POST",
headers: { "X-API-Key": "YOUR_KEY", "Content-Type": "application/json" },
body: JSON.stringify({
"name": "Acme",
"default": true,
"logo": "https://img.imageapis.com/u/upl_4kq8wz2mhxtd7vbn3rce.png",
"colors": {
"primary": "#4f46e5",
"background": "#0f172a",
"text": "#ffffff"
},
"fonts": {
"heading": "Playfair Display",
"body": "Inter"
},
"values": {
"website": "acme.com",
"tagline": "Rockets, mostly"
}
})
});
console.log(r.status, r.headers.get("X-Gw-Remaining"));
console.log(await r.json());
RESPONSE
201Created
{
"id": "brand_6tq2mz8wkxhd4vbn7rce",
"object": "brand",
"name": "Acme",
"default": true,
"logo": "https://img.imageapis.com/u/upl_4kq8wz2mhxtd7vbn3rce.png",
"colors": {
"primary": "#4f46e5",
"background": "#0f172a",
"text": "#ffffff"
},
"fonts": {
"heading": "Playfair Display",
"body": "Inter"
},
"images": {},
"values": {
"website": "acme.com",
"tagline": "Rockets, mostly"
},
"variables": {
"brand.name": "Acme",
"brand.logo": "https://img.imageapis.com/u/upl_4kq8wz2mhxtd7vbn3rce.png",
"brand.color.primary": "#4f46e5",
"brand.color.background": "#0f172a",
"brand.color.text": "#ffffff",
"brand.font.heading": "Playfair Display",
"brand.font.body": "Inter",
"brand.website": "acme.com",
"brand.tagline": "Rockets, mostly"
},
"created": "2026-10-12T18:00:00Z",
"updated": "2026-10-12T18:00:00Z"
}
401Missing or invalid API key (from the gateway)
404No such template or record on this account
{
"error": "string",
"message": "string",
"param": "string"
}