Skip to main content
Ezra is Scrubbe’s embedded AI reasoning engine. When you submit an incident for analysis, Ezra runs a four-stage pipeline — context gathering, hypothesis generation, impact assessment, and remediation planning — producing a structured root cause analysis with confidence scoring. You can then generate audience-specific reports from that analysis, submit outcome feedback so Ezra learns from every incident, and query the recurring failure patterns it has detected across your incident history.
All endpoints require Authorization: Bearer <token>. Analysis runs asynchronously — submit with POST /analyse and poll GET /analysis/:incidentId until status is COMPLETE.
Base path: https://your-api-domain.com/api/v1/ezra

Analyse an incident

Submit an incident to Ezra for AI analysis. Ezra examines the incident timeline, affected services, correlated signals, and recent changes to produce a root cause analysis, impact assessment, and remediation options. POST https://your-api-domain.com/api/v1/ezra/analyse
string
required
ID of the incident to analyse.
string
required
Unique identifier for this analysis run.
string
required
The incident being analysed.
string
required
PROCESSING while the pipeline is running; COMPLETE or FAILED when done.
number
Approximate seconds before the analysis is ready to retrieve.

List all analyses

Returns all completed and in-progress analyses for the workspace, ordered by creation date descending. Use this to audit Ezra activity or populate a history view. GET https://your-api-domain.com/api/v1/ezra/analyses
number
default:"1"
Page number.
number
default:"20"
Items per page (max 100).
string
Filter by analysis status: PROCESSING, COMPLETE, or FAILED.
cURL
object[]
Array of analysis summary objects.
number
Total matching analysis count.

Get the latest analysis for an incident

Returns the most recently completed analysis for a specific incident, including hypothesis, root cause, impact assessment, remediation options, and confidence score. GET https://your-api-domain.com/api/v1/ezra/analysis/:incidentId
string
required
The incident ID.
cURL
string
required
Unique analysis identifier.
string
required
Analysis lifecycle status.
string
Ezra’s leading hypothesis from the hypothesis-generation stage.
string
AI-identified primary cause of the incident.
string
Structured assessment of user and business impact.
string[]
Secondary factors that amplified impact or extended duration.
string[]
Ordered list of recommended remediation steps.
number
Confidence score from 0 to 1. Scores above 0.8 indicate high certainty.
string
ISO 8601 timestamp when the analysis pipeline finished.

Generate a report

Generate a written report from a completed analysis, tailored to the target audience. Engineering reports include technical detail, system context, and step-by-step remediation. Leadership reports focus on business impact, timeline, and recovery status. POST https://your-api-domain.com/api/v1/ezra/report
string
required
ID of the completed analysis to generate a report from.
string
required
Target audience: ENGINEER or LEADERSHIP.
string
required
Unique identifier for the generated report.
string
required
The audience the report was generated for: ENGINEER or LEADERSHIP.
string
required
The generated report text.
string
required
ISO 8601 timestamp of report generation.

Submit outcome feedback

Send outcome feedback to Ezra after an incident is fully resolved. Ezra uses this signal to improve hypothesis accuracy and pattern detection over time. Submit one feedback record per incident. POST https://your-api-domain.com/api/v1/ezra/learn
string
required
ID of the resolved incident.
string
required
Resolution outcome: RESOLVED, DEGRADED, NEUTRAL, or WORSENED.
Call POST /learn after every resolved incident to improve Ezra’s pattern detection and future recommendation quality.

Get detected patterns

Returns recurring failure patterns that Ezra has identified across your incident history. Use this to find systemic weaknesses and prioritise reliability improvements before the next incident. GET https://your-api-domain.com/api/v1/ezra/patterns
cURL
object[]
Array of detected failure patterns.

Ezra reasoning pipeline

Ezra processes each analysis through four sequential stages. Understanding the pipeline helps you interpret confidence scores and result structure.