General
Server Side SDKs
Core API
- Companies
- Invite Links
- Sync
- Passthrough
- Real Time
- Webhooks
Unified API
- Accounting
- Payments
- Ecommerce
- CRM
Webhooks
Create Webhook
Initialise a single webhook
POST
/
core
/
webhooks
curl --request POST \
--url https://api.rootfi.dev/v3/core/webhooks \
--header 'Content-Type: application/json' \
--header 'api_key: <api-key>' \
--data '{
"webhook": {
"operations": [
"CREATE"
],
"name": "webhook 1",
"type": "CONNECTION_CHANGED",
"data_models": [
"ACCOUNTS"
],
"url": "https://webhook.site/eec24873-a381-4694-b684-a1d77d9e0697",
"headers": {
"api_key": "fhsjd"
}
}
}'
{
"id": "THBROZzWGuL3b8qEEdBF",
"headers": {
"api_key": "fhsjd"
},
"operations": [
"CREATE"
],
"data_models": [
"ACCOUNTS"
],
"name": "webhook 1",
"created_at": "2024-04-15T04:52:25.309Z",
"type": "CONNECTION_CHANGED",
"url": "https://webhook.site/eec24873-a381-4694-b684-a1d77d9e0697"
}
Authorizations
Body
application/json
The data of the webhooks endpoint
Response
200
application/json
The data of the invite link endpoint
curl --request POST \
--url https://api.rootfi.dev/v3/core/webhooks \
--header 'Content-Type: application/json' \
--header 'api_key: <api-key>' \
--data '{
"webhook": {
"operations": [
"CREATE"
],
"name": "webhook 1",
"type": "CONNECTION_CHANGED",
"data_models": [
"ACCOUNTS"
],
"url": "https://webhook.site/eec24873-a381-4694-b684-a1d77d9e0697",
"headers": {
"api_key": "fhsjd"
}
}
}'
{
"id": "THBROZzWGuL3b8qEEdBF",
"headers": {
"api_key": "fhsjd"
},
"operations": [
"CREATE"
],
"data_models": [
"ACCOUNTS"
],
"name": "webhook 1",
"created_at": "2024-04-15T04:52:25.309Z",
"type": "CONNECTION_CHANGED",
"url": "https://webhook.site/eec24873-a381-4694-b684-a1d77d9e0697"
}
Assistant
Responses are generated using AI and may contain mistakes.