QR Codes API

Create dynamic QR codes, change where they point, and download their images.

A QR code made through the API is live as soon as it's created. Its image holds a SeriousQR link (scan_url) rather than your destination, so you can change the destination later without reprinting, every scan shows up in your analytics, and your workspace's integrations (webhooks, GA4) run. URL and text codes also get a shorter shortlink for sharing in text, emails and social posts; it goes to the same place.

Endpoints

Method Endpoint Description
GET /v1/qrcodes List QR codes
POST /v1/qrcodes Create a QR code
GET /v1/qrcodes/:id Get a QR code
PATCH /v1/qrcodes/:id Update a QR code
DELETE /v1/qrcodes/:id Delete a QR code
GET /v1/qrcodes/:id/download Download the image (PNG or SVG)
POST /v1/qrcodes/:id/pause Pause (scans show a "paused" page)
POST /v1/qrcodes/:id/unpause Resume redirects

Create a QR Code

POST /v1/qrcodes — needs the qrcodes:write scope.

Request Body

{
  "name": "Spring Sale Campaign",
  "destination_url": "https://example.com/spring-sale"
}

Parameters

Field Type Required Description
name string Yes Display name
type string No url (redirect), text (show a page of text) or app (send phones to the App Store or Google Play). Worked out from the other fields if left out; required if the body has fields for more than one type.
destination_url string For url Where scans go. Must be a public http or https address; example.com is stored as https://example.com/. simple_url is accepted as another name for it.
text_content string For text Text shown when scanned (up to 2,000 characters)
ios_link, android_link string For app (at least one) Store links. Optional extras: ios_deep_link, android_deep_link, and fallback_link for desktops.
foreground_color, background_color string No Hex colors like #1d3557, used for the downloaded image (default black on white). They need a contrast of at least 3:1, or the request is refused, so phones can read the code. Custom colors are on Pro and up; on Free, leave them out or send black on white.
project_id string No Put the code in one of your projects
active boolean No Send false to create it paused (default true)
utm_source, utm_medium, utm_campaign, utm_content string No UTM tags for the destination

Response

201 Created with the QR code. The response also includes the code's styling fields (shape, frame, logo and so on), which are set in the app.

{
  "id": "qr_5263f2d15b774cde",
  "name": "Spring Sale Campaign",
  "type": "url",
  "destination_url": "https://example.com/spring-sale",
  "status": "active",
  "active": true,
  "shortlink": {
    "code": "2a81965a",
    "url": "https://api.seriousqr.com/s/2a81965a"
  },
  "scan_url": "https://api.seriousqr.com/r/qr_5263f2d15b774cde",
  "download_url": "https://api.seriousqr.com/v1/qrcodes/qr_5263f2d15b774cde/download",
  "foreground_color": null,
  "background_color": null,
  "project_id": null,
  "scan_count": 0,
  "created_date": "2026-11-11T12:00:00.000Z",
  "updated_at": "2026-11-11T12:00:00.000Z"
}

Plan limits

Free plans can create up to 10 QR codes (or short links) through the API, separate from the codes made in the app. On paid plans, API and app codes share the plan's QR code limit. At the limit you get 403:

{
  "error": {
    "code": "QUOTA_EXCEEDED",
    "message": "You've reached the Free plan's 10 API QR codes and short links. Delete some or upgrade.",
    "current": 10,
    "limit": 10,
    "tier": "free"
  }
}

Custom styling is on Pro and up. On the Free plan, setting a color, shape, corner style, frame, banner or logo beyond the standard design (black on white, square, none) returns 403 with the code STYLING_REQUIRES_UPGRADE. Leave those fields out to use the standard design.

List QR Codes

GET /v1/qrcodes

Query Parameters

Parameter Type Description
limit integer Results per page (default 20, max 100)
offset integer How many results to skip (default 0)
type string url, text or app
active boolean true for live codes, false for paused ones
q string Search by name
project_id string A project id, or unsorted for codes in no project
sort string A field name, with - in front for newest/largest first (default -created_date). scan_count works too.

Response

{
  "data": [
    {
      "id": "qr_5263f2d15b774cde",
      "name": "Spring Sale Campaign",
      "type": "url",
      "destination_url": "https://example.com/spring-sale",
      "status": "active",
      "active": true,
      "shortlink": { "code": "2a81965a", "url": "https://api.seriousqr.com/s/2a81965a" },
      "scan_count": 1234
    }
  ],
  "pagination": {
    "total": 45,
    "limit": 20,
    "offset": 0,
    "has_more": true
  }
}

Get a QR Code

GET /v1/qrcodes/:id

Returns the QR code in the same shape as the create response, with its current scan_count.

Update a QR Code

PATCH /v1/qrcodes/:id

Request Body

Send only the fields you want to change:

{
  "destination_url": "https://example.com/new-page"
}

Any field from create can be changed except type; to change the type, create a new QR code. (So text_content can't be set on a url code, nor destination_url on a text code.) The printed code keeps working: scans go to the new destination straight away.

Pause and Resume

POST /v1/qrcodes/:id/pause stops redirects: scans show a "paused" page until you call POST /v1/qrcodes/:id/unpause. Paused codes still count toward your plan limit.

Delete a QR Code

DELETE /v1/qrcodes/:id — needs the admin role in the workspace.

Permanently deletes the QR code and its scan history, and returns 204 No Content. The short link stops working straight away, so printed copies will stop working too. This can't be undone.

Download the Image

GET /v1/qrcodes/:id/download

Returns the image file itself (not JSON). It's a plain square-module QR code in the code's two colors, with the standard blank border. Rounded dots, logos and frames are made in the app. Responses carry an ETag; send it back in If-None-Match to get a 304 when the image hasn't changed.

Query Parameters

Parameter Type Description
format string png or svg (default png)
size integer Width and height in pixels, 64 to 2048 (default 512)

Codes made in the app that hold their content in the image itself (Wi-Fi, contact cards, email, phone, SMS, calendar) don't go through SeriousQR, so their download returns 409 IMAGE_NOT_AVAILABLE; download those from the app.

Example: Create and Download

# Create a QR code (live straight away)
curl -X POST https://api.seriousqr.com/v1/qrcodes \
  -H "Authorization: Bearer qwz_live_xxx" \
  -H "Content-Type: application/json" \
  -d '{"name": "My QR", "destination_url": "https://example.com"}'

# Download the image (use the id from the response)
curl "https://api.seriousqr.com/v1/qrcodes/qr_5263f2d15b774cde/download?format=svg" \
  -H "Authorization: Bearer qwz_live_xxx" \
  -o my-qr-code.svg