Skip to content
Power301/API
Sign inGet API key
Links · links.qr
GET/links/{id}/qrlinks.qr

Get a link's QR code

The code the dashboard draws for the link: its saved QR style (or the default one), the workspace logo in the centre when the style asks for it, and the readable link under it. It encodes the link with ?utm_source=qr, so scans are counted apart from clicks.

Base URL
https://api.power301.com/v1
Auth
Bearer token
Idempotent
Yes
Returns
image/svg+xml

The request

Call GET /links/{id}/qr with your bearer token. The id path segment identifies the record. Narrow or order the result with the query parameters below.

# Get a link's QR code
curl "https://api.power301.com/v1/links/9f2a7c31-4b8e-4a02-9d1f-0c6b7e5a1d44/qr" \
  -H "Authorization: Bearer $POWER301_TOKEN"

Path parameters

ParameterDescription
idRequiredstring

Query parameters

ParameterDescription
formatoptionalstringThe image format. Default: svg.svgpng
widthoptionalintegerWidth of a PNG in pixels. Default: 1024.51210242048

The response

A 200 returns image/svg+xml — handle it as a download rather than a JSON payload.

{
  "message": "The given data was invalid."
}

Status codes

200
SuccessThe QR code, as SVG by default or as PNG with format=png.
401
UnauthenticatedUnauthenticated
422
Validation failedA field was rejected. errors lists every field with its reason.
429
Too many requestsToo many requests