KuikCodeDocs
APIReferenceCodes

Download the code's artwork

GET
/codes/{id}/image

The finished design as an image: frame, stickers, logo and all, exactly what the dashboard downloads. PNG and JPG at the requested pixel size, SVG as vectors with the frame embedded as a raster. Mesh shader frames render as a gradient.

AuthorizationBearer <token>

An API key from Settings, Developers: Authorization: Bearer kc_live_...

In: header

Path Parameters

id*string
Length1 <= length

Query Parameters

format?string
Default"png"

Value in

  • "png"
  • "svg"
  • "jpg"
size?integer

Edge length in pixels for png and jpg; the drawing resolution for svg.

Range256 <= value <= 4096
Default1024
background?string

Hex colour behind the code for jpg (no alpha channel). Default white.

Match^[0-9a-fA-F]{6}$

Response Body

application/json

curl -X GET "https://example.com/codes/string/image"
"string"