---
title: "High Error Correction QR Code API — Rugged codes | Imejis"
description: "Level-H QR codes survive up to 30% damage — ideal for small prints or logo overlays — with the payload swapped on every API call. Generate yours free."
url: "https://www.imejis.io/components/qr/high-error-correction"
---

# High Error Correction QR Code API — Rugged codes | Imejis

Level 'H' survives up to 30% damage — use when printing small or overlaying a logo.

## Use cases

- Small printed codes on labels and tickets
- QR codes with a logo placed over the center
- Codes destined for rough physical environments

## Properties

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| `value` | `string` | — | The string encoded into the QR code. |
| `errorCorrectionLevel` | `'L' \| 'M' \| 'Q' \| 'H'` | `"M"` | QR error-correction level (higher survives more damage). |
| `margin` | `number` (min 0) | `4` | Quiet-zone margin around the code in modules. |
| `colorDark` | `color` | `"#000000"` | Color of the dark modules. |
| `colorLight` | `color` | `"#ffffff"` | Color of the light modules (background). |
| `opacity` | `number` | `1` | Overall component opacity from 0 (transparent) to 1 (opaque). |
| `borderWidth` | `number` | `0` | Border thickness in pixels around the component. |
| `borderColor` | `color` | `"transparent"` | Border color (any CSS color). |
| `borderStyle` | `'solid' \| 'dashed' \| 'dotted' \| 'double' \| 'none'` | `"solid"` | Border line style. |
| `borderRadius` | `number` | `0` | Corner radius in pixels. |
| `boxShadow` | `string` | — | CSS box-shadow applied to the component, e.g. "0 4px 6px rgba(0,0,0,0.1)". |

## Design JSON (this variant)

```json
{
  "title": "QR code sample",
  "description": "A dynamic QR code",
  "dimensions": {
    "width": 800,
    "height": 420
  },
  "background": {
    "color": "#ffffff"
  },
  "components": [
    {
      "id": "sample-qr",
      "key": "link",
      "type": "qr",
      "position": {
        "x": 290,
        "y": 100
      },
      "rotation": 0,
      "size": {
        "width": 220,
        "height": 220
      },
      "dynamic": true,
      "properties": {
        "value": "https://imejis.io",
        "errorCorrectionLevel": "H",
        "margin": 4,
        "colorDark": "#000000",
        "colorLight": "#ffffff",
        "opacity": 1
      }
    }
  ]
}
```

## Examples

### Small product label code

A tightly-margined level-H code that stays scannable at label size.

API overrides that reproduce this example:

```json
{
  "link.errorCorrectionLevel": "H",
  "link.value": "https://imejis.io/p/SKU-2041?utm_source=label",
  "link.margin": 2
}
```

### Outdoor poster QR

A street-poster code built to survive scuffs and weather damage.

API overrides that reproduce this example:

```json
{
  "link.errorCorrectionLevel": "H",
  "link.value": "https://imejis.io/gigs?utm_source=poster&utm_medium=street"
}
```

## API overrides

Set '<key>.value' (or just '<key>') to encode a different URL or string in every render; module colors are overridable as well.

Flat override payload (`key.property` addressing) with the sample design's current values — send only the keys you want to change:

```json
{
  "link.value": "https://imejis.io",
  "link.errorCorrectionLevel": "M",
  "link.margin": 4,
  "link.colorDark": "#000000",
  "link.colorLight": "#ffffff",
  "link.opacity": 1
}
```

```bash
curl --location 'https://render.imejis.io/v1/{{YOUR_DESIGN_ID}}' \
--header 'dma-api-key: {{YOUR_API_KEY}}' \
--header 'Content-Type: application/json' \
--data '{
    "link.value": "https://imejis.io",
    "link.errorCorrectionLevel": "M",
    "link.margin": 4,
    "link.colorDark": "#000000",
    "link.colorLight": "#ffffff",
    "link.opacity": 1
}'
```

`{{YOUR_DESIGN_ID}}` and `{{YOUR_API_KEY}}` are placeholders: first create
the design in your account (paste the sample design JSON above into the
editor at https://app.imejis.io, or create it programmatically via the
imejis MCP server's `create_design` + `update_design` tools), then render
it with the design's id and one of your API keys.

Agents: the MCP server at https://api.imejis.io/api/mcp exposes this same
catalog as structured data via the `list_component_types` tool (property
kinds, allowed values, bounds, ready-to-use sample designs).

## Related

- [QR Code component](https://www.imejis.io/components/qr.md) — full reference and FAQs
- [Branded](https://www.imejis.io/components/qr/branded.md) — On-brand module colors instead of plain black on white.
- [Dark inverse](https://www.imejis.io/components/qr/dark-inverse.md) — Light modules on a dark ground — for dark-mode designs and night-time signage.
