QRdx
HelpGuidesDevelopersReact librarySelf-hosting

Download a saved barcode

A saved barcode as SVG (default), PNG, JPG, WebP, AVIF, PDF or EPS, drawn as saved: type picks the file and scale (1-10) overrides its raster scale. Private and not cached; it counts toward the daily quota. For an image anyone can load, use the barcode's imageUrl.

Scope: codes:read or codes:write, for API keys and OAuth tokens alike.

GET
/barcodes/{id}/image

Authorization

headerAuthorizationBearer <qrdx_ followed by 40 letters and digits>

An API key, sent as Authorization: Bearer qrdx_…. Create one in Settings → API keys & apps: it is shown once. A key acts on the workspace it was created in as its creator, with their current role there, and only within its scopes, the same scopes as OAuth (each operation names the one it needs). API keys.

Path Parameters

id*string

The barcode's id

Length1 <= length <= 64

Query Parameters

type?string

File type: svg (default), png, jpg, webp, avif, pdf or eps. Raster images are scale pixels per module; SVG, PDF and EPS are vectors at one point per module (0.353 mm).

Default"svg"
Value in"png""jpg""webp""avif""svg""pdf""eps"
scale?integer

Pixels per module in raster images (1-10, default 4)

Range1 <= value <= 10

Response Body

The image or file. Cache-Control: private, no-store.

response?string
Example Request
curl -X GET 'https://api.qrdx.dev/v1/barcodes/cm5barcode0spring0box0001/image'
Example Response
"<svg width=\"129.333mm\" height=\"55.333mm\" shape-rendering=\"crispEdges\" viewBox=\"0 0 388 166\" xmlns=\"http://www.w3.org/2000/svg\">…</svg>"

Last updated on