KuikCodeDocs
APIReferenceImages

Add an image

POST
/images

Stores an image in the workspace Library, from a public https URL or as base64, and returns its CDN URL for KuikPage blocks. PNG, JPEG, WebP or SVG; raster images are re-encoded to WebP and capped at 2400 px on the long edge.

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/images" \  -H "Content-Type: application/json" \  -d '{    "url": "http://example.com"  }'
{  "id": "string",  "url": "string",  "width": 0,  "height": 0}