KuikCodeDocs
APIReferencePages

Create a KuikPage

POST
/pages

Creates a draft KuikPage from a template: templateId for a curated one or orgTemplateId for a saved one (see GET /page-templates). The address {subdomain}.kuik.page is claimed now and goes live on publish. Counts against the plan's KuikPages.

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/pages" \  -H "Content-Type: application/json" \  -d '{    "name": "string",    "subdomain": "string"  }'
{  "id": "string",  "name": "string",  "subdomain": "string",  "status": "draft",  "revision": 0,  "previewUrl": "string",  "pages": [    {      "id": "string",      "name": "string",      "slug": "string",      "icon": "string",      "previewUrl": "string",      "blocks": [        {          "property1": null,          "property2": null        }      ]    }  ],  "theme": {    "property1": null,    "property2": null  },  "nav": {    "property1": null,    "property2": null  }}