explain which expectation a recorded request matches now, and why higher-priority ones lost
Re-checks one recorded request, identified by the correlationId of its log entries, against the current expectations in the order MockServer evaluates them. Returns the expectation that would serve the request now, why each expectation evaluated ahead of it was passed over (reason NAMESPACE, INACTIVE, FIELDS_DIFFER, NOT_OPERATOR, CONVERSATION, SCENARIO_STATE or PERCENTAGE, with per-field differences and remediation hints), which lower-priority expectations it shadows, and how the request was handled when it arrived. The result is recomputed on demand, so it reports whether the expectations changed since the request arrived. Values quoting the request are redacted as the event log is. At most 500 expectations are evaluated. With ?narrate=true the response also carries an AI-generated plain-language summary from the configured LLM backend in 'narration'.
Request
- Base URL: http://localhost:1080
- URL: http://localhost:1080/mockserver/explain
- Auth: none declared
Query parameters
correlationId of the request's log entries (see PUT /mockserver/retrieve?type=LOGS&format=LOG_ENTRIES); may instead be supplied in the body
when true, and the server has llmExplainNarrationEnabled set, also ask the configured LLM backend (llmProvider) for a plain-language summary of the result, returned in 'narration' and labelled as AI-generated; the deterministic fields are returned unchanged. The prompt is redacted before it is sent. When narration is disabled, no LLM backend is configured, or the LLM fails or does not answer within llmRequestTimeoutMillis plus a 2-second grace, 'narration' says why it is unavailable instead
Request body
Response
explanation returned
Changes
No recorded changes to this operation across all 1 revision of this API.