Monitoring API Guide
Real-time monitoring is currently only available for Enterprise customers. To upgrade, get in touch with our sales team.
Our API enables you to track and manage all your monitored workflows. You can:
- Get all active workflows with monitoring enabled
- Retrieve historical data changes across your workflows
Prerequisites
To get the most out of this guide, you’ll need to:
- Create a Kadoa account
- Get your API key
1. Get All Active Monitoring Workflows
Use the following endpoint to retrieve your workflows:
GET /v4/workflows
The response will include all workflows that are in your scope (user, team, organization).
To get all workflows that are active and have real-time monitoring enabled, you can use the following query parameter:
2. Get Historical Data Changes
The /changes
endpoint returns all historical data changes detected by your monitoring workflows. By default, it returns changes from all your active workflows.
You can filter changes by workflow and date range using the different query parameters. See full API reference.
Example with filters:
Differences Field Explanation
Each change includes a differences
array showing structured representations of what changed:
The differences
field provides an object-based diffing with the following structure:
type
: The type of change - can beadded
,removed
, orchanged
fields
: All fields of the object (even if unchanged)
Each field change includes:
key
: Field name that was changedvalue
: Current field valuepreviousValue
: Previous field value (only present forchanged
type)
Example
Let’s look at a simplified example with three fields: id
, name
, and status
.
Data before change:
Data after change:
The differences
field would show:
Note that item with id: "004"
remains unchanged, so it doesn’t appear in the differences array.
For real-time updates, consider using our WebSocket SDK instead of polling this endpoint.
WebSocket API
With our WebSocket API, you can listen to real-time changes from your monitoring workflows.
Prerequisites
- A Kadoa account
- Access to an existing team (Team features)
- Get an API key
- SDKs
We strongly recommend using our SDK for real-time updates. The SDK handles the connection, authentication, message acknowledgement, message replay and auto-reconnect. If you need to implement a native WebSocket integration, please contact us.
Message Format
All messages are JSON objects with the following fields:
Always present:
type
: The type of the message.timestamp
: The timestamp of the message.
Optional depending on the type:
data
: The data of the message.id
: The ID of the message used for acknowledgement.
Message Types
workflow_data_change
This message is sent when a workflow data changes.
Fields:
The change ID of the workflow. You can also retrieve the change with screenshot over the /changes endpoint or view the change in the Kadoa dashboard like: https://www.kadoa.com/data-diff/ID
The ID of the workflow. Accessible over the /workflows endpoint or the Kadoa dashboard like: https://www.kadoa.com/workflow/WORKFLOW_ID
The data of the workflow. Full snapshot of the data at the time of the change.
Structured representation of changes with object-based diffing. For an explanation of the differences format, please refer to the monitoring API documentation.
The URL of the page the workflow is monitoring.
The timestamp in ISO format when the change was detected.
Example:
heartbeat
Reconnection logic is handled by the SDK. If you implement a native WebSocket integration, you might need to handle reconnections yourself.
This message is sent every 15 seconds. It’s used to keep the connection alive. If you don’t receive a heartbeat after 30 seconds, the connection is considered lost, reconnection is needed.
Example: