Workflows
Blocks
Triggers
Supabase Trigger

Supabase Trigger

The Supabase Trigger starts your workflow whenever rows are inserted, updated, or deleted in your Supabase database, using Supabase Database Webhooks.

Database Automation: Create a Database Webhook in Supabase that points at your workflow and react to table changes in real time — no polling required.

Key Features

  • Real-Time Database Events: Fires on INSERT, UPDATE, and DELETE
  • Table & Schema Filtering: Optionally restrict the trigger to one table and schema
  • Shared-Secret Protection: Optionally require an x-webhook-secret header on incoming requests
  • Full Row Payload: The new record (and the old record on updates/deletes) is available to downstream blocks

Configuration

ParameterTypeRequiredDescription
TableTextNoOnly fire for this table (empty = any table)
SchemaTextNoOnly fire for this schema (defaults to public)
EventsMulti-selectNoINSERT, UPDATE, DELETE (empty = all)
SecretSecretNoIf set, requests must include a matching x-webhook-secret header

Setting up the Database Webhook in Supabase

  1. Add the Supabase Trigger block to your workflow and copy the Webhook URL shown in its settings (https://<your-builder>/api/webhooks/supabase/<workflowId>).
  2. Publish the workflow — events are only delivered to published, active workflows.
  3. In your Supabase project, open Database → Webhooks and click Create a new hook.
  4. Give the hook a name, pick the table and the events (INSERT, UPDATE, DELETE) you want to listen to.
  5. Choose HTTP Request as the hook type, method POST, and paste the Webhook URL.
  6. If you set a Secret on the trigger block, add an HTTP header named x-webhook-secret with the same value.
  7. Save the hook. Supabase will now POST every matching change to your workflow.

Supabase sends payloads shaped like { "type": "INSERT", "table": "orders", "schema": "public", "record": { ... }, "old_record": null }. The trigger's table/schema/event filters are applied to this payload before your workflow starts.


Output

Downstream blocks can reference the trigger's output:

FieldDescription
eventTypeINSERT, UPDATE, or DELETE
tableThe table that changed
schemaThe schema of the table
recordThe new row (for inserts and updates)
oldRecordThe previous row (for updates and deletes)
rawThe full webhook payload
Indite Documentation v1.7.1
PrivacyTermsSupport