Skip to main content

Webhooks API

Overview​

The Webhooks API provides operations for configuring and managing webhook endpoints and dynamic routing. It supports both fixed integration endpoints (for services like Mono and Remita) and a powerful dynamic webhook router that can dispatch incoming payloads to native commands, BPMN processes, or inline scripts.

Available Commands​

#CommandTypeDescription
1CreateWebHookConfigCommandCommandCreate a new webhook configuration
2ActivateWebHookConfigCommandCommandActivate a webhook configuration
3DeactivateWebHookConfigCommandCommandDeactivate a webhook configuration
4UpdateWebHookConfigCommandCommandUpdate an existing webhook configuration
5DeleteWebHookConfigCommandCommandDelete a webhook configuration
6GetWebHookConfigListQueryQueryList webhook configurations with pagination
7GetWebHookConfigByIdQueryQueryGet a single webhook configuration by ID
8LookupWebHookByKeyCommandCommandLook up a webhook configuration by its key

Dynamic Webhook Router​

Common Request Pattern​

All commands and queries are sent as a POST to the unified BPM endpoint:

POST /api/bpm/cmd
Content-Type: application/json
Authorization: Bearer {token}

Request body:

{
"$type": "CommandOrQueryClassName",
// ...command-specific fields
}

Common Response Pattern​

Success:

{
"success": true,
"data": { },
"message": "Operation completed successfully"
}

Error:

{
"success": false,
"data": null,
"message": "Description of what went wrong",
"errors": ["Detailed error 1", "Detailed error 2"]
}

Authentication​

All Webhooks API requests require a valid Bearer token in the Authorization header. Tokens are obtained via the authentication endpoint and must belong to a user with the appropriate webhook management permissions.

Execution Types​

ValueNameDescription
0ExecuteNativeCommandInvoke a registered BPM command by name
1ExecuteCommandChainRun a sequence of commands
2ExecuteCodeExecute an inline script
3StartProcessStart a BPMN process definition

Fixed Endpoints​

The system also provides several fixed webhook endpoints for specific third-party integrations:

EndpointDescription
/api/webhooks/mono/callbackMono bank connection callback
/api/webhooks/remitaRemita payment notification webhook
/api/webhooks/remita/collection-notificationRemita collection debit notification