KuikCodeDocs
APIReferenceDesign

Preview a restyle of a code

POST
/codes/{id}/preview

Renders the code with new colours, shape or tweaks applied, without saving anything. Then PATCH the same fields to make it real.

AuthorizationBearer <token>

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

In: header

Path Parameters

id*string
Length1 <= length

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/codes/string/preview" \  -H "Content-Type: application/json" \  -d '{}'
{  "previewUrl": "string",  "warnings": [    "string"  ]}