Skip to content

QR codes

GET /v1/links/{code}/qr — scope qr

Returns the link’s QR code as plain SVG — built for automation: print pipelines, labels, generated documents. (Brand-styled codes live in the console’s QR Studio; this endpoint is the unstyled, maximum-compatibility version.)

Query param Default Notes
scale 8 Module size, 1–40
Terminal window
curl "https://api.neon.xengo.io/v1/links/spring24/qr?scale=10" \
-H "Authorization: Bearer $XENGO_API_KEY" > spring24.svg

Response: Content-Type: image/svg+xml, medium error correction.

Two behaviours worth knowing:

  • The SVG encodes the link’s short URL, so the code is dynamic — PATCH the link’s destination and every printed copy re-points.
  • Responses are Cache-Control: no-store on purpose: the target is re-pointable, so nothing should cache stale assumptions about it.