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