Authentication
The QR Build API uses API keys to authenticate requests.
Getting Your API Key
- Log in to your QR Build dashboard
- Navigate to Settings > API Keys
- Click Create New API Key
- Give your key a descriptive name (e.g., "Production API Key")
- Copy the key immediately — you won't be able to see it again!
caution
Keep your API key secure! Never commit it to version control or expose it in client-side code.
API Key Format
API keys follow this format:
| Part | Description |
|---|---|
qrb_live_ | Prefix indicating a live/production key |
xxxxxxxx... | 32 random characters |
Using Your API Key
Include your API key in the X-API-Key header, or use the Authorization header with a Bearer token.
Security Best Practices
- Use environment variables — Store your API key in environment variables, not in code
- Rotate keys regularly — Create new keys and revoke old ones periodically
- Use separate keys — Use different keys for different environments (development, staging, production)
- Monitor usage — Check your API key usage in the dashboard
Setup Examples
- JavaScript
- Python
- cURL
const API_KEY = process.env.QR_BUILD_API_KEY;
const response = await fetch(
"https://integration-api.qr-build.com/qr-codes",
{
headers: {
"X-API-Key": API_KEY,
"Content-Type": "application/json",
},
}
);
import os
import requests
API_KEY = os.environ.get("QR_BUILD_API_KEY")
response = requests.get(
"https://integration-api.qr-build.com/qr-codes",
headers={"X-API-Key": API_KEY},
)
export QR_BUILD_API_KEY="qrb_live_your_api_key_here"
curl -X GET "https://integration-api.qr-build.com/qr-codes" \
-H "X-API-Key: $QR_BUILD_API_KEY"