# 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.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://factagora.gitbook.io/deepverify/api-reference/generate-verification-report.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
