Overview
- Category
- Generators
- API mode
not_available- Processing
- client-side
- Privacy
- no-data-stored
Public descriptor
The descriptor is available without an API key and supplies this tool’s metadata, schemas, modes, and examples.
GET /api/v1/tools/qr-code-generator
Execute availability
This tool is documented as a browser capability. Its execute route does not produce a server-side result; when execution is enabled, it responds with browser_interaction_required and points callers to the public tool page.
POST /api/v1/tools/qr-code-generator/execute
Authentication is not issued during the preview. A bearer API key is planned for execution after launch.
Input schema
object object; additional properties are not accepted.
text· string · required- Enter the exact text that the QR code should contain.
size· number · required- Enter the image size used in the calculation.
error_correction· string · required-
Choose the error correction that matches the calculation. Accepted values:
L, M, Q, H. margin· number · required- Enter the quiet-zone modules used in the calculation.
{
"type": "object",
"properties": {
"text": {
"type": "string",
"description": "Enter the exact text that the QR code should contain."
},
"size": {
"type": "number",
"description": "Enter the image size used in the calculation.",
"minimum": 128,
"maximum": 1024
},
"error_correction": {
"type": "string",
"description": "Choose the error correction that matches the calculation.",
"enum": [
"L",
"M",
"Q",
"H"
]
},
"margin": {
"type": "number",
"description": "Enter the quiet-zone modules used in the calculation.",
"minimum": 1,
"maximum": 12
}
},
"required": [
"text",
"size",
"error_correction",
"margin"
],
"additionalProperties": false
}
Output schema
On a successful execution, schema values appear in data.result.values.
svg· string- QR code produced by the calculation.
encoded_text· string- Encoded text produced by the calculation.
version· number- QR version produced by the calculation.
module_count· number- Module count produced by the calculation.
{
"type": "object",
"properties": {
"svg": {
"type": "string",
"description": "QR code produced by the calculation."
},
"encoded_text": {
"type": "string",
"description": "Encoded text produced by the calculation."
},
"version": {
"type": "number",
"description": "QR version produced by the calculation."
},
"module_count": {
"type": "number",
"description": "Module count produced by the calculation."
}
},
"additionalProperties": false
}
QR Code Generator example
The request body follows the published input schema. The response below shows the success-envelope shape returned after execution is available.
curl -X POST "https://utilitypages.org/api/v1/tools/qr-code-generator/execute" \
-H "Content-Type: application/json" \
-d '{
"text": "https://utilitypages.org/",
"size": 320,
"error_correction": "M",
"margin": 4
}'
{
"ok": true,
"data": {
"slug": "qr-code-generator",
"result": {
"values": {
"svg": "<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 297 297\" preserveAspectRatio=\"xMinYMin meet\"><rect width=\"100%\" height=\"100%\" fill=\"white\" cx=\"0\" cy=\"0\"/><path d=\"M36,36l9,0 0,9 -9,0 0,-9z M45,36l9,0 0,9 -9,0 0,-9z M54,36l9,0 0,9 -9,0 0,-9z M63,36l9,0 0,9 -9,0 0,-9z M72,36l9,0 0,9 -9,0 0,-9z M81,36l9,0 0,9 -9,0 0,-9z M90,36l9,0 0,9 -9,0 0,-9z M126,36l9,0 0,9 -9,0 0,-9z M135,36l9,0 0,9 -9,0 0,-9z M153,36l9,0 0,9 -9,0 0,-9z M162,36l9,0 0,9 -9,0 0,-9z M198,36l9,0 0,9 -9,0 0,-9z M207,36l9,0 0,9 -9,0 0,-9z M216,36l9,0 0,9 -9,0 0,-9z M225,36l9,0 0,9 -9,0 0,-9z M234,36l9,0 0,9 ...",
"encoded_text": "https://utilitypages.org/",
"version": 2,
"module_count": 25
},
"display": {
"display": "<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 297 297\" preserveAspectRatio=\"xMinYMin meet\"><rect width=\"100%\" height=\"100%\" fill=\"white\" cx=\"0\" cy=\"0\"/><path d=\"M36,36l9,0 0,9 -9,0 0,-9z M45,36l9,0 0,9 -9,0 0,-9z M54,36l9,0 0,9 -9,0 0,-9z M63,36l9,0 0,9 -9,0 0,-9z M72,36l9,0 0,9 -9,0 0,-9z M81,36l9,0 0,9 -9,0 0,-9z M90,36l9,0 0,9 -9,0 0,-9z M126,36l9,0 0,9 -9,0 0,-9z M135,36l9,0 0,9 -9,0 0,-9z M153,36l9,0 0,9 -9,0 0,-9z M162,36l9,0 0,9 -9,0 0,-9z M198,36l9,0 0,9 -9,0 0,-9z M207,36l9,0 0,9 -9,0 0,-9z M216,36l9,0 0,9 -9,0 0,-9z M225,36l9,0 0,9 -9,0 0,-9z M234,36l9,0 0,9 ..."
},
"warnings": [],
"assumptions": [],
"steps": []
}
},
"meta": [],
"request_id": "req_example_123"
}
Errors
api_not_launched· 503- Returned by the current launch gate for every execute request.
invalid_json· 400- Returned when an enabled execute request does not contain valid JSON.
validation_failed· 422- Returned when a request does not satisfy the input schema.
browser_interaction_required· 422- Returned for browser capability tools instead of inventing a server-side result.
tool_not_found· 404- Returned when a requested descriptor slug does not exist.
execution_failed· 503- Returned when an enabled server-side execution cannot complete.