Base URL
https://api.it-stacks.com/qr-codeAll endpoints are relative to this base URL. HTTPS only.
Authentication
All requests require an API key passed as a Bearer token in the Authorization header.
Authorization: Bearer YOUR_API_KEYGet your API key from the dashboard. Keys are scoped per service — a QR Code key will not work against the Fuel API.
Endpoints
GET
https://api.it-stacks.com/qr-code/generateGenerate a QR code image from a URL or text string.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
data | string | Yes | The URL or text to encode |
format | string | No | Output format: png (default) or svg |
size | integer | No | Image size in pixels (default: 256, max: 1024) |
color | string | No | Foreground colour as hex, no # (default: 000000) |
bg | string | No | Background colour as hex, no # (default: ffffff) |
Example request
GET https://api.it-stacks.com/qr-code/generate?data=https://it-stacks.com&format=png&size=256Example response
{
"url": "https://cdn.it-stacks.com/qr/abc123.png",
"format": "png",
"size": 256,
"data": "https://it-stacks.com"
}GET
https://api.it-stacks.com/qr-code/formatsList available output formats and supported options.
Example request
GET https://api.it-stacks.com/qr-code/formatsExample response
{
"formats": ["png", "svg"],
"max_size": 1024,
"default_size": 256
}Rate limits
Requests exceeding your plan limit return HTTP 429. Limits reset monthly.
| Plan | Limit |
|---|---|
| Free | 1,000 requests / month |
| Pro | 50,000 requests / month |
| Enterprise | Unlimited |
Error codes
| Code | Meaning |
|---|---|
400 | Missing or invalid parameters |
401 | Missing or invalid API key |
429 | Rate limit exceeded |
500 | Internal server error |
