Render a static QR code
Draws a QR code as SVG, PNG, JPG, WebP or PDF. Static: the content is inside the pattern and nothing is stored.
Send either data (the exact string to encode) or a type with that type's own fields — never both. The key is checked, and counted against its rate limit, before any parameter is read.
frame, label and framecolor are refused by name: the API returns the code alone.
Request
- Base URL: https://app.qrsalt.com
- URL: https://app.qrsalt.com/api/qr
- Auth: HTTP bearer
Query parameters
The exact string to put in the code, at most 2000 bytes. Send this or a type, never both.
An alias of data, and the content field of type=text.
An alias of data.
The content type to build from its own fields. The lower-case names are the documented ones; the aliases beside them are accepted too.
type=url. Also an optional field of type=event.
type=wifi, required.
type=wifi.
type=wifi.
type=wifi. A checkbox: 1, true, on or yes is true.
type=email, required. Also an optional field of type=vcard.
type=email.
type=email.
type=email.
type=email.
type=phone and type=sms, required. Also an optional field of type=vcard.
type=phone.
type=sms.
type=vcard, required.
type=vcard.
type=vcard.
type=vcard (job title) and type=event (the event's title, required).
type=vcard.
type=vcard.
type=vcard.
type=vcard.
type=vcard.
type=vcard.
type=vcard.
type=vcard and type=payment.
type=gs1: the domain the Digital Link is built on.
type=gs1, required.
type=gs1.
type=gs1.
type=gs1.
type=review, required.
type=review, required.
type=location.
type=location.
type=location.
type=location.
type=event, required.
type=event.
type=event.
type=event. A checkbox: 1, true, on or yes is true.
type=event.
type=event.
type=payment, required.
type=payment.
type=payment.
type=payment.
type=payment.
jpeg is accepted as jpg.
Pixel width for SVG, PNG, JPG and WebP.
Printed width for the PDF, in millimetres.
Foreground, as a hex colour: 1F2937, #1F2937 or the three-digit forms.
Background, as a hex colour.
The finder patterns, as a hex colour.
Module shape. Sets a matching eye style unless eyes says otherwise.
Both halves of the finder patterns. Clears eyeframe and eyeball.
The ring of each finder pattern.
The centre of each finder pattern.
Clockwise turn of both halves of every finder pattern. Only the angles the renderer draws; anything else is refused rather than rounded.
Error-correction level.
Quiet zone in modules, not pixels.
Response
The image.
Changes
No recorded changes to this operation across all 1 revision of this API.