Skip to the page

Guides · Integrations

Connecting other systems

A project sends changes out, calls your code, takes calls in and signs people in through the same pieces an app uses. Every connection runs under your access rules.

Five kinds of connection#

A project connects to external systems through the same compiled primitives your application uses: commit-ordered change logs, guarded actions, transactional jobs and OpenAPI-described queries. There is no separate connector daemon to deploy or maintain.

Inbound webhooks once

Verify Stripe, GitHub or Clerk signatures over raw bytes and commit the event record alongside your domain mutation in one transaction.

Commit-ordered sync out

Stream policy-filtered GET /changes pages or signed rows webhooks into ClickHouse, Snowflake, BigQuery, Kafka or search indexes.

OpenAPI for external tools

Every branch serves a live GET /openapi.json contract so Retool, n8n, Zapier and Postman call deployed queries with scoped keys.

DirectionMechanismUse for
Changes outThe change log. Every committed change in commit order, delivered to your route as a signed webhook or paged over HTTPS.Use forWarehouses, search indexes, message queues and caches that mirror your rows.
Calls outActions. A deployed gatekeeper query checks caller access first, then invokes your handler over HTTPS.Use forCard charges, transactional emails or model calls where the caller awaits the result.
Work laterJobs and schedules. Deployed queries or actions queued in the same commit or on a cron clock and retried until done.Use forPost-commit receipts, delayed reminders and recurring morning digests.
Calls inThe Project API. Each deployed query is a typed HTTPS endpoint described in the branch’s live OpenAPI specification.Use forInbound third-party webhooks, internal Retool dashboards and no-code automations.
Sign-inBuilt-in sign-in. Connects external OpenID Connect issuers, custom SMTP mailers and signed authentication event webhooks.Use forEnterprise SSO (Okta, Microsoft Entra), branded auth emails and sign-up analytics.

Starting points#

Pick the recipe below that matches the external system and direction of data flow.

What you want to doStart withBuilds
Keep a warehouse currentWarehouse syncBuildsOne full copy, then every change. A webhook wakes the worker.
Keep a search index or a cache in stepSearch index & cache syncBuildsChanged rows sent to a route that saves or removes each document.
Put every change on Kafka, SQS or Pub/SubQueues & streamsBuildsA small relay that publishes one message per row in commit order.
Take Stripe’s, GitHub’s or Clerk’s webhooksReceiving webhooksBuildsA route that records each event once and updates your rows in the same commit.
Send an email, a Slack message or a push when a row changesEmail, Slack & pushBuildsA receipt queued in the same commit as the order, and a channel message for every refund.
Sign people in through Okta or Entra, or send sign-in mail yourselfIdentity providers & sign-in eventsBuildsAn issuer, a mail server and sign-up events sent to your route.
Let Retool, n8n, Zapier or a custom GPT call your queriesOpenAPI & no-code toolsBuildsThe project’s OpenAPI document and a key limited to your deployed queries.

Access rules for connections#

Every external integration authenticates with a branch service key and receives only the access your schema policies grant that role. No integration bypasses row-level rules.

One key per connection
Label each key for its target integration. napalm keys reach audits how many rows the key can read or mutate before cutover, and napalm keys revoke disables one integration without disturbing any other.
Read-only where possible
Downstream sync workers only read. Napalm rejects every mutation from a key created with --read-only.
Outgoing rows
Change-log pages and rows webhooks omit any record the key’s access policies hide, so restricted rows never leave the database.
Signatures
Outbound webhooks carry an HMAC-SHA256 header under a secret shown once, and action deliveries carry an ES256 assertion signed by the branch. Verify both over raw bytes before parsing.
Allowed hosts
napalm webhooks hosts restricts which domains a branch’s webhooks and external actions may contact.

Dashboards and BI tools#

A project’s address serves its HTTPS API and does not speak the Postgres wire protocol, so Metabase, Grafana, Looker and Tableau cannot connect to a project directly.

For charts over all your rows
Point the tool at a warehouse copy that Warehouse sync keeps current. Those tools all read Postgres, ClickHouse, BigQuery and Snowflake.
For a few numbers on a page
Deploy a query that counts or groups, and call the query from the tool. OpenAPI & no-code tools covers Retool and similar tools.

Connections covered in other parts#

Dedicated guides cover payments, AI agent protocols, GitHub branch workflows, custom backends and bucket imports.

Stripe
Billing & payments builds checkout, the webhook route, seats and credits.
Claude, ChatGPT, Cursor
Every project is an MCP server. Start with Building with agents.
GitHub
A branch for every pull request, and a schema push when a pull request merges. See Environments & going live.
Your own server
A backend service calls a project from Python or Go as the requesting person or as the service.
Files in another bucket
napalm files store import copies objects from S3 or any S3-compatible store. Files & object storage has the rest.

Type a word or two to search every docs page.