Skip to main content
POST
QR Code Scan decodes an uploaded image and checks the extracted content for suspicious links and other threats. It reads QR, Data Matrix, and Aztec codes.

Authentication

Send your API key as Authorization: Bearer enc_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.

Request

string
required
Set this value to qr.
file
The QR code image to scan, uploaded as multipart/form-data. Send this field or content_base64. When you omit filename, the uploaded file’s name is used.
string
For a JSON body, send this field or file. The base64-encoded QR code image. Send raw base64 only. A data URL prefix such as data:image/png;base64, returns 400 with “content_base64 is not valid base64.”
string
The original image file name.
boolean
Set to true to include STIX 2.1 output when available. Defaults to false.

Example request

Upload the QR code image from disk as multipart/form-data. Replace qr-code.png with the path to your QR code image.
To send JSON instead, base64-encode the QR code image into content_base64:

Example response

QR code result fields

A qr result can contain these fields: scan_id, kind, status, verdict, score, sha256, category, confidence, data_residency, codes, image, signals, iocs, and scanned_at.
object[]
Every code decoded from the image. Missing when no code could be read.
object[]
Evidence for the verdict. Each item is an object with source, malicious, detail, and optional severity.

When no code is found

If the image has no readable code, the scan still returns 200 with verdict: "unknown", category: "unknown", confidence: "low", no codes field, and this signal:
See Malware Scan for the complete response schema and shared fields.

Errors

The API returns 400 for invalid base64 content (including a data: URL prefix) or an unreadable image, 401 for a missing or invalid API key, 402 when your account has insufficient credits, and 429 when you exceed a rate limit.

Credits

A successful scan costs 1 credit. Repeating the same scan kind and content is deduplicated for billing.