> For the complete documentation index, see [llms.txt](https://docs.filemail.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.filemail.com/integrations/integrate-portal-page.md).

# Integrate Portal page

Do you want to insert a Filemail Portal page into your website? No problem, just follow this guide.

To insert a portal page on to your own website, you can use our embedded portal. Insert it anywhere on your webpage where you want the Portal uploader to appear.&#x20;

This is the minimum basic version which will show your default portal page:

<pre class="language-html" data-overflow="wrap"><code class="lang-html">&#x3C;div data-widget="portal" data-portal-url="https://<a data-footnote-ref href="#user-content-fn-1">your-subdomain</a>.filemail.com">&#x3C;/div>
&#x3C;script src="https://cdn.filemail.com/widgets/embed.js">&#x3C;/script>
</code></pre>

If you want to embed a specific non default portal, use the /p/your-portal, configured as the Public Portal link in our portal configuration:

<pre class="language-html" data-overflow="wrap"><code class="lang-html">&#x3C;div data-widget="portal" data-portal-url="https://<a data-footnote-ref href="#user-content-fn-1">your-subdomain</a>.filemail.com/p/your-portal">&#x3C;/div>&#x3C;script src="https://cdn.filemail.com/widgets/embed.js">&#x3C;/script>
</code></pre>

### Custom data fields

<table><thead><tr><th width="239.37890625">Data field</th><th>Description</th></tr></thead><tbody><tr><td>data-width</td><td>default 100%</td></tr><tr><td>data-height</td><td>default 800px</td></tr><tr><td>data-*</td><td>Other <code>data-*</code> attributes are forwarded as query parameters to the portal URL, which can be used to pre-populate fields.</td></tr></tbody></table>

#### Example with different prefilled values:

{% code overflow="wrap" %}

```html
<div data-widget="portal" data-portal-url="https://your-subdomain.filemail.com/p/your-portal" data-to="one.of.my@recipients.here" data-orderno="12345"></div><script src="https://cdn.filemail.com/widgets/embed.js"></script>
```

{% endcode %}

[^1]: your configured subdomain


---

# 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://docs.filemail.com/integrations/integrate-portal-page.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.
