QR Code API
Create and update dynamic QR codes from your own code. API access is enabled on request for Enterprise teams, and it's included in the Enterprise plan at $49/month.
Generate on demand
Create a link code with one request and get its slug and scan URL back. Download it as an SVG or PNG with a second request. Set a brand on your team page and every image carries it.
Update dynamic codes
Every code is dynamic. Repoint a printed code from your own systems and the code itself never changes. Each change shows up in the code's history.
Keep a list in sync
List your team's codes with their scan counts, 50 at a time, and match them against a catalog, a CMS, or an internal tool.
Who it's for
Enterprise teams that keep link codes in sync with their own system, like a product catalog or a CMS. If you're making codes one at a time, the dashboard is quicker. For your first big import, use bulk save into your team, then let the API take over.
The API covers link codes only for now. Other code types, scan analytics, webhooks and delete stay in the dashboard.
Quick start
Once we've switched on API access for your team, you get a key that starts with pqr_. Send it as a bearer token. Every response is JSON, and errors look like { "error": "..." }.
Create a code
curl -X POST https://proqr.codes/api/v1/codes \
-H "Authorization: Bearer pqr_..." \
-H "Content-Type: application/json" \
-d '{"url": "https://example.com/shelf-a", "title": "Shelf A"}'
Returns 201 with the code: slug, title, content_type, url, scan_url, scans, created_at and updated_at. Creating isn't idempotent, so always send a unique title, like your own item id. After a timeout, list your newest codes and match on title and url before you retry.
List codes
curl https://proqr.codes/api/v1/codes \
-H "Authorization: Bearer pqr_..."
Newest first, 50 per page, as { "codes": [...], "next_before": 123 }. Pass ?before=123 for the next page. next_before is null on the last page.
Show a code
curl https://proqr.codes/api/v1/codes/SLUG \
-H "Authorization: Bearer pqr_..."
Repoint or rename a code
curl -X PATCH https://proqr.codes/api/v1/codes/SLUG \
-H "Authorization: Bearer pqr_..." \
-H "Content-Type: application/json" \
-d '{"url": "https://example.com/shelf-b"}'
Send url, title, or both, and either both change or neither does. A title can be up to 255 characters. A new destination is recorded in the code's history as "Updated via API", and a new name as a rename.
Get the image
curl https://proqr.codes/api/v1/codes/SLUG.svg \
-H "Authorization: Bearer pqr_..." -o code.svg
curl https://proqr.codes/api/v1/codes/SLUG.png \
-H "Authorization: Bearer pqr_..." -o code.png
The image uses your team's brand when you've set one on the team page. It encodes the code's scan URL, so it stays valid when you repoint.
Rate limits
300 JSON requests per minute per team and 60 image requests per minute per team. Image requests also share a site-wide limit, so a 429 can come below 60 a minute. Every 429 has a Retry-After header. Honour it and retry. Failed key attempts are limited to 20 per 5 minutes per IP address.
API FAQ
No. API access is on request, for Enterprise teams. Ask us and we'll switch it on for your team and share the key.
Nothing extra. It's included in the Enterprise plan at $49/month.
Yes. Every code you save is dynamic, so you can point a printed code somewhere new with one PATCH request, and the code never changes.
It creates, lists, shows and repoints link codes, and returns each code as an SVG or PNG image in your team's brand, once you've set one on the team page. Other code types, scan analytics, webhooks and delete aren't in the API yet. You can still do those in the dashboard.
300 JSON requests per minute per team, and 60 image requests per minute per team. Image requests also share a site-wide limit, so you can occasionally get a 429 below 60 a minute. Any 429 comes with a Retry-After header: wait that long, then retry. Failed key attempts are limited to 20 per 5 minutes per IP address.
Creating a code isn't idempotent, so retrying blindly can leave a duplicate. Always send a unique title, like your own item id. After a timeout, list your newest codes and match on title and url before you try again.
Use bulk save in the dashboard to put the first batch into your team, then keep codes in sync with the API from there.
Ready to build?
API access is enabled on request for Enterprise teams. Tell us what you're building and we'll switch it on for your team.
Request API access