---
title: "Verify a Rumi quote against the corpus (anti-hallucination)"
method: GET
path: "/api/verify"
tags: ["rest"]
---

# Verify a Rumi quote against the corpus (anti-hallucination)

`GET /api/verify`

## Request

- Base URL: `https://masnavi.ai`
- URL: `https://masnavi.ai/api/verify`
- Auth: none declared

Given a candidate quote attributed to Rumi's Masnavi, check whether it actually appears. Returns status='exact' (with citation), 'fuzzy' (with similar candidates), or 'not_found'. Call this BEFORE repeating any quote you're not certain about.

## Query parameters

- `text` string, required: Candidate Rumi quote in Persian.
- `fuzzy_threshold` number: Minimum similarity for fuzzy match (0.5-1.0).

## Response `200`

Successful Response

- VerifyResponse
  - `status` string, required: 'exact', 'fuzzy', or 'not_found'
  - `matches` VerifyMatch[]
    - `citation` string, required
    - `mesra1` string, required
    - `mesra2` string, required
    - `similarity` number, required
    - `match_kind` string, required: 'exact' or 'fuzzy'
  - `notes` string
  - `query_normalized` string

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/masnavi/apis/masnavi-ai.md) · [All operations](https://skmtc.dev/masnavi/apis/masnavi-ai/llms.txt) · [OpenAPI document](https://skmtc.dev/masnavi/apis/masnavi-ai/revisions/2622163d327c?raw)
