Inspection Webhooks

Inspection Lifecycle

Inspections start in a Requested state upon successful creation via API. Modern Insurer matches the Requested Inspection with a qualified contractor to complete the assignment.

When the contractor accepts the assignment, the Inspection moves to an Assigned state. The contractor then schedules the assignment and the Inspection moves to a Scheduled state. The contractor then completes the assignment and the Inspection moves to Completed.

While an Inspection is in either a Requested, Assigned or Scheduled state, the Inspection can be cancelled via the Cancel inspection endpoint. This action moves the Inspection to a Cancelled state.

Inspection Lifecycle Diagram

Inspection Lifecycle Diagram

Webhook Events

EventTypeDescription
inspection.assignedThe inspection has been successfully assigned to a contractor.
inspection.scheduledThe inspection has been scheduled by the assigned contractor.
inspection.completedThe inspection has been completed by the assigned contractor.
inspection.cancelledThe inspection has been successfully cancelled via API.

Sample Payloads

{
  "eventType":"inspection.assigned",
  "inspectionId":"676ee72e11ea12e6eb282c22"
}
{
  "eventType":"inspection.scheduled",
  "inspectionId":"676ee72e11ea12e6eb282c22",
  "scheduledDate":"2024-12-31T00:00:00.000Z"
}
{
  "eventType":"inspection.completed",
  "inspectionId":"676ee72e11ea12e6eb282c22",
  "report":{
    "filename":"069853_brochurerolloverapp_en.pdf",
    "uploadDate":"2024-12-27T17:44:30.572Z",
    "url":"https://mxoiflstnghwqac9.public.blob.vercel-storage.com/069853_brochurerolloverapp_en-uj6zcA1eGW9TvqsHV87NUxx90g8KyV.pdf"
  }
}
{
  "eventType":"inspection.cancelled",
  "inspectionId":"676f879211ea12e6eb282cb7"
}