Skip to the page

Guides · Integrations

Connecting other systems

Connect external webhooks, queues, warehouses, identity providers and OpenAPI tools under the same schema access policies your app uses.

Five kinds of connection#

A project connects to external systems through the same compiled primitives your application uses. You don’t deploy or maintain a separate connector daemon.

Idempotent inbound webhooks

Your route verifies raw-byte signatures and commits each event ID once.

Commit-ordered outbound sync

The change log streams policy-filtered writes into warehouses, queues and search indexes.

Live OpenAPI specification

External tools import your live spec and call deployed queries over HTTPS.

Five built-in mechanisms cover outbound streams, synchronous calls, background jobs, inbound requests and external sign-in.

DirectionMechanismUse for
Changes outThe change log streams committed writes in order as signed webhooks or paged HTTPS responses.Use forWarehouses, search indexes, message queues and caches that mirror your rows.
Calls outActions run a deployed gatekeeper query under caller policies before invoking your HTTPS handler.Use forCard charges, transactional emails and model calls where the caller awaits the result.
Work laterJobs and schedules queue deployed queries or actions in the write commit or on a cron clock and retry until complete.Use forPost-commit receipts, delayed reminders and recurring morning digests.
Calls inThe Project API exposes each deployed query as a typed HTTPS endpoint 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 servers and signed authentication event webhooks.Use forEnterprise SSO (Okta, Microsoft Entra), branded auth emails and sign-up analytics.

Starting points#

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

GoalGuideWhat you build
Keep an analytical warehouse currentWarehouse syncWhat you buildBackfill existing rows once, then wake a sync worker on each commit webhook.
Sync an external search index or cacheSearch index & cache syncWhat you buildDeliver changed row IDs to an HTTPS route that upserts or deletes documents.
Publish row changes to Kafka, SQS or Pub/SubQueues & streamsWhat you buildRun a stateless relay that publishes one keyed message per row in commit order.
Receive webhooks from Stripe, GitHub or ClerkReceiving webhooksWhat you buildVerify the raw-byte signature, record each delivery ID once and update rows in one commit.
Send email, Slack alerts or push notificationsEmail, Slack & pushWhat you buildQueue a buyer receipt in the order commit and post a channel alert on every refund.
Add enterprise SSO, custom SMTP or auth webhooksIdentity providers & sign-in eventsWhat you buildConnect an OIDC issuer, configure outbound SMTP and stream sign-up events to your route.
Connect Retool, n8n, Zapier or custom GPTsOpenAPI & no-code toolsWhat you buildImport the branch’s OpenAPI spec and issue a service key restricted to 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 need read access. Creating a key with --read-only rejects every mutation before execution.
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 signed with a secret shown once, and action deliveries carry a branch-signed ES256 assertion. Verify both over raw request bytes before parsing JSON.
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 the HTTPS API rather than the PostgreSQL wire protocol, so BI tools like Metabase, Grafana, Looker and Tableau do not connect to a project directly.

Full-table analytics
Point your BI tool at an analytical warehouse kept current by Warehouse sync. Metabase, Grafana, Looker and Tableau all connect natively to PostgreSQL, ClickHouse, BigQuery and Snowflake.
Operational metrics
Deploy an aggregation query and call it over HTTPS. OpenAPI & no-code tools covers connecting Retool, Appsmith and similar builders.

Connections covered elsewhere#

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

Stripe
Billing & payments covers Stripe Checkout, webhook verification, seat limits and usage credits.
Claude, ChatGPT, Cursor
Every project serves MCP natively. Start with Building with agents.
GitHub
Create an isolated preview branch for every pull request and push schema changes on merge. See Environments & going live.
Custom backends
A backend service shows how Python and Go servers call a project on behalf of a signed-in user or with a service key.
External S3 buckets
napalm files store import copies objects from S3 or any S3-compatible bucket. See Files & object storage.

Type a word or two to search every docs page.