remagicaDocs home
API referenceBrand kits

Create a brand kit from a sample

POST
/brand-kits/from-sample

Needs a key withbrand:write

Copies a sample brand kit (GET /brand-kits/samples) into a kit of your own to edit or use.

Requires scope brand:write.

Authorization

apiKey
headerx-api-key<token>

An API key of your workspace (rmg_…), created in the web app. It acts for that workspace, not for a person, and keeps working when its creator leaves.

Request Body

application/json
  1. body
scope?string

Where the new kit goes: your Private kits (default) or the Team.

Default"private"
Value in"private""team"
slug*string
Length1 <= length <= 80

Response Body

The new kit.

application/json
  1. response
brandKit*

A brand kit.

summarised*boolean

Whether a language model wrote its sections; when false it holds only what was found (name, colours, fonts, pictures).

Example Request
curl -X POST 'https://api.remagica.com/api/v1/brand-kits/from-sample' \  -H 'Content-Type: application/json' \  -d '{  "slug": "fernwood-coffee"}'
Example Response
{  "brandKit": {    "createdAt": "2026-10-21T12:00:00.000Z",    "id": "a5614527-5b3d-4f60-8e2a-1d9c6b4f7e05",    "ownerUserId": "ba132481-5b3d-4f60-8e2a-1d9c6b4f7e05",    "scope": "private",    "updatedAt": "2026-10-21T12:00:00.000Z",    "colors": [      {        "hex": "#ff8800",        "name": "Sunrise"      }    ],    "donts": [      "string"    ],    "dos": [      "string"    ],    "fonts": [      {        "family": "Inter",        "role": "display"      }    ],    "guidelines": "string",    "logos": [      {        "height": 1280,        "key": "generations/e661f4c9-5b3d-4f60-8e2a-1d9c6b4f7e05/0.png",        "libraryItemId": "17c56002-5b3d-4f60-8e2a-1d9c6b4f7e05",        "width": 1024,        "contentType": "image/png",        "url": "https://files.remagica.com/generations/e661f4c9-5b3d-4f60-8e2a-1d9c6b4f7e05/0.png"      }    ],    "mission": "string",    "name": "Autumn campaign",    "photography": {      "colorTreatment": [        "string"      ],      "composition": [        "string"      ],      "lighting": [        "string"      ],      "mood": [        "string"      ]    },    "references": [      {        "height": 1280,        "key": "generations/e661f4c9-5b3d-4f60-8e2a-1d9c6b4f7e05/0.png",        "libraryItemId": "17c56002-5b3d-4f60-8e2a-1d9c6b4f7e05",        "width": 1024,        "contentType": "image/png",        "url": "https://files.remagica.com/generations/e661f4c9-5b3d-4f60-8e2a-1d9c6b4f7e05/0.png"      }    ],    "sourceUrl": "https://files.remagica.com/generations/e661f4c9-5b3d-4f60-8e2a-1d9c6b4f7e05/0.png",    "spacing": {      "notes": "string",      "preset": "compact"    },    "tone": "string",    "values": [      "string"    ]  },  "summarised": true}