Create codes
Creates one dynamic code, or up to 1,000 at once.
Send an object for one code, or an array for several (Pro). The response's shortLink is what the QR code encodes: point it somewhere else later with PATCH and the printed code keeps working. Render it with the image API, for example https://api.qrdx.dev/v1/qr?data=<shortLink>. Free workspaces have 10 active codes. Create requests are limited to 20 a minute.
An array is all or nothing: when any row has a problem, nothing is created and data.details lists every problem by index. Generated back-halves never repeat within a batch or clash with existing codes. Send an Idempotency-Key so a retry after a timeout returns the codes the first try made (Idempotent-Replayed: true) and finishes one that was cut off, instead of creating them twice. Prefer: return=minimal leaves each code's style out of the response.
Scope: codes:write, for API keys and OAuth tokens alike.
AuthorizationBearer <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.
Idempotency-Key?stringA unique value per batch, such as a UUID. Retrying with the same key and the same codes returns the codes the first request created instead of creating them again; a request cut off part way is finished by its retry.
^[\x21-\x7e]+$1 <= length <= 255Prefer?stringSend return=minimal to get each created code without its style (id, slug, links, destination, title, status, createdAt): smaller responses for large batches.
application/json- body
A new dynamic QR code
destinationUrl*stringWhere a scan sends people: a full http(s) URL, up to 2,048 characters
1 <= length <= 2048title?|Name shown in the dashboard, up to 100 characters
style?|nulldomainId?|nullslug?|nullCreated: { data: Code } for an object, { data: Code[] } for an array
application/json- response
data*A dynamic QR code
curl -X POST 'https://api.qrdx.dev/v1/codes' \ -H 'Idempotency-Key: 6f1c2a9e-0b7d-4c1e-9a55-spring-tables' \ -H 'Content-Type: application/json' \ -d '{ "destinationUrl": "https://example.com/menu", "title": "Spring menu"}'{ "data": { "id": "cm5code0spring0menu00001", "slug": "aB3dE5f", "shortLink": "https://qrdx.dev/q/aB3dE5f", "defaultShortLink": "https://qrdx.dev/q/aB3dE5f", "nfcLink": "https://qrdx.dev/q/aB3dE5f?nfc", "domain": null, "destinationUrl": "https://example.com/menu", "title": "Spring menu", "contentType": "url", "kind": "redirect", "pageId": null, "status": "active", "style": { "fgColor": "#111827", "bgColor": "#ffffff", "bodyPattern": "circle", "cornerEyePattern": "rounded", "level": "Q" }, "scanCount": 128, "lastScannedAt": "2026-01-12T18:04:11.000Z", "archivedAt": null, "createdAt": "2026-01-05T09:30:00.000Z", "updatedAt": "2026-01-05T09:30:00.000Z", "organizationId": null, "preciseLocation": false }}Last updated on