Skip to content

Commit b50a50c

Browse files
committed
Update webhooks.mdx
1 parent 171ae14 commit b50a50c

File tree

1 file changed

+33
-3
lines changed

1 file changed

+33
-3
lines changed

sqlite-cloud/platform/webhooks.mdx

Lines changed: 33 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,40 @@ status: publish
66
slug: webhooks
77
---
88

9-
Webhooks in SQLite Cloud are a powerful way to receive and send event-based notifications.
9+
**Webhooks** are HTTP callbacks that allow your applications to receive real-time notifications when specific events occur. In the context of SQLite Cloud, webhooks make it easy to build reactive systems by automatically sending notifications when data changes happen within your databases.
10+
11+
## Real-Time Notifications for Database Writes
12+
13+
Use the **Webhooks panel** to effortlessly create real-time notifications for write operations—such as inserts, updates, or deletes—within your SQLite Cloud database.
14+
15+
For example, you can configure SQLite Cloud to notify a [webhook.site](https://webhook.site) endpoint every time a write operation occurs on the `albums` table of the `chinook.sqlite` database.
16+
17+
![Dashboard Projects](@docs-website-assets/introduction/dashboard_webhook_create.png)
1018

1119
## Change Data Capture
12-
With change data webhooks, you can send notifications from SQLite Cloud to any HTTP endpoint when an insert, update or delete operation occurs on a specified database and/or table. The webhook payload includes the database name, table name, and the row data that was changed.
20+
21+
Change Data Webhooks let you send structured HTTP requests to any external service whenever a row in a specific database and/or table is modified. These webhooks include:
22+
23+
* **Database name**
24+
* **Table name**
25+
* **Operation type** (insert, update, delete)
26+
* **Changed row data**
27+
28+
This enables seamless integration with logging systems, monitoring dashboards, or external APIs that react to database activity.
29+
30+
Upon creation, each webhook is assigned a **secret key** used to verify the authenticity of incoming requests.
31+
32+
![Dashboard Projects](@docs-website-assets/introduction/dashboard_webhook_create2.png)
33+
34+
You can also manage and review all active webhooks from your project dashboard.
35+
36+
![Dashboard Projects](@docs-website-assets/introduction/dashboard_webhook_list.png)
1337

1438
## Trigger Edge Functions
15-
Webhooks can also be used to trigger your edge functions, either via HTTP or Websockets request, or on a database event.
39+
40+
Webhooks in SQLite Cloud aren't limited to data capture—they can also **trigger Edge Functions**:
41+
42+
* Via HTTP or WebSocket
43+
* In response to database write events
44+
45+
This allows developers to build distributed, event-driven applications that react immediately to changes at the edge.

0 commit comments

Comments
 (0)