# Public Link

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

Public Link allows you to share your notebook widely by creating a public link or embed code. Anyone with the link can access the shared content without needing a login.

## Key Features

* Public Accessibility:
  * Anyone with the link can view the content, facilitating easy sharing without access restrictions.
* Embed Code:
  * Easily embed the notebook into websites or blogs using the generated embed code.
* SEO Control:
  * Public links are set to “no-index” to prevent search engines from indexing the content, ensuring privacy and control over the shared data.
* Customizable Expiration:
  * Set an expiration date for the published content to automatically delete after a specified number of days, providing an extra layer of security.
* High Performance:
  * Data is pre-fetched and saved as a snapshot, resulting in faster display speeds.

## How to Set Up

1. Open the notebook
   * Open the notebook you want to share.
2. Set Permissions
   * In the header, click the `Share` button. Select `Public link` tab.
   * Click `Create public link` button.
   * Choose the specific pages you want to include in the public link.
3. Set Expiration (Optional)
   * If you want to set the expiration, enable the expiration option and set the number of days after which the published content will be deleted.
4. Publish
   * Click the `Publish` button to generate the public link.
5. Distribute
   * Copy the link or embed code and distribute it as needed.


---

# 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://docs.codatum.com/sharing/public-link-and-embed.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.
