I. Intro
This article explains how to use the "When webhook received" trigger in Base automation and provides a detailed look at webhook parameters and common error codes. For more information on using webhook triggers, see Use webhook triggers in automated workflows.
II. Description
Request headers and examples
Below is a sample bearer token (the text in square brackets must be replaced with the actual variables to be used):
curl --location --request POST '[webhook address]' \
--header 'Authorization: Bearer [Bearer token]' \
--header 'Content-Type: application/json' \
--data-raw '{[request body]}'
Request body
Configure as needed. The format must comply with JSON requirements.
Response body and examples
A response body code that is not 0 indicates a failure.
If the code is not 0, check the error code and message in the error code table below to troubleshoot.
The following is an example of the response body when the webhook is correctly received:
{
"msg": "",
"data": { },
"code": 0
}
The following is an example of the response body when there is a webhook error:
{
"data": { },
"code": 800004509,
"msg": "webhook trigger workflow is disabled"
}
Error codes
If the webhook trigger produces an error, you will need to view the error details at the requester end and troubleshoot based on the error codes and text in the table below.
III. Related