Qr codes

Create a QR code

POST
/qr-codes

Creates a static or dynamic QR code. Dynamic codes get a shortCode; scans of https://ez-qr.com/r/{shortCode} redirect to targetUrl. Creating a dynamic code counts toward your plan's dynamic code limit.

Authorization

bearerAuth
headerAuthorizationBearer <token>

API key from Settings → API keys, sent as Authorization: Bearer ezqr_…. Requires the Max plan.

Request Body

application/json
  1. body
name*string
Length1 <= length
type*string
Value in"static""dynamic"
contentType*string
content*string
targetUrl?string

Dynamic codes: where scans go. Defaults to content when that's a URL

Formaturi
style?
folderId?string
Formatuuid
domainId?string

Serve a dynamic code from one of your verified custom domains

Formatuuid
smartRules?

Route scans by device, time or location

abTestConfig?

Response Body

The created QR code

application/json
  1. response
data*
curl -X POST 'https://ez-qr.com/api/v1/qr-codes' \  -H 'Content-Type: application/json' \  -d '{  "name": "string",  "type": "static",  "contentType": "string",  "content": "string"}'
{  "data": {    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "name": "string",    "type": "static",    "contentType": "string",    "content": "string",    "targetUrl": "string",    "shortCode": "string",    "style": {},    "isActive": true,    "totalScans": 0,    "scheduledStart": "2019-08-24T14:15:22Z",    "expiresAt": "2019-08-24T14:15:22Z",    "createdAt": "2019-08-24T14:15:22Z",    "updatedAt": "2019-08-24T14:15:22Z"  }}