---
title: "API reference · QRsome"
description: "HTTP API reference for QRsome: List your QR codes, Create a QR code, Create a dynamic QR code, Get one QR code, Update a QR code, Delete a QR code."
url: https://qrsome.com/docs/
language: en
---

# API reference

The HTTP API behind QRsome. JSON in, JSON out. 14 endpoints.

## Overview

QR codes for agents: styled static and dynamic QR codes from QRsome, for your own agent or a script (assistants use the MCP server with the same account). Dynamic codes do not expire: they redirect until you delete them. Authenticate with an API key from your account page: `Authorization: Bearer sk_qr_…`. Each code has stable image links (`/f/<user>/<code id>.svg|png`): they keep working, with the current look, until the code is deleted. On the Free plan, downloaded and linked images (and `?format=svg|png`) carry a small mark with this site's domain on a band under the code; the code and its quiet zone are unchanged. New codes are drawn in your default saved look unless you name another (`look`) or `"none"`; a shape, color or logo you send wins. Never send images as base64 when a link works: give an https link to the logo.

#### Base URL

```
https://qrsome.com
```

## Authentication

Send an API key in the `Authorization` header. Keys start with `sk_qr_`. Create and revoke keys in [your account](https://qrsome.com/account). A key is shown once.

```
Authorization: Bearer sk_qr_…
```

## Endpoints

### List your QR codes

GET /api/qr

Newest first.

#### Query parameters

- limit integer
- cursor string

  `next_cursor` from the previous page.

#### Example

```
curl 'https://qrsome.com/api/qr' \
  -H 'Authorization: Bearer sk_qr_…'
```

#### Responses

200 A page of codes.

```
{
  "codes": [
    {
      "id": "string",
      "kind": "static",
      "label": "string",
      "encoded": "string",
      "destination": "string",
      "short_url": "string",
      "svg_url": "https://example.com",
      "png_url": "https://example.com",
      "look": null,
      "created_at": "2026-01-01T00:00:00Z",
      "updated_at": "2026-01-01T00:00:00Z",
      "title": "string",
      "content_type": "url",
      "look_name": "string",
      "can_undo": true,
      "image_version": "string"
    }
  ],
  "next_cursor": "string"
}
```

401 Missing or invalid API key.

```
{
  "error": "string",
  "message": "string"
}
```

### Create a QR code

POST /api/qr

No limit on static codes (rate-limited to 60 per minute). Returns the code with its image URLs, or with `?format=svg|png` the image itself (the code is still saved; its id is in `X-QR-Id`).

#### Query parameters

- format string

#### Request body

- data string

  The exact text to encode. Give `data` or `content`, not both.

  At most 2953 characters.
- content object

  A typed payload, formatted and escaped for you.

  - type string required

    One of: "url", "text", "wifi", "vcard", "email", "sms", "phone", "geo", "whatsapp", "event", "social".
  - url string
  - text string
  - ssid string
  - password string
  - encryption string

    One of: "WPA", "WEP", "nopass".
  - hidden boolean
  - first_name string
  - last_name string
  - organization string
  - title string
  - phone string
  - mobile string
  - email string
  - street string
  - city string
  - region string
  - postal_code string
  - country string
  - note string
  - to string
  - subject string
  - body string
  - message string
  - lat number
  - lng number
  - start string

    event: 2026-11-05, 2026-11-05T19:30 or with Z / an offset.
  - end string
  - location string
  - description string
  - network string

    One of: "instagram", "tiktok", "x", "facebook", "linkedin", "linkedin_company", "youtube", "threads", "github", "telegram".
  - handle string

    social: the profile's handle, with or without @.
- size integer

  Width and height in pixels.

  Minimum 128. Maximum 2048.
- margin integer

  Quiet zone in modules.

  Minimum 0. Maximum 8.
- fg string

  Foreground color. Must be darker than the background, contrast ratio at least 3:1.
- bg string | any

  Background color or `transparent` (checked as white).
- gradient object

  Linear gradient replacing `fg`; both stops must pass the contrast check.

  - from string required
  - to string required
  - angle number

    Default: 0. Minimum 0. Maximum 360.
- shape string

  The code's shape: `classic` (square dots and corners), `rounded`, `dots` (round dots and corners) or `elegant`.

  One of: "classic", "rounded", "dots", "elegant".
- logo string

  An `https://` URL (fetched server-side: PNG, JPEG, SVG or WebP, up to 512 KB, 5 s timeout), `brand` for the default look's logo, `none`, or a data URL (`data:image/png;base64,…`) of a PNG, JPEG, SVG or WebP up to 200 KB. Forces error correction H; takes at most 22% of the width.
- ecc string

  One of: "L", "M", "Q", "H".
- label string

  At most 100 characters.
- dynamic boolean

  Encode a short link whose destination can change later, with scan counts (links only: a `url` or `social` content, or `data` that is an http(s) URL).
- look string

  A saved look by name, or `none`. Omitted: your default look, if any.

  At most 60 characters.

#### Example

```
curl -X POST 'https://qrsome.com/api/qr' \
  -H 'Authorization: Bearer sk_qr_…' \
  -H 'Content-Type: application/json' \
  -d '{"data":"string","content":{"type":"url","url":"string","text":"string","ssid":"string","password":"string","encryption":"WPA","hidden":true,"first_name":"string","last_name":"string","organization":"string","title":"string","phone":"string","mobile":"string","email":"string","street":"string","city":"string","region":"string","postal_code":"string","country":"string","note":"string","to":"string","subject":"string","body":"string","message":"string","lat":0,"lng":0,"start":"string","end":"string","location":"string","description":"string","network":"instagram","handle":"string"},"size":0,"margin":0,"fg":"string","bg":"string","gradient":{"from":"string","to":"string","angle":0},"shape":"classic","logo":"string","ecc":"L","label":"string","dynamic":true,"look":"string"}'
```

#### Responses

201 Created.

```
{
  "id": "string",
  "kind": "static",
  "label": "string",
  "encoded": "string",
  "destination": "string",
  "short_url": "string",
  "svg_url": "https://example.com",
  "png_url": "https://example.com",
  "look": null,
  "created_at": "2026-01-01T00:00:00Z",
  "updated_at": "2026-01-01T00:00:00Z",
  "title": "string",
  "content_type": "url",
  "look_name": "string",
  "can_undo": true,
  "image_version": "string"
}
```

400 Invalid input, too long, a bad logo, or colors that would not scan (\`low_contrast\`).

```
{
  "error": "string",
  "message": "string"
}
```

401 Missing or invalid API key.

```
{
  "error": "string",
  "message": "string"
}
```

429 Rate limited.

```
{
  "error": "string",
  "message": "string"
}
```

### Create a dynamic QR code

POST /api/qr/dynamic

The same as POST /api/qr with dynamic: true. Free includes 10 active dynamic codes. Generation is rate limited and subject to the account creation allowance. Returns the code with its short URL and image URLs.

#### Request body

- url string (uri) required

  http(s) destination.
- size integer

  Width and height in pixels.

  Default: 512. Minimum 128. Maximum 2048.
- margin integer

  Quiet zone in modules.

  Default: 2. Minimum 0. Maximum 8.
- fg string

  Foreground color. Must be darker than the background, contrast ratio at least 3:1.

  Default: "#000000".
- bg string | any

  Background color or `transparent` (checked as white).

  Default: "#ffffff".
- gradient object

  Linear gradient replacing `fg`; both stops must pass the contrast check.

  - from string required
  - to string required
  - angle number

    Default: 0. Minimum 0. Maximum 360.
- shape string

  The code's shape: `classic` (square dots and corners), `rounded`, `dots` (round dots and corners) or `elegant`.

  One of: "classic", "rounded", "dots", "elegant".
- logo string

  An `https://` URL (fetched server-side: PNG, JPEG, SVG or WebP, up to 512 KB, 5 s timeout) or a data URL of a PNG, JPEG, SVG or WebP up to 200 KB. Forces error correction H; takes at most 22% of the width.
- ecc string

  One of: "L", "M", "Q", "H". Default: "M".
- label string

  At most 100 characters.
- look string

  A saved look by name, or `none`. Omitted: your default look, if any.

  At most 60 characters.

#### Example

```
curl -X POST 'https://qrsome.com/api/qr/dynamic' \
  -H 'Authorization: Bearer sk_qr_…' \
  -H 'Content-Type: application/json' \
  -d '{"url":"https://example.com","size":512,"margin":2,"fg":"#000000","bg":"#ffffff","gradient":{"from":"string","to":"string","angle":0},"shape":"classic","logo":"string","ecc":"M","label":"string","look":"string"}'
```

#### Responses

201 Created.

```
{
  "id": "string",
  "kind": "static",
  "label": "string",
  "encoded": "string",
  "destination": "string",
  "short_url": "string",
  "svg_url": "https://example.com",
  "png_url": "https://example.com",
  "look": null,
  "created_at": "2026-01-01T00:00:00Z",
  "updated_at": "2026-01-01T00:00:00Z",
  "title": "string",
  "content_type": "url",
  "look_name": "string",
  "can_undo": true,
  "image_version": "string"
}
```

400 Invalid input or URL refused.

```
{
  "error": "string",
  "message": "string"
}
```

401 Missing or invalid API key.

```
{
  "error": "string",
  "message": "string"
}
```

429 Too many requests in a short time; wait before trying again.

```
{
  "error": "string",
  "message": "string"
}
```

### Get one QR code

GET /api/qr/{id}

#### Path parameters

- id string required

#### Example

```
curl 'https://qrsome.com/api/qr/string' \
  -H 'Authorization: Bearer sk_qr_…'
```

#### Responses

200 The code.

```
{
  "id": "string",
  "kind": "static",
  "label": "string",
  "encoded": "string",
  "destination": "string",
  "short_url": "string",
  "svg_url": "https://example.com",
  "png_url": "https://example.com",
  "look": null,
  "created_at": "2026-01-01T00:00:00Z",
  "updated_at": "2026-01-01T00:00:00Z",
  "title": "string",
  "content_type": "url",
  "look_name": "string",
  "can_undo": true,
  "image_version": "string"
}
```

401 Missing or invalid API key.

```
{
  "error": "string",
  "message": "string"
}
```

404 Not found in your account.

```
{
  "error": "string",
  "message": "string"
}
```

### Update a QR code

PATCH /api/qr/{id}

Label, destination (dynamic codes) and look. Only the fields you send change: every other look field keeps its current value. What the code encodes never changes, and its image links stay the same and serve the new image.

#### Path parameters

- id string required

#### Request body

- label string

  A new name (empty removes it).

  At most 100 characters.
- url string

  Dynamic codes: the new destination.
- look string

  Redraw in a saved look (its whole look), or `none` for plain.

  At most 60 characters.
- fg string

  Foreground color. Must be darker than the background, contrast ratio at least 3:1.
- bg string | any

  Background color or `transparent` (checked as white).
- gradient object

  Linear gradient replacing `fg`; both stops must pass the contrast check.

  - from string required
  - to string required
  - angle number

    Default: 0. Minimum 0. Maximum 360.
- shape string

  The code's shape: `classic` (square dots and corners), `rounded`, `dots` (round dots and corners) or `elegant`.

  One of: "classic", "rounded", "dots", "elegant".
- logo string

  An `https://` URL (fetched server-side: PNG, JPEG, SVG or WebP, up to 512 KB, 5 s timeout), `brand` for the default look's logo, `none`, or a data URL (`data:image/png;base64,…`) of a PNG, JPEG, SVG or WebP up to 200 KB. Forces error correction H; takes at most 22% of the width.
- size integer

  Width and height in pixels.

  Minimum 128. Maximum 2048.
- margin integer

  Quiet zone in modules.

  Minimum 0. Maximum 8.
- ecc string

  One of: "L", "M", "Q", "H".

#### Example

```
curl -X PATCH 'https://qrsome.com/api/qr/string' \
  -H 'Authorization: Bearer sk_qr_…' \
  -H 'Content-Type: application/json' \
  -d '{"label":"string","url":"string","look":"string","fg":"string","bg":"string","gradient":{"from":"string","to":"string","angle":0},"shape":"classic","logo":"string","size":0,"margin":0,"ecc":"L"}'
```

#### Responses

200 Updated.

```
{
  "id": "string",
  "kind": "static",
  "label": "string",
  "encoded": "string",
  "destination": "string",
  "short_url": "string",
  "svg_url": "https://example.com",
  "png_url": "https://example.com",
  "look": null,
  "created_at": "2026-01-01T00:00:00Z",
  "updated_at": "2026-01-01T00:00:00Z",
  "title": "string",
  "content_type": "url",
  "look_name": "string",
  "can_undo": true,
  "image_version": "string"
}
```

400 Invalid request, low contrast, logo refused, or a destination for a static code.

```
{
  "error": "string",
  "message": "string"
}
```

401 Missing or invalid API key.

```
{
  "error": "string",
  "message": "string"
}
```

404 No such code.

```
{
  "error": "string",
  "message": "string"
}
```

### Delete a QR code

DELETE /api/qr/{id}

Deletes the images and, for a dynamic code, its short link (printed copies stop working).

#### Path parameters

- id string required

#### Example

```
curl -X DELETE 'https://qrsome.com/api/qr/string' \
  -H 'Authorization: Bearer sk_qr_…'
```

#### Responses

204 Deleted.

401 Missing or invalid API key.

```
{
  "error": "string",
  "message": "string"
}
```

404 Not found in your account.

```
{
  "error": "string",
  "message": "string"
}
```

### Scan stats of a dynamic code

GET /api/qr/{id}/stats

#### Path parameters

- id string required

#### Query parameters

- days integer

#### Example

```
curl 'https://qrsome.com/api/qr/string/stats' \
  -H 'Authorization: Bearer sk_qr_…'
```

#### Responses

200 Stats.

```
{
  "qr": {
    "id": "string",
    "kind": "static",
    "label": "string",
    "encoded": "string",
    "destination": "string",
    "short_url": "string",
    "svg_url": "https://example.com",
    "png_url": "https://example.com",
    "look": null,
    "created_at": "2026-01-01T00:00:00Z",
    "updated_at": "2026-01-01T00:00:00Z",
    "title": "string",
    "content_type": "url",
    "look_name": "string",
    "can_undo": true,
    "image_version": "string"
  },
  "stats": {
    "slug": "string",
    "total": 0,
    "by_day": [
      {
        "date": "string",
        "count": 0
      }
    ],
    "by_country": [
      {
        "country": "string",
        "count": 0
      }
    ],
    "by_referrer": [
      {
        "host": "string",
        "count": 0
      }
    ]
  }
}
```

400 A static code (\`not_dynamic\`) or bad \`days\`.

```
{
  "error": "string",
  "message": "string"
}
```

401 Missing or invalid API key.

```
{
  "error": "string",
  "message": "string"
}
```

404 Not found in your account.

```
{
  "error": "string",
  "message": "string"
}
```

### Update a QR code (same as PATCH /api/qr/{id})

POST /api/qr/{id}/style

Label, destination (dynamic codes) and look. Only the fields you send change: every other look field keeps its current value. What the code encodes never changes, and its image links stay the same and serve the new image.

#### Path parameters

- id string required

#### Request body

- label string

  A new name (empty removes it).

  At most 100 characters.
- url string

  Dynamic codes: the new destination.
- look string

  Redraw in a saved look (its whole look), or `none` for plain.

  At most 60 characters.
- fg string

  Foreground color. Must be darker than the background, contrast ratio at least 3:1.
- bg string | any

  Background color or `transparent` (checked as white).
- gradient object

  Linear gradient replacing `fg`; both stops must pass the contrast check.

  - from string required
  - to string required
  - angle number

    Default: 0. Minimum 0. Maximum 360.
- shape string

  The code's shape: `classic` (square dots and corners), `rounded`, `dots` (round dots and corners) or `elegant`.

  One of: "classic", "rounded", "dots", "elegant".
- logo string

  An `https://` URL (fetched server-side: PNG, JPEG, SVG or WebP, up to 512 KB, 5 s timeout), `brand` for the default look's logo, `none`, or a data URL (`data:image/png;base64,…`) of a PNG, JPEG, SVG or WebP up to 200 KB. Forces error correction H; takes at most 22% of the width.
- size integer

  Width and height in pixels.

  Minimum 128. Maximum 2048.
- margin integer

  Quiet zone in modules.

  Minimum 0. Maximum 8.
- ecc string

  One of: "L", "M", "Q", "H".

#### Example

```
curl -X POST 'https://qrsome.com/api/qr/string/style' \
  -H 'Authorization: Bearer sk_qr_…' \
  -H 'Content-Type: application/json' \
  -d '{"label":"string","url":"string","look":"string","fg":"string","bg":"string","gradient":{"from":"string","to":"string","angle":0},"shape":"classic","logo":"string","size":0,"margin":0,"ecc":"L"}'
```

#### Responses

200 Updated.

```
{
  "id": "string",
  "kind": "static",
  "label": "string",
  "encoded": "string",
  "destination": "string",
  "short_url": "string",
  "svg_url": "https://example.com",
  "png_url": "https://example.com",
  "look": null,
  "created_at": "2026-01-01T00:00:00Z",
  "updated_at": "2026-01-01T00:00:00Z",
  "title": "string",
  "content_type": "url",
  "look_name": "string",
  "can_undo": true,
  "image_version": "string"
}
```

400 Invalid request, low contrast, logo refused, or a destination for a static code.

```
{
  "error": "string",
  "message": "string"
}
```

401 Missing or invalid API key.

```
{
  "error": "string",
  "message": "string"
}
```

404 No such code.

```
{
  "error": "string",
  "message": "string"
}
```

### Create up to 200 QR codes in one look

POST /api/qr/batch

Each item has a `label` and `data` or `content`. Items that fail (bad content, the dynamic limit) are listed in `failed`; the rest are made. `zip_url` downloads every SVG and PNG and a CSV (label, content, links).

#### Request body

- items array of object required

  At most 200 items.

  - label string required

    At most 100 characters.
  - data string

    The exact text to encode. Give `data` or `content`, not both.

    At most 2953 characters.
  - content any
- dynamic boolean

  Encode a short link whose destination can change later, with scan counts (links only: a `url` or `social` content, or `data` that is an http(s) URL).
- look string

  A saved look by name, or `none`. Omitted: your default look, if any.

  At most 60 characters.
- fg string

  Foreground color. Must be darker than the background, contrast ratio at least 3:1.
- bg string | any

  Background color or `transparent` (checked as white).
- gradient object

  Linear gradient replacing `fg`; both stops must pass the contrast check.

  - from string required
  - to string required
  - angle number

    Default: 0. Minimum 0. Maximum 360.
- shape string

  The code's shape: `classic` (square dots and corners), `rounded`, `dots` (round dots and corners) or `elegant`.

  One of: "classic", "rounded", "dots", "elegant".
- logo string

  An `https://` URL (fetched server-side: PNG, JPEG, SVG or WebP, up to 512 KB, 5 s timeout), `brand` for the default look's logo, `none`, or a data URL (`data:image/png;base64,…`) of a PNG, JPEG, SVG or WebP up to 200 KB. Forces error correction H; takes at most 22% of the width.
- size integer

  Width and height in pixels.

  Minimum 128. Maximum 2048.
- margin integer

  Quiet zone in modules.

  Minimum 0. Maximum 8.
- ecc string

  One of: "L", "M", "Q", "H".

#### Example

```
curl -X POST 'https://qrsome.com/api/qr/batch' \
  -H 'Authorization: Bearer sk_qr_…' \
  -H 'Content-Type: application/json' \
  -d '{"items":[{"label":"string","data":"string","content":null}],"dynamic":true,"look":"string","fg":"string","bg":"string","gradient":{"from":"string","to":"string","angle":0},"shape":"classic","logo":"string","size":0,"margin":0,"ecc":"L"}'
```

#### Responses

201 The codes made and the ones that failed.

```
{
  "batch_id": "string",
  "codes": [
    {
      "id": "string",
      "kind": "static",
      "label": "string",
      "encoded": "string",
      "destination": "string",
      "short_url": "string",
      "svg_url": "https://example.com",
      "png_url": "https://example.com",
      "look": null,
      "created_at": "2026-01-01T00:00:00Z",
      "updated_at": "2026-01-01T00:00:00Z",
      "title": "string",
      "content_type": "url",
      "look_name": "string",
      "can_undo": true,
      "image_version": "string"
    }
  ],
  "failed": [
    {
      "index": 0,
      "label": "string",
      "error": "string"
    }
  ],
  "zip_url": "https://example.com"
}
```

400 Invalid request.

```
{
  "error": "string",
  "message": "string"
}
```

401 Missing or invalid API key.

```
{
  "error": "string",
  "message": "string"
}
```

429 Too many requests.

```
{
  "error": "string",
  "message": "string"
}
```

### Search your QR codes

GET /api/qr/search

Fuzzy (typos and accents forgiven) over the label, the link and its site, the WiFi network, the contact's name, the event and the look's name. Without `q`: the filtered codes, newest first.

#### Query parameters

- q string
- content_type string
- dynamic boolean
- created_after string (date)
- created_before string (date)
- look string

  Only codes drawn in this saved look.
- limit integer

#### Example

```
curl 'https://qrsome.com/api/qr/search' \
  -H 'Authorization: Bearer sk_qr_…'
```

#### Responses

200 Best match first.

```
{
  "codes": [
    {
      "id": "string",
      "kind": "static",
      "label": "string",
      "encoded": "string",
      "destination": "string",
      "short_url": "string",
      "svg_url": "https://example.com",
      "png_url": "https://example.com",
      "look": null,
      "created_at": "2026-01-01T00:00:00Z",
      "updated_at": "2026-01-01T00:00:00Z",
      "title": "string",
      "content_type": "url",
      "look_name": "string",
      "can_undo": true,
      "image_version": "string"
    }
  ],
  "total": 0
}
```

400 Invalid filter.

```
{
  "error": "string",
  "message": "string"
}
```

401 Missing or invalid API key.

```
{
  "error": "string",
  "message": "string"
}
```

### List your saved looks

GET /api/looks

#### Example

```
curl 'https://qrsome.com/api/looks' \
  -H 'Authorization: Bearer sk_qr_…'
```

#### Responses

200 Default first.

```
{
  "looks": [
    {
      "name": "string",
      "is_default": true,
      "fg": "string",
      "bg": "string",
      "gradient": {
        "from": "string",
        "to": "string",
        "angle": 0
      },
      "shape": "classic",
      "logo": true,
      "sample_svg_url": "https://example.com",
      "sample_png_url": "https://example.com",
      "updated_at": "2026-01-01T00:00:00Z"
    }
  ]
}
```

401 Missing or invalid API key.

```
{
  "error": "string",
  "message": "string"
}
```

### Save a look

PUT /api/looks

Creates the look, or updates the one with this name (case-insensitive): only the fields you send change. Colors are checked for contrast like a code. How many looks an account keeps depends on its plan (1 on Free); over it, 429 `limit_reached`.

#### Request body

- name string required

  The look's name; saving an existing name (case-insensitive) updates it.

  At most 60 characters.
- logo string

  An https URL of a PNG, JPEG, SVG or WebP up to 512 KB (fetched once and kept), a data URL of one up to 200 KB, or `none`. Omitted: the look keeps its logo.
- fg string

  Foreground color, hex.
- bg string

  Background color, hex, or "transparent".
- gradient object

  - from string required
  - to string required
  - angle number
- shape string

  The code's shape: `classic` (square dots and corners), `rounded`, `dots` (round dots and corners) or `elegant`.

  One of: "classic", "rounded", "dots", "elegant".
- default boolean

  Make it the default look. The first look saved becomes the default.
- from_code string

  Copy this code's shape, color and logo; fields you send win.

#### Example

```
curl -X PUT 'https://qrsome.com/api/looks' \
  -H 'Authorization: Bearer sk_qr_…' \
  -H 'Content-Type: application/json' \
  -d '{"name":"string","logo":"string","fg":"string","bg":"string","gradient":{"from":"string","to":"string","angle":0},"shape":"classic","default":true,"from_code":"string"}'
```

#### Responses

200 Saved.

```
{
  "name": "string",
  "is_default": true,
  "fg": "string",
  "bg": "string",
  "gradient": {
    "from": "string",
    "to": "string",
    "angle": 0
  },
  "shape": "classic",
  "logo": true,
  "sample_svg_url": "https://example.com",
  "sample_png_url": "https://example.com",
  "updated_at": "2026-01-01T00:00:00Z"
}
```

400 Empty look, low contrast or logo refused.

```
{
  "error": "string",
  "message": "string"
}
```

401 Missing or invalid API key.

```
{
  "error": "string",
  "message": "string"
}
```

409 Too many looks, or changed at the same time.

```
{
  "error": "string",
  "message": "string"
}
```

### Delete a look

DELETE /api/looks

Codes drawn in it keep their look.

#### Query parameters

- name string required

#### Example

```
curl -X DELETE 'https://qrsome.com/api/looks?name=string' \
  -H 'Authorization: Bearer sk_qr_…'
```

#### Responses

204 Deleted.

401 Missing or invalid API key.

```
{
  "error": "string",
  "message": "string"
}
```

404 No such look.

```
{
  "error": "string",
  "message": "string"
}
```

### Restore the previous QR appearance

POST /api/qr/{id}/undo

Restores a code's previous appearance (shape, colors and logo), including changes made in chat. Up to 20 appearances are kept. Its content, label, dynamic destination and saved looks stay unchanged. Returns the code in the preview with its current downloads.

#### Path parameters

- id string required

#### Example

```
curl -X POST 'https://qrsome.com/api/qr/string/undo' \
  -H 'Authorization: Bearer sk_qr_…'
```

#### Responses

200 Restored QR code

```
{
  "id": "string",
  "kind": "static",
  "label": "string",
  "encoded": "string",
  "destination": "string",
  "short_url": "string",
  "svg_url": "https://example.com",
  "png_url": "https://example.com",
  "look": null,
  "created_at": "2026-01-01T00:00:00Z",
  "updated_at": "2026-01-01T00:00:00Z",
  "title": "string",
  "content_type": "url",
  "look_name": "string",
  "can_undo": true,
  "image_version": "string"
}
```

409 No earlier look, or concurrent change
