Browse documentation
QR Code API: Create Codes and Read Scans
Updated
The QRelix API lets your own software create dynamic QR codes, change where they point, read their scans and statistics, and download their images. It's the same API the QRelix apps for Zapier and Make use.
Not a developer? You probably don't need the API. Zapier and Make let you connect QRelix to thousands of apps without code, and webhooks send scans to another app as they happen.
The API, API keys, Zapier, and Make are part of the QRelix Team Plan ($19/month). Requests from a Free or Pro workspace get a 403 team_required error. Compare plans.
Prefer to watch? The video guide walks through these steps, and the printable PDF guide has the same steps with screenshots.
Quick start
1. Create an API key
- Go to Integrations at qrelix.com/dashboard/integrations. You need to be an owner or admin of a Team workspace.
- In the API keys card, click Create key.
- Enter a Name that says where the key is used, such as "Zapier" or "Website".
- Under Permissions, leave only the boxes the integration needs (see Permissions).
- Click Create key, then copy the key from the Copy your API key dialog. It starts with
qrx_and is shown only once. Store it in a password manager or your app's secret settings.
To stop a key working, click Revoke next to it. A workspace can have up to 10 active keys, and each key acts in the workspace where it was created.
2. Make your first request
Send the key in the Authorization header:
curl https://www.qrelix.com/api/v1/me \
-H "Authorization: Bearer qrx_your_key_here"
A 200 response with your account details means the key works.
3. Create a QR code
curl https://www.qrelix.com/api/v1/qr-codes \
-H "Authorization: Bearer qrx_your_key_here" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: spring-menu-001" \
-d '{
"type": "URL",
"name": "Spring menu",
"url": "https://example.com/menu"
}'
The response (201) includes the new code's id, its imageUrl, and its landingUrl (the address encoded in the QR image).
4. Change where it points
curl -X PATCH https://www.qrelix.com/api/v1/qr-codes/clz0example0000qrcode \
-H "Authorization: Bearer qrx_your_key_here" \
-H "Content-Type: application/json" \
-d '{ "url": "https://example.com/summer-menu" }'
The printed code now opens the new page.
Base URL and format
- Base URL:
https://www.qrelix.com/api/v1 - Requests and responses are JSON over HTTPS, except
/qr-codes/{id}/image, which returns an SVG, PNG, or JPG file. - Machine-readable spec (OpenAPI 3.1):
https://www.qrelix.com/api/v1/openapi.json. Import it into Postman, Insomnia, or a code generator. - Interactive overview: qrelix.com/developers.
Permissions
Each key has one or more permissions (scopes). A request outside the key's permissions returns 403 insufficient_scope.
| Permission in the dashboard | Scope | Allows |
|---|---|---|
| Read QR codes | qr:read |
List and read codes, download images |
| Create and edit QR codes | qr:write |
Create, update, and archive codes |
| Read scan analytics | stats:read |
Read scans and statistics |
| Manage webhooks | webhooks:manage |
Create, change, and delete webhook endpoints |
Endpoints
| Method | Path | Scope | What it does |
|---|---|---|---|
GET |
/me |
any | The account and key making the request. |
GET |
/qr-codes |
qr:read |
List codes, newest first. |
POST |
/qr-codes |
qr:write |
Create a code. |
GET |
/qr-codes/{id} |
qr:read |
One code. |
PATCH |
/qr-codes/{id} |
qr:write |
Update a code's name, description, destination, category, or status. |
DELETE |
/qr-codes/{id} |
qr:write |
Archive a code. Printed copies stop working. |
GET |
/qr-codes/{id}/image |
qr:read |
The QR image. Query: format (svg, png, jpg), size (64–4096), download=true. |
GET |
/qr-codes/{id}/scans |
stats:read |
Recent scans, newest first. Query: limit (1–100, default 25). |
GET |
/qr-codes/{id}/stats |
stats:read |
Totals, a time series, and breakdowns. Query: from, to (ISO 8601, up to 366 days, default last 30), interval (day, week, month). |
GET |
/events |
any | The webhook events, each with a sample payload. |
GET |
/webhooks |
webhooks:manage |
List webhook endpoints. |
POST |
/webhooks |
webhooks:manage |
Create an endpoint. The response includes its signing secret, once. |
GET |
/webhooks/{id} |
webhooks:manage |
One endpoint. |
PATCH |
/webhooks/{id} |
webhooks:manage |
Change an endpoint's URL, events, QR code filter, or enabled state. |
DELETE |
/webhooks/{id} |
webhooks:manage |
Delete an endpoint (204). |
GET |
/openapi.json |
none | The OpenAPI spec. |
Creating codes
POST /qr-codes takes a type, a name (up to 120 characters), and the fields for that type. You can also pass description, categoryId, design, and security.
type |
Fields |
|---|---|
URL |
url |
WIFI |
wifi: ssid, password, encryption, hidden, dynamic |
V_CARD |
vcard: firstName, lastName, phone, email, company, jobTitle, website, address |
EMAIL |
email: address, subject, body |
PHONE |
phone: number, action (call or sms) |
NOTE |
note: text |
MAPS |
maps: address, label |
APP_STORES |
appStores: appleUrl, googleUrl |
CALENDAR |
calendar: title, start, end, allDay, timeZone, location, description |
FILE |
file: name, contentBase64, preset, rightsConfirmed: true |
| Social, messaging, payment, and review types | link: source, contentType, amount, note |
security takes one of { "type": "password", "password": "..." }, { "type": "expiration", "expiresAt": "2026-12-31T23:59:00Z" }, or { "type": "maxScans", "maxScans": 100 }.
V_CARD, NOTE, CALENDAR, FILE, and dynamic WIFI codes open a hosted page built from these fields. Responses keep the type you sent and add urlMode: "PAGE", pageId, and pageUrl. Updating calendar on a CALENDAR code updates its page too; sending a new url makes the code a single link instead.
The full schema for each type, including design options, is in the OpenAPI spec.
Listing codes
curl "https://www.qrelix.com/api/v1/qr-codes?limit=50&status=ACTIVE" \
-H "Authorization: Bearer qrx_your_key_here"
limit: 1 to 100, default 50.cursor: pass thenextCursorfrom the previous response to get the next page.nextCursorisnullon the last page.status:ACTIVE,DISABLED,INACTIVE(from an earlier Free plan rule; free codes no longer pause, and these return toACTIVEon their own), orEXPIRED.
Each code includes id, name, description, type, subType, status, destinationUrl, urlMode, roundRobinUrls, scanCount, categoryId, imageUrl, landingUrl, dashboardUrl, expiresAt, createdAt, and updatedAt.
Reading statistics
curl "https://www.qrelix.com/api/v1/qr-codes/clz0example0000qrcode/stats?interval=week" \
-H "Authorization: Bearer qrx_your_key_here"
{
"data": {
"qrCodeId": "clz0example0000qrcode",
"from": "2026-09-14T00:00:00.000Z",
"to": "2026-10-14T00:00:00.000Z",
"interval": "week",
"totals": { "scans": 214, "uniqueVisitors": 167, "allTimeScans": 1290 },
"series": [{ "date": "2026-09-14", "scans": 48 }],
"breakdowns": {
"countries": [{ "value": "US", "scans": 190 }],
"devices": [{ "value": "iPhone", "scans": 120 }],
"operatingSystems": [{ "value": "iOS", "scans": 120 }],
"browsers": [{ "value": "Safari", "scans": 101 }],
"referrers": []
}
}
}
Safe retries with idempotency keys
Send an Idempotency-Key header (any unique string) on POST requests. If a network error makes you retry, QRelix returns the original result instead of creating a duplicate. Replayed responses carry Idempotent-Replayed: true. Keys are remembered for 24 hours.
Rate limits
Each key can make 120 requests per minute. Every response includes X-RateLimit-Limit, X-RateLimit-Remaining, and X-RateLimit-Reset. Over the limit you get 429 rate_limited with a Retry-After header that says how many seconds to wait.
Errors
Errors return a non-2xx status and this body:
{ "error": { "message": "This API key is invalid or has been revoked.", "code": "unauthorized" } }
Some errors add a field: field (which input was wrong), requiredScope, or upgradeUrl.
| Status | Code | What to do |
|---|---|---|
400 |
invalid_request |
Fix the input named in the message. |
401 |
unauthorized |
Send a valid key as Authorization: Bearer qrx_.... |
403 |
team_required |
Upgrade the workspace to Team. |
403 |
insufficient_scope |
Create a key with the permission named in requiredScope. |
403 |
key_owner_removed |
The person who created the key left the workspace. Create a new key. |
404 |
not_found |
Check the ID. It must belong to the key's workspace. |
409 |
conflict, idempotency_in_progress |
A limit was reached, or the same idempotency key is still processing. |
422 |
idempotency_key_reused |
Use a new idempotency key for a different request body. |
429 |
rate_limited |
Wait for Retry-After seconds. |
500 |
internal_error |
Retry with backoff. Contact support if it persists. |
502 |
image_unavailable |
The image couldn't be generated. Retry shortly. |
Limits
- 120 requests per minute per key.
- 10 active API keys and 20 webhook endpoints per workspace.
Frequently asked questions
Is the API included in Pro? No. The API, webhooks, Zapier, and Make are part of the Team Plan.
Can I create many codes at once?
Yes. Call POST /qr-codes once per code, with an Idempotency-Key on each, keeping under 120 requests a minute. If you use an AI assistant, the MCP server can also create up to 100 URL codes in one request.
How do I get scans in real time?
Subscribe a webhook endpoint to qr.scanned instead of polling the scans endpoint. See Webhooks.
Something isn't working. Open a ticket at qrelix.com/contact with the Team and API topic. Include the request path, the status code, and the time of the request (never your full API key).
Related articles
- Webhooks, Zapier & Make: real-time events and no-code automations
- MCP Server: manage codes from an AI assistant
- Team Workspaces: get the Team Plan and invite colleagues
Questions
- Does QRelix have an API?
- Yes. The REST API is on the Team plan, with scoped API keys and an OpenAPI description.
- Where can I integrate a QR code API into my systems?
- Anywhere that can send HTTPS requests, such as a website, a CRM, an internal tool, or a script. Create an API key in Integrations and call the endpoints listed on the developers page.
- Is there a rate limit on the QRelix API?
- Yes. Each API key can make 120 requests a minute.
