# QR Generator

A QR code for any text or URL, returned as SVG — the generic sibling of the QRIS tools.

- Method: `GET`
- Path: `/v1/utility/qr`

**Parameters**

| Name | Type | | Description |
|---|---|---|---|
| `text` | string | required | What to encode — a URL, text, vCard, anything. |
| `size` | integer | optional | Viewport pixels, 64-1024. |

**Example request**

```bash
curl https://api.diraz.ae/v1/utility/qr \
  -H "Authorization: Bearer drz_live_…"
```

**Example response**

```json
{
  "data": {
    "text": "https://diraz.ae",
    "size": 256,
    "svg": "<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 33 33'>...</svg>"
  },
  "meta": {
    "request_id": "req_7Q2fK4mZ"
  }
}
```