curl --request POST \
--url https://app.formbricks.com/api/v2/management/webhooks \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '{
"name": "<string>",
"url": "<string>",
"source": "user",
"environmentId": "<string>",
"triggers": [
"responseFinished"
],
"surveyIds": [
"<string>"
]
}'
{
"id": "<string>",
"name": "<string>",
"createdAt": "2021-01-01T00:00:00.000Z",
"updatedAt": "2021-01-01T00:00:00.000Z",
"url": "<string>",
"source": "user",
"environmentId": "<string>",
"triggers": [
"responseFinished"
],
"surveyIds": [
"<string>"
]
}
Creates a webhook in the database.
curl --request POST \
--url https://app.formbricks.com/api/v2/management/webhooks \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '{
"name": "<string>",
"url": "<string>",
"source": "user",
"environmentId": "<string>",
"triggers": [
"responseFinished"
],
"surveyIds": [
"<string>"
]
}'
{
"id": "<string>",
"name": "<string>",
"createdAt": "2021-01-01T00:00:00.000Z",
"updatedAt": "2021-01-01T00:00:00.000Z",
"url": "<string>",
"source": "user",
"environmentId": "<string>",
"triggers": [
"responseFinished"
],
"surveyIds": [
"<string>"
]
}
Use your Formbricks x-api-key to authenticate.
The webhook to create
The body is of type object
.
Webhook created successfully.
The response is of type object
.
Was this page helpful?