QRdx
HelpGuidesDevelopersReact librarySelf-hosting

API reference

Every QRdx REST API endpoint, with code samples in curl, JavaScript and Python and a Try it panel that sends real requests.

Every endpoint of the QRdx REST API, generated from its OpenAPI 3.1 document, which is built from the same schemas the API validates requests with. Each page has code samples in curl, JavaScript and Python, and a Try it panel that sends real requests.

New to the API? The quickstart gets you from nothing to a first request in under two minutes.

Base URL

https://api.qrdx.dev/v1

The same routes also answer at https://qrdx.dev/api/v1. Requests and responses are JSON, except the image API, which returns images.

Try it

Try it sends real requests from your browser to this site's /api/v1 (the same API as api.qrdx.dev/v1), and never with your QRdx sign-in cookie:

Requests made with a token act on real data in the token owner's personal workspace and count against its daily quota, exactly as they would from your own code.

Authentication

Send an OAuth 2.0 access token in the Authorization header. Each endpoint below lists the scope it needs; codes:write also allows everything codes:read does. API keys aren't available yet, so for now you get a token by registering an OAuth app: see REST API and OAuth.

Errors and limits

Errors are JSON: { "code", "message", "status" }, plus docs when a page explains the fix. The errors page lists every code with its fix. Each workspace has a daily request quota, reported in the X-RateLimit-* headers; see rate limits.

Endpoints

QR images

Keyless QR code images for <img> tags, emails and scripts.

EndpointRequestScope
Render a QR code imageGET /qrNone

Codes

Dynamic QR codes: a short link you can point anywhere after printing.

EndpointRequestScope
List codesGET /codescodes:read
Create codesPOST /codescodes:write
Get a codeGET /codes/{id}codes:read
Update a codePATCH /codes/{id}codes:write
Delete a codeDELETE /codes/{id}codes:write

Scans

Scan analytics of a code.

EndpointRequestScope
Get scan analyticsGET /codes/{id}/scanscodes:read

Conversions

Sales and sign-ups attributed to the scan behind them.

EndpointRequestScope
Report a conversionPOST /conversionscodes:write

Hooks

REST Hooks subscriptions for Zapier, Make and n8n.

EndpointRequestScope
List hooksGET /hookscodes:read
Subscribe to eventsPOST /hookscodes:write
Get a hookGET /hooks/{id}codes:read
UnsubscribeDELETE /hooks/{id}codes:write
Get sample eventsGET /hooks/samplecodes:read

Themes

The user's saved QR designs.

EndpointRequestScope
List themesGET /themesthemes:read
Get a themeGET /themes/{themeId}themes:read

Profile

The user behind the token.

EndpointRequestScope
Get the token's userGET /meprofile:read

OpenAPI document

Download the document at https://qrdx.dev/openapi.json (also served at https://api.qrdx.dev/openapi.json) to generate a client, import the API into Postman or Insomnia, or give an AI agent the full contract.

Last updated on

On this page