> For the complete documentation index, see [llms.txt](https://factagora.gitbook.io/deepverify/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://factagora.gitbook.io/deepverify/api-reference/generate-verification-report.md).

# Generate verification report

This endpoint generates a detailed verification report for domain-specific issues, such as U.S. medical policy verification. The API compares medical claims or policies against a verified knowledge graph to determine accuracy and compliance.

Endpoint: POST <https://api.deepverify.ai/v1/deepverify/report>

**Request Example**&#x20;

```bash
curl -X POST "https://api.deepverify.ai/v1/deepverify/report" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
    "claim_id": "12345ABC",
    "policy_text": "The patient is eligible for a 20% copay for all outpatient services.",
    "medical_record_text": "Patient X received outpatient surgery on January 15th, covered under policy number XYZ."
}'

```

**Response Example**

```json
{
  "claim_id": "12345ABC",
  "verified": true,
  "compliance_rate": 0.95,
  "discrepancy_found": false,
  "report_summary": "The medical record aligns with the insurance policy. The claim is eligible for a 20% copay."
}

```

**Parameters**&#x20;

* claim\_id (string): The ID of the medical claim being verified.&#x20;
* policy\_text (string): The text of the insurance policy.&#x20;
* medical\_record\_text (string): The corresponding medical record text to be verified.&#x20;

**Response Fields**&#x20;

* claim\_id (string): The claim ID for tracking purposes.&#x20;
* verified (boolean): Indicates if the policy and medical record are aligned and valid.&#x20;
* compliance\_rate (float): The confidence level that the claim meets policy guidelines.&#x20;
* discrepancy\_found (boolean): Indicates if any discrepancies between the policy and medical&#x20;
* record were found. report\_summary (string): A summary of the verification result, highlighting any issues or confirming compliance.
