> ## Documentation Index
> Fetch the complete documentation index at: https://docs.sequenzy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Create Share Link

> Create or fetch the campaign's public view-in-browser link

Create a public, shareable "view in browser" link for the campaign. The hosted page renders an anonymized copy - a sample contact instead of subscriber data, an inert unsubscribe link, and no open or click tracking - so you can forward the URL to anyone.

The call is idempotent: if a link is already active, the same URL is returned with `created: false` instead of rotating it, so copies you have already shared keep working. Revoke it with [Revoke Share Link](/api-reference/campaigns/share-link-revoke). The current link is also reported as `shareUrl` on [Get Campaign](/api-reference/campaigns/get) (`null` when none is active).

Email campaigns only - SMS campaigns have no browser view.

## Request

<ParamField path="campaignId" type="string" required>
  Campaign ID.
</ParamField>

This endpoint does not accept a request body.

```bash theme={null}
curl -X POST "https://api.sequenzy.com/api/v1/campaigns/camp_abc123/share-link" \
  -H "Authorization: Bearer YOUR_API_KEY"
```

## Responses

<ResponseExample>
  ```json 200 theme={null}
  {
    "success": true,
    "shareUrl": "https://sequenzy.com/view/campaign/8f2kL9qWm3ZxYv71TnB4c5RdVaEuGh0s",
    "shareToken": "8f2kL9qWm3ZxYv71TnB4c5RdVaEuGh0s",
    "created": true
  }
  ```

  ```json 400 theme={null}
  {
    "error": "Only email campaigns have a browser view to share."
  }
  ```

  ```json 401 theme={null}
  {
    "error": "Invalid API key"
  }
  ```

  ```json 404 theme={null}
  {
    "error": "Campaign not found"
  }
  ```
</ResponseExample>
