---
title: "Public Dashboards & Custom Domains"
description: "Share interactive dashboards with external users through secure public links or branded custom domains — with fine-grained control over what data, tools, and voice capabilities are exposed."
updated: 2026-11-16
---

# Public Dashboards & Custom Domains

Every Toolbelt dashboard starts as a private organization tool. But some dashboards are built to be seen by people outside your organization — customers viewing a status page, prospects exploring a live demo, or stakeholders reviewing a report. Public Dashboards let you share interactive HTML apps with anyone through a secure link or your own custom domain, without requiring viewers to log in to Toolbelt.

This page explains what Public Dashboards are, how the security model protects your organization, how to configure custom domains with automatic SSL, and how to publish and share your work.

:::cards 3

===card
title: External Sharing
icon: globe

Share a unique link or branded custom domain with anyone — customers, partners, or stakeholders — without requiring a Toolbelt login.

===card
title: Custom Domains
icon: link

Point your own domain (e.g., `dashboards.acme.com`) at Toolbelt with automated DNS verification and zero-touch Let's Encrypt SSL certificates.

===card
title: Secure by Default
icon: shield-check

The Public Bridge enforces a strict allowlist. Every tool, database, SQL write, and audio capability must be explicitly permitted before public viewers can access it.

:::

---

## How Public Dashboards Work

When you mark a dashboard page as public, Toolbelt generates a unique, unguessable URL. Anyone with that URL can view the page — but what they can *do* on that page is tightly controlled.

Toolbelt draws a clear line between two types of viewers:

- **Authenticated viewers** (logged-in team members inside Toolbelt) have full bridge access. They can use all tools, query any database, and chat with the assistant — no extra configuration needed.
- **Public viewers** (unauthenticated, visiting via the public URL or custom domain) are restricted by the **Public Bridge** security policy you configure.

This distinction means you never weaken security for your team by sharing a dashboard externally.

---

## Security & the Public Bridge

The Public Bridge is the security gateway that sits between public viewers and your private organization. It intercepts every request from the dashboard's frontend code and enforces your policy before anything reaches your data.

> **Warning:** Public dashboards expose organization capabilities to unauthenticated users. Always follow the principle of least privilege: enable **only** the capabilities and tools the dashboard actually needs.

### Capabilities

Capabilities are the top-level switches that control what types of operations a public dashboard can perform. Each capability is independently toggled:

| Capability | What it allows | Default |
|---|---|---|
| `listTools` | Discover available MCP tool names | Off |
| `runTool` | Execute MCP tools from the allowlist | Off |
| `executeSql` | Run DuckDB SQL queries against allowed databases | Off |
| `sqlWrites` | Allow `INSERT`, `UPDATE`, `DELETE`, and DDL statements | Off |
| `chat` | Send messages to the organization assistant | Off |
| `tts` | Allow `sdk.tts.generate()` (Gemini TTS, max 1,500 chars). Billed to workspace owner. | Off |
| `liveAudio` | Allow `sdk.liveAudio.start()` (real-time voice calls). Minutes billed to workspace owner. | Off |

If a capability is disabled, the Public Bridge rejects requests of that type — regardless of what the dashboard's code attempts to do.

### Voice & Audio on Public Dashboards

When you enable `tts` or `liveAudio` on a public dashboard, external visitors can hear spoken summaries or speak directly with your workspace assistant through their browser:

- **Cost and billing:** Public viewers do not authenticate. All TTS synthesis tokens and Live Audio connection minutes are billed directly to the workspace owner's organization credit balance.
- **TTS length cap:** Public TTS requests are strictly capped at 1,500 characters per generation (compared to 5,000 characters in private workspaces) to prevent credit exhaustion.
- **Single-use audio tickets:** When a public visitor starts a voice conversation with `sdk.liveAudio.start()`, Toolbelt mints a temporary, single-use ticket (`/bridge/live-audio/ticket`) rather than exposing raw API keys or session credentials.

### Allowed Tools (Allowlist)

When you enable the `runTool` capability, you must also provide an explicit list of tool names the dashboard is permitted to execute. This is a strict allowlist — any tool not on the list is blocked.

```json
"allowedTools": [
  "GitHub_search_repositories",
  "read_storage_file",
  "get_storage_file_url"
]
```

> **Tip:** If your public dashboard displays images or files from organization storage, add `read_storage_file` and `get_storage_file_url` to the allowlist. These are not inferred automatically from HTML source code — you must include them manually.

### Allowed Databases

When you enable the `executeSql` capability, you must specify which DuckDB database files the dashboard can query:

```json
"allowedDatabases": [
  "analytics.duckdb",
  "public-metrics.duckdb"
]
```

Only databases on this list are accessible. Queries referencing other files are rejected at the bridge level, before they reach DuckDB.

### SQL Restrictions

By default, the Public Bridge blocks **all** mutating SQL statements — `INSERT`, `UPDATE`, `DELETE`, and DDL operations like `CREATE TABLE` or `DROP`. Public viewers can only run `SELECT` queries.

If your dashboard requires write operations (for example, a public form that inserts survey responses), you can opt in by enabling the `sqlWrites` capability. This applies only to the databases in your `allowedDatabases` list.

> **Warning:** Enabling `sqlWrites` allows unauthenticated public users to insert or modify records in the allowed databases. Always ensure proper validation exists on the fields your form modifies.

### Allowed Domains (Embedding Restrictions)

When you embed a public dashboard in an external website using an `<iframe>`, Toolbelt checks the embedding domain against the **Allowed Domains** list in your dashboard's sharing settings. If the domain is not on the list, the iframe is blocked.

This prevents unauthorized websites from embedding your dashboard and protects against clickjacking attacks.

```html
<iframe 
  src="https://toolbelt.apexti.com/public/dashboard/dsh_12345/embed" 
  width="100%" 
  height="800px" 
  frameborder="0">
</iframe>
```

---

## Custom Domains

Toolbelt allows you to serve any public dashboard directly from your company's own custom domain (e.g., `status.yourcompany.com` or `metrics.clientportal.io`) instead of the default Toolbelt URL.

### How Custom Domains Work

1. **Add Your Domain:** In the dashboard's Publishing drawer, enter your custom hostname. Toolbelt generates a **pending domain claim** with a unique DNS verification token and the target server IP.
2. **Add DNS Records:** In your DNS provider (Cloudflare, Route 53, Namecheap, etc.), add two DNS records:
   - **A Record:** Point your hostname (e.g., `dashboards.yourcompany.com`) to the provided Toolbelt server IP.
   - **TXT Record:** Add a verification record at `_toolbelt-verify.dashboards.yourcompany.com` containing the unique verification token.
3. **Verify:** Click **Verify** in Toolbelt. Toolbelt queries public DNS resolvers to confirm both records. The TXT token guarantees that only the authentic DNS owner can claim the hostname.
4. **Automatic SSL/TLS:** Once verified, Toolbelt provisions a Let's Encrypt TLS certificate via an automated HTTP-01 challenge. Traffic is served securely over HTTPS with zero downtime.

### Serving & Security on Custom Domains

- **Root Path (`/`):** Requests arriving at the custom domain automatically serve the public dashboard at the root path (`/`).
- **Path Isolation:** Only that specific dashboard's public assets (`/public/dashboard/<token>/*`) are reachable on the host. Internal Toolbelt application routes, logins, and private APIs return `404` on the custom domain.
- **OAuth Connections on Custom Domains:** When public viewers connect third-party accounts through `sdk.connections` on a custom domain, Toolbelt uses single-use security tickets (`finalize` flow) to exchange authorization codes securely between the canonical redirect domain and the custom host.

---

## Creating and Sharing a Public Dashboard

### Step 1: Build the Page

Create a single-file page (`pageType='html'`) or multi-file app (`pageType='app'`) in workspace storage using the [Dashboard SDK](https://docs.apexti.com/features/dashboard-sdk.md):

```html
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>Public Metrics</title>
</head>
<body>
  <div id="app">Loading metrics...</div>

  <script>
    // Embedded SDK Class
    class ToolbeltSDK { /* ... see Dashboard SDK reference ... */ }
    const sdk = new ToolbeltSDK();

    async function init() {
      await sdk.ready();

      const rows = await sdk.executeSql(
        'SELECT date, total FROM daily_metrics ORDER BY date DESC LIMIT 30',
        [],
        'analytics.duckdb'
      );

      document.getElementById('app').innerHTML = renderMetrics(rows);
    }

    init();
  </script>
</body>
</html>
```

### Step 2: Configure Public Access

Use `update_dashboard_page` to enable public access and configure the security policy:

```json
{
  "action": "update_dashboard_page",
  "params": {
    "pageSlug": "daily-metrics",
    "isPublic": true,
    "publicBridge": {
      "enabled": true,
      "capabilities": {
        "executeSql": true,
        "listTools": true,
        "tts": false,
        "liveAudio": false
      },
      "allowedDatabases": ["analytics.duckdb"],
      "allowedTools": ["read_storage_file", "get_storage_file_url"]
    }
  }
}
```

### Step 3: Distribute

You can share your public dashboard through three channels:

1. **Direct Public Link:** Share the generated `publicUrl` directly with stakeholders.
2. **Custom Domain:** Direct visitors to your branded URL (e.g., `https://metrics.yourcompany.com`).
3. **Embedded iFrame:** Append `/embed` to the public link for a borderless iframe embed on your portal. Add your parent site to the Allowed Domains list.

### Optional: Set Link Expiration

Set an expiration timestamp on the public link when sharing time-sensitive reports or client reviews. Once expired, requests return a `403 Dashboard Expired` response.

---

## Security Checklist

Before sharing any public dashboard, review this checklist:

- [ ] **Enable only required capabilities:** Leave `chat`, `tts`, `liveAudio`, or `runTool` off if the dashboard only reads SQL data.
- [ ] **Review audio and voice billing:** If enabling `tts` or `liveAudio`, ensure your organization credit limits and overage settings are intentional.
- [ ] **Allowlist specific tools:** Add only the exact MCP tools invoked by the frontend.
- [ ] **Allowlist specific databases:** Expose only the database files needed for the public view.
- [ ] **Leave `sqlWrites` disabled** unless public users must submit records.
- [ ] **Set Allowed Domains** if the dashboard is embedded in an external iframe.
- [ ] **Verify no hardcoded credentials** appear in the HTML or client-side JavaScript.

---

## Related Topics

- [Dashboard SDK](https://docs.apexti.com/features/dashboard-sdk.md) — Build multi-file apps and interactive tools with the SDK.
- [Live Audio Chat](https://docs.apexti.com/features/live-audio.md) — Real-time conversational voice sessions and architecture.
- [Voice & Speech APIs](https://docs.apexti.com/features/voice-apis.md) — Programmatic REST endpoints for TTS and audio chat.
- [Dashboards](https://docs.apexti.com/features/dashboards.md) — Create and manage widget-based dashboards.
- [Auto-DuckDB](https://docs.apexti.com/features/auto-duckdb.md) — Query structured datasets with SQL.
- [Organization Storage](https://docs.apexti.com/features/storage.md) — Manage files, images, and static assets.
