---
title: "Create a share link"
description: "A read-only report link for a client or a team, with what it shows and an optional passcode."
url: https://docs.sonderlabs.co.uk/campaigns/share-links
---

# Create a share link

A read-only report link for a client or a team, with what it shows and an optional passcode.

`POST /v1/campaigns/{id}/shares` (coming soon)

> **Coming soon:** this endpoint is not served yet; the shape below is what it will look like. [Ask for it](https://docs.sonderlabs.co.uk/access) if you need it.

The link opens the campaign's report without a Sonder account. Choose which parts it shows; change or revoke it any time with `PUT` and `DELETE` on `/v1/campaigns/{id}/shares/{token}`.

## Platform support

- TikTok: Live
- Instagram: Live
- YouTube: Live
- Facebook: Live
- X: Live
- Threads: Live
- Reddit: Live
- Snapchat: Live

## Parameters

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | string | yes | The campaign id. |
| `show` | body | string[] | no | Any of `posts`, `creators`, `comments`, `audience`, `emv`, `owned`, `chat`. Default posts and creators. |
| `passcode` | body | string | no | Ask for this before showing the report. |

## Example

cURL:

```bash
curl -X POST https://yourteam.sonderlabs.co.uk/v1/campaigns/red-bull-rampage-2026/shares \
  -H "Authorization: Bearer $SONDER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "show": [
      "posts",
      "creators",
      "comments"
    ]
  }'
```

JavaScript:

```js
const res = await fetch("https://yourteam.sonderlabs.co.uk/v1/campaigns/red-bull-rampage-2026/shares", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.SONDER_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "show": [
      "posts",
      "creators",
      "comments"
    ]
  }),
});
const data = await res.json();
```

Python:

```python
import os, requests

res = requests.post(
    "https://yourteam.sonderlabs.co.uk/v1/campaigns/red-bull-rampage-2026/shares",
    headers={"Authorization": f"Bearer {os.environ['SONDER_API_KEY']}"},
    json={
        "show": [
            "posts",
            "creators",
            "comments"
        ]
    },
)
data = res.json()
```

Response:

```json
{
  "token": "shr_4bq7mx",
  "url": "https://yourteam.sonderlabs.co.uk/p/shr_4bq7mx",
  "show": [
    "posts",
    "creators",
    "comments"
  ],
  "hasPasscode": false,
  "createdAt": "2026-11-13T12:00:00Z"
}
```
