Get a hosted site
One hosted site with its address, deploy number and size.
Authorization
apiKey An API key from Settings, Developers: Authorization: Bearer kc_live_...
In: header
Path Parameters
1 <= lengthResponse Body
application/json
application/json
curl -X GET "https://example.com/sites/string"{ "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"}Publish a hosted site POST
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.
Stage a large ZIP POST
For ZIPs over about 3 MB. Returns a presigned URL: PUT the ZIP bytes there with `Content-Type: application/zip` and the exact `Content-Length` you declared, within 10 minutes, then pass `uploadId` to POST /sites or POST /sites/{id}/deploy. Each upload deploys once; one that is never deployed is deleted after a day.