> 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

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 dynamically by asking a question.

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

```
GET https://docs.filemail.com/integrations/integrate-portal-page.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
