Purpose
Use this endpoint to validate QR Code data before creation.It checks that the
category and info parameters match expected JSON structure for that QR type (e.g., URL, Social Media, Business Card, etc.).
This helps catch issues like:
- Missing required fields
- Invalid URLs
- Wrong
typevalues - Malformed JSON strings
Request Body (Form Data)
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
category | string | Yes | QR code category ID | 1 |
info | string | Yes | QR code info JSON data | {"type":"url","data":{"url":"http://google.com"}} |
Examples
Validate Website URL QR Code Data
Validate Social Media QR Code Data
Validate Business Card QR Code Data
Validate Event QR Code Data
Successful Response (200)
If the provided data is valid, the API returns a simple success message:200 OK
Error Responses
400 Bad Request — Invalid Data
The info object failed validation.Common issues include missing fields, invalid
type, or incorrect data formats.
Example - Invalid Type Values
Integration Examples
JavaScript Form Validation
Python Validation
PHP Validation
Notes & Best Practices
- Always validate before creating or updating dynamic QR Codes — this ensures error-free QR landing pages.
- The validation engine mimics internal creation logic, so a passing validation guarantees successful QR creation (if unchanged).
- Recommended especially when:
- Building integrations that generate multiple QR codes in bulk
- Accepting user-provided input through a form or external data source
- Use this endpoint in your pre-deployment QA pipeline to validate
infotemplates for all categories.
Authorizations
API key authentication. Enter your API key directly in the Authorization header.
Body
multipart/form-data
Response
Valid QR code info data
The response is of type string.
Example:
"valid"