---
title: "Branded QR Code API — On-brand colored QR codes | Imejis"
description: "Generate QR codes in your brand palette with custom dark and light module colors, encoding a new link on every API call. Create branded QR codes free."
url: "https://www.imejis.io/components/qr/branded"
---

# Branded QR Code API — On-brand colored QR codes | Imejis

On-brand module colors instead of plain black on white.

## Use cases

- Campaign QR codes matching brand guidelines
- Product packaging with on-brand codes
- Branded event signage and posters

## 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": "M",
        "margin": 4,
        "colorDark": "#4F46E5",
        "colorLight": "#EEF2FF",
        "opacity": 1
      }
    }
  ]
}
```

## Examples

### Spring campaign landing page

A sky-blue campaign QR linking to a UTM-tagged landing page.

API overrides that reproduce this example:

```json
{
  "link.colorDark": "#0EA5E9",
  "link.colorLight": "#F0F9FF",
  "link.value": "https://imejis.io/spring-sale?utm_source=print&utm_campaign=spring26"
}
```

### Packaging code in brand green

An on-pack QR in a forest-green palette pointing at product care info.

API overrides that reproduce this example:

```json
{
  "link.colorDark": "#166534",
  "link.colorLight": "#F0FDF4",
  "link.value": "https://imejis.io/care-guide?utm_source=packaging"
}
```

## 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
- [High error correction](https://www.imejis.io/components/qr/high-error-correction.md) — Level 'H' survives up to 30% damage — use when printing small or overlaying a logo.
- [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.
