Webhook events
Agent runs are asynchronous — they may take seconds, minutes, or hours depending on the work the agent performs. Subscribe to agent webhook events to receive real-time updates about run lifecycle changes instead of polling the Run endpoint.
Configure webhooks to receive notifications when agent runs are created, completed, or interrupted. These events use the same delivery pipeline as Middesk’s other webhook events: identical retry behavior, authentication options, and 2xx success contract. See Implement webhooks for setup details and Secure webhooks for signature verification.
When a run interrupts, your endpoint receives the agent’s open question and proposed artifacts so you can take action before the run resumes.
Choosing events by review model
The events you need depend on where your team reviews agent findings:
Each event has one job:
run.interruptedasks for your input. Subscribe when your own system presents findings to reviewers and responds through Take action. If reviews happen in the Middesk Dashboard, or an interrupt policy resolves them automatically, you can skip it.business.updatedtells you the Business record may have changed after a review is resolved. Note: runs that error or propose nothing never sendbusiness.updated.run.completedtells you a run is finished, whatever the outcome. It fires once for every run, including runs that error or never propose changes. Subscribe when your workflow waits on runs to finish.
Agent outcomes and business.updated
For agent work, business.updated signals that a review was resolved. It fires after findings are approved, rejected, or skipped, whether a reviewer resolved the review or an interrupt policy did.
Use the event as a signal to refresh your stored Business.
By default, the business.updated payload doesn’t identify agent runs. To see which runs contributed to an update, add the runs field with a custom event schema, then pass the run id to Retrieve an agent run for full details.