# How to Create a Public Template Link

### Generate a link

<figure><img src="/files/kccKDGTOHFYCr0SEs770" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
If the template uses dictionaries, each dictionary must also be shared publicly (or marked as official).
{% endhint %}

1. Open the template in edit mode, then go to the **Template** tab.
2. On the **Template** tab, enter a **subject**.
3. Change the template access level from **My mailbox** to **Everyone**.
4. Open the **Flow** tab and add recipients for the required roles.
5. Click the <img src="/files/vG66BIgRvKk6Pubc3P96" alt="" data-size="line"> button to update the template.
6. Back on the **Template** tab, click the **Template menu** <img src="/files/6NooSdwz0ktut3AiV67I" alt="" data-size="line"> icon, then click **Get link**.
7. In the pop-up, choose what to copy:
   * **Shareable link**
   * **Embed code**
8. Copy the link, generate a new one, or revoke the current one.

{% hint style="info" %}
An account is created automatically for anyone who sends an envelope using this link.
{% endhint %}

### Embed code and redirect URL

The same window provides an embed code. Use it to start creating the envelope within an iframe. You can also add a redirect URL. This link will open in a new tab after the envelope is sent.

To do so, add the `redirectUrl` parameter to your link or embed code:

`?redirectUrl=https%3A%2F%2Fexample.com%2Fthank-you`

### Revoke the link

1. Click the <img src="/files/90YvQfMugrJMAnXrYMZ3" alt="" data-size="line"> button to disable the current link and embed code.
2. Click **Get link** to create a new one.

Revoked links cannot be restored.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://support.docstudio.com/user/template-links-and-public-envelope-creation/how-to-create-a-public-template-link.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
