---
title: "Create QR share link REST API | HitKeep"
description: "Reference for the HitKeep REST API operation Create QR share link, including request parameters, responses, and authentication notes."
canonical: "https://hitkeep.com/api/operations/apisitesidqr-codesqridshare/post/"
---

# Create QR share link REST API

POST

/api/sites/{id}/qr-codes/{qrID}/share

FetchcURL

```
const url = 'http://127.0.0.1:25737/api/sites/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/qr-codes/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/share';
const options = {method: 'POST', headers: {cookie: 'hk_token=<hk_token>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```
curl --request POST \
  --url http://127.0.0.1:25737/api/sites/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/qr-codes/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/share \
  --cookie hk_token=<hk_token>
```

-

Creates a read-only QR-only share link exposing one QR code’s stats and export. Requires site.manage_data.

## Authorizations

- **[cookieAuth](https://hitkeep.com/api/#cookieauth)**

## Parameters

### Path Parameters

**id**

required

string format: uuid

**qrID**

required

string format: uuid

## Responses

### 201

QR share link

application/json

object

**created_at**

string format: date-time

**id**

string format: uuid

**qr_code_id**

string format: uuid

**site_id**

string format: uuid

**token**

string

**token_hint**

string

**url**

string format: uri

##### Examplegenerated

```
{
  "created_at": "2026-04-15T12:00:00Z",
  "id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
  "qr_code_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
  "site_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
  "token": "example",
  "token_hint": "example",
  "url": "https://example.com"
}
```

[Previous List QR share links](https://hitkeep.com/api/operations/apisitesidqr-codesqridshare/get/)[Next Delete QR share link](https://hitkeep.com/api/operations/apisitesidqr-codesqridshareshareid/)
