Skip to main content
POST

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 type values
  • Malformed JSON strings

Request Body (Form Data)

FieldTypeRequiredDescriptionExample
categorystringYesQR code category ID1
infostringYesQR 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:
HTTP Status: 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
Example - Missing Required Fields
Example - Invalid URL Format
Example - Invalid Email Format
Example - Invalid Phone Format

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 info templates for all categories.

Authorizations

Authorization
string
header
required

API key authentication. Enter your API key directly in the Authorization header.

Body

multipart/form-data
category
string
required

QR code category ID

Example:

"1"

info
string
required

QR code info JSON data

Example:

"{\"type\":\"url\",\"data\":{\"url\":\"http://google.com\"}}"

Response

Valid QR code info data

The response is of type string.

Example:

"valid"