API Documentation
For Business-plan customers
Overview
The QRecode API lets you create and manage dynamic QR codes programmatically. It's a standard REST API returning JSON. API access is included with the Business plan.
Authentication
Generate an API key from your Account settings. Send it as a Bearer token on every request:
Authorization: Bearer qre_live_your_key_here
Keep your keys secret. If a key is exposed, revoke it from your account and generate a new one. Requests are limited to 120 per minute per key.
Base URL
https://qrecode.com/wp-json/qre/v1
Endpoints
List your codes
GET https://qrecode.com/wp-json/qre/v1/codes
Create a code
POST https://qrecode.com/wp-json/qre/v1/codes
Content-Type: application/json
{
"title": "My campaign",
"destination_url": "https://example.com/landing",
"type": "url"
}
Returns the created code including its slug and scan URL. The scan URL is what you encode into the printed QR — you can change destination_url later without reprinting.
Get a single code
GET https://qrecode.com/wp-json/qre/v1/codes/{id}
Update a code
PUT https://qrecode.com/wp-json/qre/v1/codes/{id}
Content-Type: application/json
{ "destination_url": "https://example.com/new-target" }
Delete a code
DELETE https://qrecode.com/wp-json/qre/v1/codes/{id}
Get analytics
GET https://qrecode.com/wp-json/qre/v1/analytics?code_id={id}
Returns scan totals, unique scans, and a time series for the code.
Example (cURL)
curl -X POST https://qrecode.com/wp-json/qre/v1/codes \
-H "Authorization: Bearer qre_live_your_key_here" \
-H "Content-Type: application/json" \
-d '{"title":"Menu","destination_url":"https://cafe.example/menu","type":"url"}'
Errors
The API uses standard HTTP status codes. 401 means a bad or missing key, 403 means your plan doesn't allow the action, 429 means you've hit the rate limit, and 400 means a required field is missing.
Need help?
Email support@qrecode.com and we'll help you get set up.