QRdx
HelpGuidesDevelopersReact librarySelf-hosting

Get a code

One dynamic code of the token owner's personal workspace.

GET
/codes/{id}

Authorization

oauth2 codes:read
headerAuthorizationBearer <token>

An OAuth 2.0 access token, sent as Authorization: Bearer <token>. Register an app in Settings → Developers, send the user through authorization (PKCE S256), then exchange the code for a token. Access tokens last 1 hour; refresh tokens 30 days. Step by step.

Scope: codes:read

Path Parameters

id*string

The code's id

Length1 <= length <= 64

Response Body

The code

application/json
  1. response
data*

A dynamic QR code

Example Request
curl -X GET 'https://api.qrdx.dev/v1/codes/cm5code0spring0menu00001'
Example Response
{  "data": {    "id": "cm5code0spring0menu00001",    "slug": "aB3dE5f",    "shortLink": "https://qrdx.dev/q/aB3dE5f",    "defaultShortLink": "https://qrdx.dev/q/aB3dE5f",    "domain": null,    "destinationUrl": "https://example.com/menu",    "title": "Spring menu",    "contentType": "url",    "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  }}

Last updated on