Verify LLM financial text against the lattice

Intercept generated financial text. If hallucination_detected is true, use verified_payload and persist audit_trail_sha256. compliance_strictness: FAIL_CLOSED | STRICT | PERMISSIVE.

post/v1/finsec/firewall/verify-payload

Request

  • Base URL: https://financesec.api.caleralabs.com
  • URL: https://financesec.api.caleralabs.com/v1/finsec/firewall/verify-payload
  • Auth: API key in header X-License-Key

Request body

client_app_idstring required
generated_textstring required
compliance_strictness'FAIL_CLOSED' | 'STRICT' | 'PERMISSIVE' required
required_entitiesstring[]

Example request

{
  "client_app_id": "morgan_stanley_wealth_copilot",
  "generated_text": "Apple reported total revenue of $412.5 billion in FY2025, driven by iPhone sales of $220.1 billion and Services growth of 14.2%.",
  "compliance_strictness": "FAIL_CLOSED",
  "required_entities": [
    "AAPL"
  ]
}

Response

Verification results with provenance corrections and audit trail

statusstring
latency_msnumber
hallucination_detectedboolean
audit_trail_sha256string
verified_payloadstring

Example response

{
  "status": "TAMPER_DETECTED_AND_CORRECTED",
  "latency_ms": 2.15,
  "hallucination_detected": true,
  "audit_trail_sha256": "8f3b20a1c9e84712ad910c2834b76e5d9f10a82b45e761928347162983471629",
  "verified_payload": "Apple reported total revenue of $391.0 billion in FY2025, driven by iPhone sales of $201.2 billion and Services revenue of $96.2 billion (growth of 12.8%).",
  "corrections": [
    {
      "claim": "$412.5 billion revenue",
      "verdict": "FABRICATED",
      "ground_truth": "$391.0 billion",
      "provenance": "AAPL_10K_2025_XBRL:Revenues"
    }
  ]
}

Changes

No recorded changes to this operation across all 1 revision of this API.