About this endpoint
What it does
Generates a QR code and returns it as a downloadable binary file. The request body can encode either raw content, a vCard, or Wi‑Fi information, and supports optional styling such as logo overlay, colors, gradient mode, and error-correction level.
Request Body
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| content | String | No | Raw text or URL to encode. Max 2953 characters. Exactly one of content, v_card, or wifi_info must be provided. |
| v_card | Object | No | vCard payload. Exactly one of content, v_card, or wifi_info must be provided. |
| v_card.name | String | Yes | Contact name. |
| v_card.email | String | No | Email address. |
| v_card.notes | String | No | Notes. |
| v_card.address | String | No | Address. |
| v_card.website | String | No | Website URL. |
| v_card.birthday | String | No | Birthday string. |
| v_card.job_title | String | No | Job title. |
| v_card.photo_url | String | No | Photo URL. |
| v_card.organization | String | No | Organization. |
| v_card.phone_numbers | String Array | Yes | Phone number list. |
| v_card.social_profiles | Object | No | Social profile links. |
| v_card.social_profiles.twitter | String | No | Twitter handle or URL. |
| v_card.social_profiles.linkedIn | String | No | LinkedIn profile. |
| wifi_info | Object | No | Wi‑Fi credentials payload. Exactly one of content, v_card, or wifi_info must be provided. |
| wifi_info.ssid | String | Yes | Wi‑Fi network name. |
| wifi_info.password | String | No | Wi‑Fi password. |
| wifi_info.auth_type | ENUM | No | Authentication type. Allowed values: WEP, WPA, WPA2, WPA3, WPA-EAP, WPA2-EAP, WPA3-EAP. |
| wifi_info.is_hidden | Boolean | No | Whether the network is hidden. Default: false. |
| logo | String | No | URL of an image to overlay in the centre of the QR code. |
| is_gradient | Boolean | No | Must be true when foreground_color is an array. Returns 400 if true but foreground_color is not an array. Default: false. |
| recovery_level | ENUM | No | Error correction level. Allowed values: low, medium, high, highest. Default: highest. Lower values increase content capacity but reduce damage tolerance. |
| background_color | String | No | Hex background color. Required when foreground_color is set. |
| foreground_color | String | No | Solid mode: hex string (for example 000000). Gradient mode: array of two hex strings [startColor, endColor]. Must be omitted together with background_color, or both provided. |
Response
Returns a binary file in the response body. The success response is a downloadable QR code file, with no JSON wrapper or named fields in the output schema.
Notes
Exactly one of content, v_card, or wifi_info must be provided. Also note that is_gradient must be true when foreground_color is an array, and background_color is required when foreground_color is set.