KuikCodeDocs
APIReferenceDesign

Preview Auto Design variants

POST
/design/auto

Reads a website's brand colours (its stylesheet and brand image) or takes a palette, and renders four designed variants. Pick one and create the code with design: { kind: "auto", url, batch, index }. Pass index and colors to see one variant in your own colours before creating it. Twelve calls per minute per key.

AuthorizationBearer <token>

An API key from Settings, Developers: Authorization: Bearer kc_live_...

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/design/auto" \  -H "Content-Type: application/json" \  -d '{}'
{  "palette": [    "string"  ],  "batch": 0,  "variants": [    {      "index": 0,      "archetype": "string",      "previewUrl": "string",      "scanVerified": true    }  ]}