Ai explain API
1 operation. Back to the API overview. Examples use synthetic data.
Ai explain
POST /admin/v1/ai/explain
Needs the permissions: payload:read, transactions:read.
Request body
| Field | Type | Presence | Description |
|---|---|---|---|
finding | object (ExplainFinding) | optional | ExplainFinding is a structured warning or error, the input of every explanation. Code is a fixed code (a reason code, an issue reason, a conformance rule ID); Path a position (HL7 "PID-19", "OBX(2)-5.1", FHIR "Patient.address.use", an X12 element, "line:12"); Action what the policy did (kept, dropped, rejected); Text the finding's own plain words (redacted before use); Attrs a few allowlisted metadata values per kind (e.g. from/to versions, a script's error class and line). |
finding.action | string | optional | - |
finding.attributes | map of string | optional | - |
finding.code | string | optional | - |
finding.kind | string | optional | - |
finding.path | string | optional | - |
finding.severity | string | optional | - |
finding.text | string | optional | - |
include_content | boolean | optional | - |
reason_code | string | optional | - |
reference | string | optional | - |
route | string | optional | - |
transaction_id | integer | optional | - |
{
"finding": {
"action": "example",
"attributes": {
"example": "example"
},
"code": "example",
"kind": "example",
"path": "example",
"severity": "example",
"text": "example"
},
"include_content": true,
"reason_code": "Example text",
"reference": "example",
"route": "example",
"transaction_id": 1
}Response 200
| Field | Type | Presence | Description |
|---|---|---|---|
content_included | boolean | optional | - |
deterministic | object (ExplainDeterministic) | optional | explainDeterministic is the explanation without the model: the source of truth shown with, or instead of, the model's. |
deterministic.facts | array of string | optional | - |
deterministic.field | string | optional | - |
deterministic.meaning | string | optional | - |
deterministic.screen | string | optional | - |
deterministic.title | string | optional | - |
deterministic.what_to_do | string | optional | - |
explanation | object (ExplainView) | optional | explainView is the model's validated explanation (cached without the cards). |
explanation.citations | array of object (ExplainCitation) | optional | - |
explanation.field | string | optional | - |
explanation.fixes | array of object (ExplainFix) | optional | - |
explanation.fixes_rejected | integer | optional | - |
explanation.impact | string | optional | - |
explanation.what_happened | string | optional | - |
fallback_reason | string | optional | - |
finding | object (ExplainFinding) | optional | ExplainFinding is a structured warning or error, the input of every explanation. Code is a fixed code (a reason code, an issue reason, a conformance rule ID); Path a position (HL7 "PID-19", "OBX(2)-5.1", FHIR "Patient.address.use", an X12 element, "line:12"); Action what the policy did (kept, dropped, rejected); Text the finding's own plain words (redacted before use); Attrs a few allowlisted metadata values per kind (e.g. from/to versions, a script's error class and line). |
finding.action | string | optional | - |
finding.attributes | map of string | optional | - |
finding.code | string | optional | - |
finding.kind | string | optional | - |
finding.path | string | optional | - |
finding.severity | string | optional | - |
finding.text | string | optional | - |
metered | boolean | optional | Metered: this explanation counted as an Ask AI question. |
model | string | optional | - |
notice | string | optional | - |
route | string | optional | - |
source | string | optional | - |
{
"content_included": true,
"deterministic": {
"facts": [
"example"
],
"field": "example",
"meaning": "example",
"screen": "example",
"title": "example",
"what_to_do": "example"
},
"explanation": {
"citations": [
{
"id": "example-id",
"kind": "example",
"ref": "example"
}
],
"field": "example",
"fixes": [
{
"change": {
"key": "example",
"value": {}
},
"citations": [
"example"
],
"detail": "example",
"proposal": {
"agent_id": "example-id",
"base_version": 1,
"checks": {},
"count": 1,
"diff": [],
"expires_at": "2026-01-15T14:30:00Z",
"id": "example-id",
"origin": "example",
"permission": "example",
"plan_hash": "0000000000000000000000000000000000000000000000000000000000000000",
"proposed_by": "example",
"reason": "Example text",
"result": {},
"risk": [],
"status": "ok",
"summary": "example",
"target": "example",
"token": "example",
"tool": "example"
},
"title": "example",
"unavailable": "example"
}
],
"fixes_rejected": 1,
"impact": "example",
"what_happened": "example"
},
"fallback_reason": "Example text",
"finding": {
"action": "example",
"attributes": {
"example": "example"
},
"code": "example",
"kind": "example",
"path": "example",
"severity": "example",
"text": "example"
},
"metered": true,
"model": "example",
"notice": "example",
"route": "example",
"source": "example"
}Other responses
401Authentication required403Not permitted404Not Found503Unavailable (nothing was changed)
curl --request POST \
--header "Authorization: Bearer $ID_TOKEN" \
--header "Content-Type: application/json" \
--data '{"finding":{"action":"example","attributes":{"example":"example"},"code":"example","kind":"example","path":"example","severity":"example","text":"example"},"include_content":true,"reason_code":"Example text","reference":"example","route":"example","transaction_id":1}' \
"https://YOUR-CONSOLE-HOST/admin/v1/ai/explain"Something unclear or missing? Ask Help in the Velacent Bridge console; answers link to the right screen. How support works.