---
title: "Verify LLM financial text against the lattice"
method: POST
path: "/v1/finsec/firewall/verify-payload"
---

# Verify LLM financial text against the lattice

`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`

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

## Request body

- FirewallVerifyRequest
  - `client_app_id` string, required
  - `generated_text` string, required
  - `compliance_strictness` 'FAIL_CLOSED' | 'STRICT' | 'PERMISSIVE', required
  - `required_entities` string[]

## Response `200`

Verification results with provenance corrections and audit trail

- FirewallVerifyResponse
  - `status` string
  - `latency_ms` number
  - `hallucination_detected` boolean
  - `audit_trail_sha256` string
  - `verified_payload` string
  - `corrections` object[]
    - `claim` string
    - `verdict` string
    - `ground_truth` string
    - `provenance` string

---

[API](https://skmtc.dev/caleralabs/apis/financesec-api-reference.md) · [All operations](https://skmtc.dev/caleralabs/apis/financesec-api-reference/llms.txt) · [OpenAPI document](https://skmtc.dev/caleralabs/apis/financesec-api-reference/revisions/fed76f2ec6e5?raw)
