> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.middesk.com/monitor-activity/how-monitoring-works/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.middesk.com/_mcp/server.
# How monitoring works
> Learn how to use monitoring to listen for changes associated with subscribed businesses on Middesk's Identity Platform.
This guide describes how to use monitoring to listen for changes associated with subscribed businesses on Middesk's Identity Platform.
## Prerequisites
Before you begin:
* Ensure that you can authenticate against the Middesk API, create businesses, and ingest Middesk results with [webhooks](../quickstart)
## Learn the monitoring lifecycle
Monitoring flow · 2 phases
How monitoring works for a business
How Monitoring Works
A business moves through two phases: Verification (Middesk processes the business
and delivers insights), then Monitoring (the business is subscribed via dashboard,
auto-enable, or policy, changes are detected, and webhook notifications are sent).
01 · Verification
Middesk
Processes Business and
Delivers Insights
needs\_review
02 · Monitoring
Manual
Dashboard or API
enable Monitoring
For individual businesses
Automatic
Auto-enable
Monitoring
For all businesses
Policy
Policy enable
Monitoring
For matching businesses
Middesk · State
Monitoring Enabled
Business subscribed to change detection
Monitoring can be enabled for the following event types:
bankruptcy.created
bankruptcy.updated
registration.created
registration.updated
watchlist_result.created
watchlist_result.updated
tin.created
tin.updated
Middesk
Change Detected
Notification
Webhook event and
email notification sent
Here's the typical lifecycle of a business with monitoring enabled:
1. A business gets created with the [POST /businesses endpoint](/api-reference/business-verification/businesses/create-a-business).
2) The business is subscribed to monitoring.
3) At some point in the future, a change to that business is detected. The business record updates.
4) Middesk sends a webhook event to registered webhook endpoint(s).
5) The client application ingests and evaluates the change in the business record.
## Monitor businesses
#### Subscribe a business
You can enable monitoring on Middesk businesses using four different strategies.
#### With the API
Use the [POST /monitor API](/api-reference/business-verification/monitoring/create-a-monitor-for-a-business) to create, update, and delete business monitors for fine-grained control within your application.
#### With the Dashboard
Manually enable monitoring on a business with a completed business verification order on the **Monitoring** tab of the Middesk [Dashboard](https://app.middesk.com/).
#### Set up and listen for monitoring webhook events
Depending on the type of monitor that you want to listen for, [register a new webhook](https://app.middesk.com/settings/webhooks) with the corresponding [event types](../monitor-activity/events) selected.
#### Consume and evaluate monitoring events
Webhook requests contain a few top level fields:
* `data`. Contains the event-specific payload and all the information about a monitoring event.
> **Note**
>
> Event payloads represent the change identified in the business record rather than full business object. For more granular control, use event payloads.
* `id`. The Middesk-generated identifier for the webhook. It's useful for debugging. Use it to search for pertinent webhook logs on the Middesk webhooks page.
* `type`. The type of webhook provided.
* `account_id`. The Middesk-generated identifier for the account the webhook is sent for. Useful if you route traffic across multiple Middesk accounts.
> **Info**
>
> When a monitoring event is triggered, the composite business record and business insights update.
While it's possible to consume monitoring-specific payloads ([example payloads](../monitor-activity/events)), for typical use cases, it's usually sufficient to retrieve the business associated with the event.
To retrieve the business associated with the event:
1. Access the business's ID using the `data.object.business_id` field included in the webhook payload.
2. [Retrieve the Middesk business](https://dash.readme.com/project/middesk/v1.0/refs/retrieve-a-business) using the [GET /businesses endpoint](/api-reference/business-verification/businesses/retrieve-a-business).
The response includes the full business record.
> **Get a demo**
>
> Contact your account manager or [contact sales](https://www.middesk.com/contact-sales) to inquire about access.
> Learn how to use monitoring to listen for changes associated with subscribed businesses on Middesk's Identity Platform.