Save a code's design as a template
Copies the code's design (not its destination) into a saved template the workspace can start new codes from, with the code's thumbnail as the preview. Counts against the plan's template ceiling.
Authorization
apiKey An API key from Settings, Developers: Authorization: Bearer kc_live_...
In: header
Path Parameters
1 <= lengthRequest Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
curl -X POST "https://example.com/codes/string/template" \ -H "Content-Type: application/json" \ -d '{ "name": "string" }'{ "id": "string", "name": "string", "previewUrl": "string"}Preview any design POST
Renders exactly what POST /codes would save for this `design` (a template with new colours, a plain code with a gold frame, an Auto Design variant with SCAN on top) without creating anything. Same render budget as /design/auto.
List templates GET
The designs a new code can start from: your workspace's saved templates plus KuikCode's system designs. Pass an id as `templateId` on POST /codes.