Velacent Bridge: beta December 2026, general availability early 2027. E-mail sales to request beta access.

Documentation menu

Ai explain API

Last updated . Documentation for the current release. Ask in the product.

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

Request body of Ai explain
FieldTypePresenceDescription
findingobject (ExplainFinding)optionalExplainFinding 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.actionstringoptional-
finding.attributesmap of stringoptional-
finding.codestringoptional-
finding.kindstringoptional-
finding.pathstringoptional-
finding.severitystringoptional-
finding.textstringoptional-
include_contentbooleanoptional-
reason_codestringoptional-
referencestringoptional-
routestringoptional-
transaction_idintegeroptional-
Example request body (synthetic 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
}

Response 200

Response fields of Ai explain
FieldTypePresenceDescription
content_includedbooleanoptional-
deterministicobject (ExplainDeterministic)optionalexplainDeterministic is the explanation without the model: the source of truth shown with, or instead of, the model's.
deterministic.factsarray of stringoptional-
deterministic.fieldstringoptional-
deterministic.meaningstringoptional-
deterministic.screenstringoptional-
deterministic.titlestringoptional-
deterministic.what_to_dostringoptional-
explanationobject (ExplainView)optionalexplainView is the model's validated explanation (cached without the cards).
explanation.citationsarray of object (ExplainCitation)optional-
explanation.fieldstringoptional-
explanation.fixesarray of object (ExplainFix)optional-
explanation.fixes_rejectedintegeroptional-
explanation.impactstringoptional-
explanation.what_happenedstringoptional-
fallback_reasonstringoptional-
findingobject (ExplainFinding)optionalExplainFinding 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.actionstringoptional-
finding.attributesmap of stringoptional-
finding.codestringoptional-
finding.kindstringoptional-
finding.pathstringoptional-
finding.severitystringoptional-
finding.textstringoptional-
meteredbooleanoptionalMetered: this explanation counted as an Ask AI question.
modelstringoptional-
noticestringoptional-
routestringoptional-
sourcestringoptional-
Example response (synthetic data)
{
  "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

  • 401 Authentication required
  • 403 Not permitted
  • 404 Not Found
  • 503 Unavailable (nothing was changed)
Example request
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.