Skip to content

QR Code Types

The API supports 9 QR code content types. Each type requires specific fields in the content object.

text — Plain Text

FieldTypeRequiredMax Length
textstringYes900 chars
json
{
  "type": "text",
  "content": {
    "text": "Hello, World!"
  }
}

url — Web URL

FieldTypeRequiredMax Length
urlstringYes900 chars

URL must start with http:// or https://.

json
{
  "type": "url",
  "content": {
    "url": "https://example.com/page?ref=qr"
  }
}

phone — Phone Number

FieldTypeRequiredMax Length
phonestringYes15 chars

Produces a tel: URI for click-to-call.

json
{
  "type": "phone",
  "content": {
    "phone": "+1234567890"
  }
}

email — Email

FieldTypeRequiredMax Length
emailstringYes254 chars
subjectstringNo78 chars
messagestringNo500 chars

Produces a mailto: URI.

json
{
  "type": "email",
  "content": {
    "email": "hello@example.com",
    "subject": "Inquiry",
    "message": "I'd like to learn more."
  }
}

sms — SMS Message

FieldTypeRequiredMax Length
phonestringYes15 chars
messagestringNo160 chars

Produces an sms: URI that opens the messaging app.

json
{
  "type": "sms",
  "content": {
    "phone": "+1234567890",
    "message": "Hi there!"
  }
}

whatsapp — WhatsApp Message

FieldTypeRequiredMax Length
phonestringYes15 chars
messagestringNo500 chars
json
{
  "type": "whatsapp",
  "content": {
    "phone": "+1234567890",
    "message": "Hello from QR!"
  }
}

wifi — WiFi Network

FieldTypeRequiredMax Length
ssidstringYes32 chars
passwordstringNo63 chars
encryptionstringNo
hiddenbooleanNo

Encryption options: WPA, WEP, nopass (default: WPA).

json
{
  "type": "wifi",
  "content": {
    "ssid": "MyNetwork",
    "password": "s3cure_pass",
    "encryption": "WPA",
    "hidden": false
  }
}

Produces: WIFI:T:WPA;S:MyNetwork;P:s3cure_pass;H:false;;


contact — vCard Contact

FieldTypeRequiredMax Length
firstNamestringYes40 chars
lastNamestringNo40 chars
phonestringNo15 chars
emailstringNo60 chars
organizationstringNo60 chars
titlestringNo60 chars
addressstringNo60 chars
citystringNo60 chars
zipstringNo10 chars
countrystringNo60 chars
websitestringNo200 chars
json
{
  "type": "contact",
  "content": {
    "firstName": "Jane",
    "lastName": "Doe",
    "phone": "+1234567890",
    "email": "jane@example.com",
    "organization": "Acme Inc",
    "title": "CEO",
    "website": "https://example.com"
  }
}

Produces a vCard 3.0 format.


event — Calendar Event

FieldTypeRequiredMax Length
namestringYes80 chars
startDatestringYes
endDatestringYes
descriptionstringNo150 chars
locationstringNo100 chars

Dates should be in YYYY-MM-DDTHH:mm format (ISO 8601 local time). They are converted to UTC vEvent format YYYYMMDDTHHmmssZ.

json
{
  "type": "event",
  "content": {
    "name": "Team Meeting",
    "startDate": "2025-02-01T09:00",
    "endDate": "2025-02-01T10:00",
    "description": "Weekly sync",
    "location": "Conference Room A"
  }
}

Produces a BEGIN:VEVENT iCalendar format.

QBar Scanner Developer API