Prerequisites
You are about to create a simple Tinybird data source that receives database changes. You’ll set up a webhook sink in Sequin that sends HTTP POST requests to Tinybird’s Events API with the payload of database changes. You’ll need the following:- A Tinybird account
- Sequin installed locally
- A database connected to Sequin
Create a Tinybird Data Source
Start by creating a new Data Source in Tinybird that will receive database changes from Sequin.You’ve successfully created a Tinybird Data Source that can receive data via HTTP POST requests.
Create a webhook sink
Create a webhook sink that captures changes to your database and sends them to your Tinybird Data Source:Create a new sink
Navigate to the “Sinks” tab, click the “Create Sink” button, and select “Webhook Sink”.
Select source tables
Select the schemas and tables you want to capture changes from (i.e
public.users or public).Add filters (optional)
Add filters to the sink to control which database changes are sent to your webhook endpoint.
Configure backfill
You can optionally indicate if you want your webhook endpoint to receive a backfill of all or a portion of the table’s existing data. Since you want to replicate the state of the table, select to backfill all data.
Configure message grouping
Under “Message grouping”, leave the default option selected to ensure events for the same row are sent to your webhook endpoint in order.
Configure sink settings
Under “Webhook Sink configuration” leave the defaults:
- Leave the default value of
30000 msfor “Request timeout” as this is more than enough time for Tinybird to process the request - Leave the default value of
1for “Batch size” for now.
Configure HTTP endpoint
Under “HTTP Endpoint”, enter the Tinybird Events API URL you copied earlier. Then click to “Add Encrypted Header” with the key
Authorization and the value Bearer YOUR_TINYBIRD_TOKEN.Your webhook sink is now created and ready to send events to Tinybird.
Test end-to-end
Trace the change in the Sequin dashboard
In the Sequin console, open the Messages tab on your webhook sink and confirm that a message was delivered.
You’ve successfully streamed database changes to Tinybird!
Next steps
Build on this foundation:- Create Pipes in Tinybird to transform your data
- Set up API endpoints in Tinybird to query your data
- Create real-time dashboards with your streaming data
- Configure additional webhook sinks for other tables

