> For the complete documentation index, see [llms.txt](https://support.docstudio.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://support.docstudio.com/user/template-links-and-public-envelope-creation/how-to-create-a-public-template-link.md). Agents can also search and read this documentation through its [MCP server](https://support.docstudio.com/~gitbook/mcp).

# How to Create a Public Template Link

This document explains how to create a public template link, copy a shareable link or embed code, add a redirect URL, and revoke or regenerate the link.

### Before you start

Make sure you can edit the template and save changes.

* add a value to **Subject**
* configure recipients for all required roles in **Flow**
* share each dictionary publicly or mark it as official if the template uses dictionaries

### Create a public template link

Use a public template link to let other users create envelopes from this template.

1. Open the template in edit mode, then go to the **Template** tab.
2. On the **Template** tab, enter a value in **Subject**.

{% columns %}
{% column %}

<figure><img src="https://2962383972-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoqUiFHjwtCCGSaEDqbXb%2Fuploads%2FFiJkS4IACcHG3yfBCPuB%2Fimage.png?alt=media&amp;token=1c9d2f04-2c68-4619-86e0-b1da33ea6d64" alt=""><figcaption></figcaption></figure>
{% endcolumn %}

{% column %}

<figure><img src="https://2962383972-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoqUiFHjwtCCGSaEDqbXb%2Fuploads%2Fd5RmxjlWkJ9P5lnqpmgE%2Fimage.png?alt=media&amp;token=231bb7a2-758a-4b9b-8ddd-05dc640b4794" alt="" width="263"><figcaption></figcaption></figure>
{% endcolumn %}
{% endcolumns %}

3. Change **Template access** from **My mailbox** to **Everyone**.

{% columns %}
{% column %}

<figure><img src="https://2962383972-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoqUiFHjwtCCGSaEDqbXb%2Fuploads%2FLIlm1Epce4e1NNFDdC2z%2Fimage.png?alt=media&amp;token=1c306aeb-e7d5-4818-96a7-d4b978099957" alt=""><figcaption></figcaption></figure>
{% endcolumn %}

{% column %}

<figure><img src="https://2962383972-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoqUiFHjwtCCGSaEDqbXb%2Fuploads%2FkQjjguAM5y2CH1z7ELi3%2Fimage.png?alt=media&amp;token=7d2a190a-d044-4e95-8647-31323ca6b0c4" alt=""><figcaption></figcaption></figure>
{% endcolumn %}
{% endcolumns %}

4. Open the **Flow** tab and add recipients for the required roles.

{% columns %}
{% column %}

<figure><img src="https://2962383972-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoqUiFHjwtCCGSaEDqbXb%2Fuploads%2FwIrXHezDbC6s0TfsIsRt%2Fimage.png?alt=media&amp;token=af9d482d-8f67-46cb-9da5-85da1d763420" alt=""><figcaption></figcaption></figure>
{% endcolumn %}

{% column %}

<figure><img src="https://2962383972-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoqUiFHjwtCCGSaEDqbXb%2Fuploads%2FrxgCBsnwwm0V6e2oLK9P%2Fimage.png?alt=media&amp;token=a337d924-b437-473e-88c8-af92e7fb4028" alt=""><figcaption></figcaption></figure>
{% endcolumn %}
{% endcolumns %}

5. Click the <img src="https://2962383972-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoqUiFHjwtCCGSaEDqbXb%2Fuploads%2Fc68WqWTYVztbsx4LcYzz%2Fimage.png?alt=media&amp;token=07e983eb-2332-4047-8a86-935fc26ad2b2" alt="" data-size="line"> button to save the template.
6. Return to the **Template** tab.
7. Click **Template menu** <img src="https://2962383972-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoqUiFHjwtCCGSaEDqbXb%2Fuploads%2FtyJAD3XEZ9GOlYisnHZ5%2Fimage.png?alt=media&amp;token=84fd6648-5c94-4fdd-833d-a6fec0198b46" alt="" data-size="line">, then click **Get link**.
8. In the modal, choose one option:
   * **Shareable link** — open the public send form in a browser tab
   * **Embed code** — open the same form inside your website in an iframe
9. Copy the link or embed code.

{% columns %}
{% column %}

<figure><img src="https://2962383972-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoqUiFHjwtCCGSaEDqbXb%2Fuploads%2Fo5ned5wztUe5iREVaS8V%2Fimage.png?alt=media&amp;token=a707bbbd-a2e9-4523-9261-a834931705da" alt=""><figcaption></figcaption></figure>
{% endcolumn %}

{% column %}

<figure><img src="https://2962383972-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoqUiFHjwtCCGSaEDqbXb%2Fuploads%2Fl8VLmkErLvi2f66ogpnH%2Fimage.png?alt=media&amp;token=3cf82193-db81-4664-90b8-f7dde7d72a6a" alt=""><figcaption></figcaption></figure>
{% endcolumn %}
{% endcolumns %}

### Add a redirect URL

Add the `redirectUrl` parameter to the public link or to the iframe source. URL-encode the value.

Open the redirect URL in a new tab after the envelope is sent successfully.

### Regenerate or revoke the link

1. Click **Template menu** <img src="https://2962383972-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoqUiFHjwtCCGSaEDqbXb%2Fuploads%2FtyJAD3XEZ9GOlYisnHZ5%2Fimage.png?alt=media&amp;token=84fd6648-5c94-4fdd-833d-a6fec0198b46" alt="" data-size="line">, then click **Get link**.
2. Do one of the following:
   * Click **Generate a new one** to replace the current public link
   * Click the <img src="https://2962383972-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoqUiFHjwtCCGSaEDqbXb%2Fuploads%2F4IxmSDtX5nH351V3tsCT%2Fimage.png?alt=media&amp;token=130707f4-5577-4375-9239-ee7484a87c4a" alt="" data-size="line"> button to disable the current link and embed code
3. If you revoke the link, click **Get link** again to create a new one.

{% hint style="warning" %}
Revoked links cannot be restored.
{% endhint %}

### Related topics

* [How Registered Users Can Create an Envelope via a Template Link](https://support.docstudio.com/user/template-links-and-public-envelope-creation/how-registered-users-can-create-an-envelope-via-a-template-link.md)
* [How Unregistered Users Can Create an Envelope via a Template Link](https://support.docstudio.com/user/template-links-and-public-envelope-creation/how-unregistered-users-can-create-an-envelope-via-a-template-link.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
