---
title: Generate QR Code API
slug: generate-qr-code
url: https://apyhub.com/apyhub/service/generate-qr-code
provider: ApyHub
categories: [Marketing, Smart Generation]
tags: [qr-code, barcode-generation, vcard, wifi-sharing, branding, image-generation]
auth: api_key
---

# Generate QR Code API

Create QR codes from text, vCards, or Wi‑Fi details. Download the image or get a pre-signed cloud URL, with logo, color, and error-correction options.

## Endpoints

| Method | Path | Description | Atoms |
| --- | --- | --- | --- |
| POST | `/generate/qr-code/file` | What it does Generates a QR code and returns it as a downloadable binary file. The request body can… | 30 |
| POST | `/generate/qr-code/url` | What it does Generates a QR code and returns a JSON object containing a pre-signed cloud storage UR… | 30 |

## About

## What it does
QR Code Generator creates downloadable QR codes or a cloud-hosted QR image from plain text, a vCard, or Wi‑Fi details. Send one input type per request, and you get back a QR code asset you can place on tickets, packaging, business cards, menus, or onboarding materials.

Use `content` for raw text or a URL, `v_card` for contact-sharing QR codes, or `wifi_info` to encode network access details. The vCard payload supports `name` and `phone_numbers` as required fields, plus optional `email`, `notes`, `address`, `website`, `birthday`, `job_title`, `photo_url`, `organization`, and `social_profiles`. Wi‑Fi QR codes accept `ssid` and optional `password`, `auth_type`, and `is_hidden`.

You can also brand the QR code with a `logo`, choose `foreground_color` and `background_color`, enable `is_gradient` for two-color foregrounds, and set `recovery_level` to control error correction. The service enforces the payload rules in the schema, including the one-input requirement and the color combinations, so you can validate QR generation before you ship it into a workflow.

Choose `/download` when you need the generated file directly, or `/link` when you want a pre-signed cloud URL in the response.

## Usage

Authenticate with an ApyHub API key in the `apy-token` header.
Full docs and a live playground: https://apyhub.com/apyhub/service/generate-qr-code
