KuikCodeDocs
APIReferenceSites

Publish a hosted site

POST
/sites

Deploys a ZIP to https://{subdomain}.kuik.page/. The ZIP needs an index.html at its root (a single top folder is flattened). Static files only: HTML, CSS, JS, JSON, images, fonts, audio, video and PDF; anything else, such as .php, is skipped and listed in skipped. Up to 300 files, 5 MB per file and 15 MB in total. Counts against the plan's hosted site slots.

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/sites" \  -H "Content-Type: application/json" \  -d '{    "name": "string",    "subdomain": "string"  }'
{  "site": {    "id": "string",    "name": "string",    "subdomain": "string",    "url": "string",    "version": 0,    "fileCount": 0,    "totalSize": 0,    "previewUrl": "string",    "usedBy": 0,    "createdAt": "2019-08-24T14:15:22Z",    "updatedAt": "2019-08-24T14:15:22Z"  },  "skipped": [    "string"  ]}