---
title: "Generate a QR code (POST, for long data)"
method: POST
path: "/qr/generate"
tags: ["QR"]
---

# Generate a QR code (POST, for long data)

`POST /qr/generate`

## Request

- Base URL: `https://abundanceapis.com`
- URL: `https://abundanceapis.com/qr/generate`
- Auth: none declared

Same as GET /generate but accepts the parameters in a JSON body (useful for long data).

## Request body

- object
  - `data` string, required: Text or URL to encode
  - `format` 'png' | 'svg' | 'datauri': Output format
  - `size` integer: Image width in px
  - `margin` integer: Quiet-zone modules
  - `ecc` 'L' | 'M' | 'Q' | 'H': Error-correction level
  - `dark` string: Foreground hex color
  - `light` string: Background hex color

## Other responses

- `400`: Bad request

---

[API](https://skmtc.dev/abundanceapis/apis/web-toolbox.md) · [All operations](https://skmtc.dev/abundanceapis/apis/web-toolbox/llms.txt) · [OpenAPI document](https://skmtc.dev/abundanceapis/apis/web-toolbox/revisions/ada2893fef43?raw)
