Skip to main content

FreeToolGenerateQrCodeRequest

datastringrequired

The link or text to encode.

Possible values: non-empty and <= 1000 characters

utm object

UTM tags added to an http(s) link, the same way as buildUtmUrl.

sourcestring

Possible values: <= 200 characters

mediumstring

Possible values: <= 200 characters

campaignstring

Possible values: <= 200 characters

termstring

Possible values: <= 200 characters

contentstring

Possible values: <= 200 characters

error_correctionstring

How much of the code can be damaged and still scan: L 7%, M 15%, Q 25%, H 30%.

Possible values: [L, M, Q, H]

Default value: M
sizeinteger

Width and height of the SVG in pixels.

Possible values: >= 128 and <= 2048

Default value: 512
foregroundstring

Colour of the modules, #RRGGBB.

Possible values: Value must match regular expression ^#[0-9a-fA-F]{6}$

Default value: #000000
backgroundstring

Background colour, #RRGGBB.

Possible values: Value must match regular expression ^#[0-9a-fA-F]{6}$

Default value: #FFFFFF
FreeToolGenerateQrCodeRequest
{
"data": "string",
"utm": {
"source": "string",
"medium": "string",
"campaign": "string",
"term": "string",
"content": "string"
},
"error_correction": "M",
"size": 512,
"foreground": "#000000",
"background": "#FFFFFF"
}