> ## 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.

# Revoke Share Link

> Revoke the email's public view-in-browser link

Revoke the email's public share link. The hosted URL returns 404 immediately. Creating a new link later mints a different URL - previously distributed copies stay dead.

Returns `revoked: false` when the email had no active link, which is not an error.

## Request

<ParamField path="templateId" type="string" required>
  Email/template ID, or a transactional email's ID or slug.
</ParamField>

This endpoint does not accept a request body.

```bash theme={null}
curl -X DELETE "https://api.sequenzy.com/api/v1/templates/order-confirmation/share-link" \
  -H "Authorization: Bearer YOUR_API_KEY"
```

## Responses

<ResponseExample>
  ```json 200 theme={null}
  {
    "success": true,
    "revoked": true
  }
  ```

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

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