---
title: "QR Code Generator"
method: POST
path: "/v1/qrcodegenerator"
tags: ["Data Generation"]
---

# QR Code Generator

`POST /v1/qrcodegenerator`

## Request

- Base URL: `https://api.apiverve.com`
- URL: `https://api.apiverve.com/v1/qrcodegenerator`
- Auth: API key in header `x-api-key`

Generate a styled QR code with custom colors, logo, and design options

## Request body

- object
  - `value` string, required: The text or data to encode in the QR code
  - `type` string: The type of data being encoded. Advanced types (wifi, vcard) are premium.
  - `format` string: Output format. Vector formats (svg, webp) are premium.
  - `size` number: Size of the QR code in pixels (50-2048)
  - `margin` number: Margin around the QR code in pixels (0-100)
  - `color` string: Foreground color as hex code (e.g., #000000)
  - `backgroundColor` string: Background color as hex code (e.g., #ffffff)
  - `dotStyle` string: Style of QR code dots
  - `cornerSquareStyle` string: Style of corner squares
  - `cornerDotStyle` string: Style of corner dots
  - `gradient` string: Gradient configuration with type (linear, radial) and colorStops array
  - `logo` string: URL of logo image to place in center of QR code
  - `logoSize` number: Size of logo relative to QR code (0.1-0.5)
  - `logoMargin` number: Margin around logo in pixels

## Response `200`

Successful Response

- object
  - `status` string: status
  - `error` string: error
  - `data` object: data

## Other responses

- `401`: Your request was not authorized, or your API Key was invalid
- `404`: Requested resource was not found
- `500`: A server error has occurred, try again later

---

[API](https://skmtc.dev/apiverve/apis/apiverve-api.md) · [All operations](https://skmtc.dev/apiverve/apis/apiverve-api/llms.txt) · [OpenAPI document](https://skmtc.dev/apiverve/apis/apiverve-api/revisions/4b9a77598eb4?raw)
