Portals
A portal is a page of yours, hosted by the platform, with its own address and a button that runs the automations in your project. It is how you hand an automation to people who do not use the dashboard: sales, operations, the board.
The content is plain HTML — what you write is what shows up. The platform takes care of three things: hosting it, controlling who gets in, and giving the page a safe way to start automations.
Creating one
In the dashboard, under Portals, pick the project, give it a title and an address (lowercase letters, digits and hyphens) and click Create portal. You write the content right there — or let an automation publish it, which is the natural path when the page shows a report that changes on its own.
From code, put the page in pages/<address>.html and datallog push publishes it; opening the link is in Configure by API.
A portal lives inside a project, and the project is what decides which automations it can reach.
Opening, closing and replacing the link
Creating and releasing are separate decisions: a freshly created portal starts Closed.
| Action in the dashboard | What happens |
|---|---|
| Open by link | the portal gets its own address, outside the dashboard |
| Copy link | the address, always the same one, to send or bookmark |
| Replace the link | mints another address and immediately kills every link already out there |
| Close | anyone holding the link now sees "not available" |
Who can get in
The address alone does not open it. Whoever clicks must be signed in and belong to the account that owns the portal. The link is the address, not the credential — and it stays revocable at any moment through Replace the link.
For people who only need to see portals, the Team screen has the "portals only" role: they sign in, see the portals released to them, and no other screen of the platform.
Running an automation from the page
Inside the portal there is a datallog object, injected by the platform:
<button id="run">Refresh</button>
<pre id="out"></pre>
<script>
document.getElementById('run').addEventListener('click', async () => {
const r = await datallog.run('report', { month: '2026-10' });
const body = r && r.result !== undefined ? r.result : r;
document.getElementById('out').textContent = JSON.stringify(body, null, 2);
});
</script>datallog.run(automation, seed) starts an automation in the same project as the portal — the project is the boundary. The seed reaches your Python function exactly as it would through any other path.
What comes back depends on how the automation responds:
- on Wait for the result, the response already carries the result;
- on Run in the background — or when the run goes past the call budget — you get a body with an
exec_uuid, and the run stays alive: the result arrives through the webhook and the execution history.
Handle both cases, or the screen will sit waiting for a result that is coming down another road.
There is no run limit: the portal runs any automation in its project, and anyone with the link can trigger it. To cut access, close the portal or replace the link.
The address and the page's isolation
Every portal has an address of its own, at <name>.portais.datallog.io — deliberately outside the platform's domain. The page runs in an <iframe sandbox> with its own origin: the browser treats each portal as a site separate from the dashboard and from every other portal.
In practice:
| Works | Detail |
|---|---|
localStorage, sessionStorage, IndexedDB | scoped to that portal; another portal cannot read them |
microphone, camera and screen (getUserMedia, getDisplayMedia) | the browser asks whoever opened it, and the permission covers that address only |
| knowing who opened it | datallog.usuario carries email and nome |
| Does not work | Why |
|---|---|
| reading the session cookie | it is HttpOnly and exists only on that address |
| calling our API with the visitor's session | use datallog.run, which carries the right credential |
| reaching the dashboard or another portal | they are other sites to the browser |
The rest of the sandbox allows what a screen needs: scripts, forms, modals, downloads and opening links in a new tab.
Who opened it, on the automation side
datallog.usuario is there so the screen can say "hi, Jane", but whatever runs in the browser can be changed by whoever is in it. To decide anything (permissions, authorship, issuing a token), read it in the automation: the platform puts _portal_usuario ({"email", "nome"}) in the seed of every run started from the portal, and discards whatever the page tries to send under that key.
@automation()
def sign_in(seed=None):
who = (seed or {}).get("_portal_usuario") or {}
return {"hello": who.get("nome")}Careful with HTML from outside
The page's script holds the credential datallog.run uses. Outside data written with innerHTML (a customer name, spreadsheet text, an API response) can turn into script and use that credential. Prefer textContent.
Media is your responsibility
If the portal records or streams audio, video or screen, tell the people being recorded (see the terms of use). Datallog can turn media off for a portal used abusively.
Checklist for a new portal
- create the portal in the dashboard and write (or publish) the content;
- Open by link and copy the address;
- switch the automations the page calls to Wait for the result, so answers come back immediately;
- test it inside the portal, not by opening the HTML on your machine — the isolation and
datallogonly exist there; - if the link gets out of your hands, Replace the link.

