API Documentation
Complete REST API reference for qrius.io. Build integrations, automate QR code creation, and track analytics programmatically.
Getting Started
The qrius.io API uses JWT (JSON Web Tokens) for authentication. Include your access token in the Authorization header for all authenticated requests.
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json"
Base URL
https://qrius.io/apiRate Limits
- FREE plan: 10 requests/minute
- PRO plan: 100 requests/minute
- BUSINESS plan: Unlimited
Rate limit headers are included in all responses: X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset
Error Responses
"success": false,
"error": {
"code": "ERROR_CODE",
"message": "Human readable error"
}
}
Authentication
/api/auth/registerRegister a new user account
{
"success": true,
"data": {
"user": {
"id": "uuid",
"email": "string",
"plan": "FREE"
},
"accessToken": "jwt-token",
"refreshToken": "jwt-token"
}
}/api/auth/loginAuthenticate and get access tokens
{
"success": true,
"data": {
"user": {
"id": "uuid",
"email": "string",
"plan": "FREE"
},
"accessToken": "jwt-token",
"refreshToken": "jwt-token"
}
}/api/auth/refreshRefresh access token using refresh token
{
"success": true,
"data": {
"accessToken": "jwt-token"
}
}QR Codes
/api/qrCreate a new dynamic QR code
{
"success": true,
"data": {
"id": "uuid",
"slug": "string",
"shortUrl": "https://qrius.io/slug",
"destinationUrl": "string",
"createdAt": "ISO date"
}
}/api/qrList all QR codes for authenticated user
{
"success": true,
"data": "[ QR code objects ]",
"meta": {
"pagination": {
"page": 1,
"limit": 20,
"total": 5
}
}
}/api/qr/:idGet a specific QR code by ID
{
"success": true,
"data": {
"id": "uuid",
"name": "string"
}
}/api/qr/:idUpdate a QR code
{
"success": true,
"data": {}
}/api/qr/:idDelete a QR code
{
"success": true,
"data": {
"message": "QR code deleted successfully"
}
}User
/api/users/meGet current user profile
{
"success": true,
"data": {
"id": "uuid",
"email": "string",
"plan": "FREE"
}
}/api/users/me/usageGet current user plan usage statistics
{
"success": true,
"data": {
"plan": "FREE",
"limits": {
"qrCodes": 2,
"scansPerMonth": 1000
},
"usage": {
"qrCodes": 1,
"scansThisMonth": 500
},
"percentUsed": {
"qrCodes": 50,
"scans": 50
}
}
}/api/users/meUpdate current user profile
{
"success": true,
"data": {}
}/api/users/meDelete current user account
{
"success": true,
"data": {
"message": "Account deleted successfully"
}
}Analytics
/api/stats/overviewGet overview statistics for all QR codes
{
"success": true,
"data": {
"totalScans": 1234,
"totalQRCodes": 5,
"scansToday": 42,
"topQRCode": {}
}
}Need Help?
Having trouble with the API? Check out our examples or contact support.