---
title: "Create share link"
method: POST
path: "/templates/{templateId}/share-link"
tags: ["Templates"]
---

# Create share link

`POST /templates/{templateId}/share-link`

Creates (or fetches) the public view-in-browser link for an individual email - a transactional email, a sequence email, or a standalone template. Accepts a template ID or a transactional email's ID or slug; for a sequence email, pass the step's emailId. The hosted page renders an anonymized copy - sample contact, inert unsubscribe link, no open/click tracking - so the URL is safe to forward to anyone. Idempotent - an already-active link is returned with created=false instead of being rotated. Campaigns use their own campaign-level share link, which follows the A/B winning variant.

## Path parameters

- `templateId` string, required

## Response `200`

Share link active

- object
  - `success` boolean
  - `shareUrl` string — Public anonymized view-in-browser URL.
  - `shareToken` string — Capability token embedded in the URL.
  - `created` boolean — False when an already-active link was returned instead of minted.

## Other responses

- `401` — Unauthorized
- `404` — Template not found

## Changes

- **2026-08-19** `ba3a29c6eb33` — 2 info
  - added the optional property `retryable` to the response with the `401` status
  - added the optional property `retryable` to the response with the `404` status
- **2026-08-16** `6fd2903b91ce` — 2 info
  - added the optional property `code` to the response with the `401` status
  - added the optional property `code` to the response with the `404` status
- **2026-08-13** `fc5624c7d57a` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/sequenzy/apis/sequenzy-api/changes/templates/:templateId/share-link/post.md)

---

[API](https://skmtc.dev/sequenzy/apis/sequenzy-api.md) · [All operations](https://skmtc.dev/sequenzy/apis/sequenzy-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/sequenzy/sequenzy-api/revisions/73f826277d9a/schema)
