Webhook events provide an efficient way to stay informed about changes in your data, views, and filters. By setting up webhooks, you can receive real-time notifications whenever specific actions are performed in your table, allowing for more streamlined data management and improved workflows.
This section will cover setting up a webhook in Baserow to connect with external applications and automate tasks based on specific events within your Baserow tables.
Webhooks can be used to inform 3rd party systems when rows in Baserow have been created, updated, or deleted, and receive real-time notifications about all changes that are made in your table. You can even trigger a test to make sure everything works before saving it.
With batch create/update/delete rows endpoints, you can modify multiple rows at once.
By setting up webhooks, you can receive real-time notifications whenever specific actions are performed in your table, allowing for more streamlined data management and improved workflows.
If you are using the deprecated webhooks -
row.created
,row.updated
androw.deleted
- It is highly recommended to convert all webhooks to the new types -rows.created
,rows.updated
androws.deleted
.
Webhook events notify you whenever a specific action happens in the table, enabling faster response times and more efficient data management.
They provide real-time data to other applications, making it easier to stay updated without needing to constantly check for changes manually. Instead, webhooks push the data to your table as events occur.
Webhooks can be used to monitor the following events:
This webhook is triggered every time any row is created, updated, or deleted. It provides a general-purpose event to monitor changes to row data.
View webhooks allow you to receive notifications whenever views in your table are created, updated, or deleted. A view refers to a specific configuration of data (such as filtered or sorted lists), and knowing when views change can be important for managing workflows, dashboards, or reports.
These webhooks notify you when fields are created, updated, or deleted. This is important for tracking data structure changes that can affect how data is managed and queried.
Conditional update provides more granular notifications by only triggering events when a selected field value changes. This makes it possible to receive notifications that are highly relevant and tailored to the most important data changes.
Select specific fields to trigger only when the cell values of the selected fields are updated. For example, you might set up a webhook that sends a message to a user when the “Status” field in a row changes from “Pending” to “Approved”.
To set up a new webhook,
GET
, POST
, PUT
, PATCH
, DELETE
methods, which include automatic data parsing.Perform test actions within your table to verify that your webhook setup works as expected. For instance, create a new view or update a filter, and check whether the appropriate notifications are being sent to your endpoint.
After you create a webhook, you can edit the fields to modify your output.
To edit a new webhook,
You can click on Delete at the bottom of the screen to delete the webhook. Note that if you delete a webhook, you will not be able to restore it later.
Click the Trigger test webhook button to validate all entries.
When a webhook event is triggered, a payload is sent to your designated URL. Below is a sample structure of a webhook payload:
Example webhook payload for “View Created”:
{
"table_id": 50000,
"database_id": 1000,
"workspace_id": 300,
"event_id": "00000000-0000-0000-0000-000000000000",
"event_type": "view.created",
"view": {
"id": 0,
"table_id": 0,
"name": "View",
"order": 1,
"type": "grid",
"table": null,
"filter_type": "AND",
"filters_disabled": false,
"public_view_has_password": false,
"show_logo": true,
"ownership_type": "collaborative",
"owned_by_id": null,
"row_identifier_type": "id",
"public": false
}
}
In this payload:
table_id
, database_id
, and workspace_id
refer to the specific table, database, and workspace in which the view is created.event_type
specifies the type of event (e.g., view.created).view
object contains details of the newly created view, such as its name, order, type, filter settings, and ownership.For each webhook, you can view the response and request. This can be useful if a call fails and you need to access why.
To view a log of the calls for a webhook,
Within the call log page, you can view each call event, URL, time, request, and response.
In case the webhook endpoint is temporarily unavailable or returns an error, Baserow will attempt retries a limited number of times. Make sure your webhook endpoint is reliable and can handle spikes in traffic. It’s also essential to return a 200 OK
status code upon successfully receiving the webhook to avoid unnecessary retries.
Still need help? If you’re looking for something else, please feel free to make recommendations or ask us questions—we’re ready to assist you.
Contact support for questions about Baserow or help with your account.