> ## Documentation Index
> Fetch the complete documentation index at: https://idto.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Court record check

> Search court records for cases against a person by name and address.

Search court records for cases against a person, using their name and address, with father's name as an optional filter. Results are ranked by a weighted match score: records above 85 percent are returned in `strong_match`, the rest in `possible_match`, and records ruled out in `eliminated_data`. `totalResult` is the number of records found.

A search that finds nothing is a completed search: `status` is `success`, every list is empty and the call is charged. Review `possible_match` records manually before you act on them.

> [!WARNING]
>
> This endpoint has no idempotency support. A retried request runs the verification again and can be charged again. Retry only after you have confirmed the first call did not return a response.

## Environments

| Environment | Base URL | Notes |
| - | - | - |
| Production | `https://prod.idto.ai` | Keys from the dashboard after go-live. Billed. |
| Staging | `https://dev.idto.ai` | Keys on request from your idto account manager. Calls reach live sources, so use identities you are authorised to verify. Staging credits are deducted from your staging account. |

## Billing

Charged only when the response `status` is `success`. A charged call carries `"chargeble": "true"` and `"user_consent": "true"`; an uncharged call has neither field.

## Response fields

| Field | Type | Description |
| - | - | - |
| `status` | string | `success` when the search completed. |
| `result.eliminated_data` | array | Records considered and ruled out. |
| `result.possible_match` | array | Case records with a weighted match of 85 percent or less. Review manually. |
| `result.strong_match` | array | Case records with a weighted match above 85 percent. |
| `result.totalResult` | number | Number of records found. |
| `tranx_id` | string | idto transaction id for this call. |
| `timestamp` | string | Time idto recorded the call, ISO 8601. |
| `chargeble` | string | `"true"` on a charged call, absent otherwise. |
| `user_consent` | string | `"true"` on a charged call, absent otherwise. |

### Case record fields

Each item in `strong_match` and `possible_match` carries the fields below; items in `eliminated_data` carry the subset marked Both plus their own fields. Fields whose type is `null` were empty in every response observed and are kept for compatibility.

| Field | Type | In | Description |
| - | - | - | - |
| `address` | string | Matches only | |
| `addressMatchPercentage` | number | Both | Address match score. |
| `advocateName` | null | Both | |
| `bothMatchPercentage` | null | Both | |
| `caseActType` | null | Both | |
| `caseCourtDetails` | string | Both | |
| `caseId` | string | Both | |
| `caseSection` | null | Both | |
| `case_code` | string | Both | |
| `case_disposed_date` | string | Both | |
| `category` | string | Matches only | |
| `courtDistid` | string | Both | |
| `courtId` | null | Both | |
| `courtStateid` | string | Both | |
| `data_source` | string | Both | |
| `fatherPercentage` | number | Both | Father's name match score. |
| `flagged_address` | number or string | Both | |
| `id` | string | Both | |
| `link` | string | Both | Link to the case record. |
| `name` | string | Matches only | Name sent in the request. |
| `nameMatchPercentage` | number | Both | Name match score. |
| `partyAddress_highlighted` | string | Both | |
| `partyDistid` | string | Both | |
| `partyDistname` | string | Both | |
| `partyFather` | null | Both | |
| `partyId` | string | Both | |
| `partyName_highlighted` | string | Both | |
| `partyStateid` | string | Both | |
| `partyStatename` | string | Both | |
| `partyType` | string | Both | |
| `query_type` | string | Both | |
| `rank` | number | Both | |
| `registration_year` | string | Both | |
| `score` | number | Both | |
| `solr_source` | string | Both | |
| `stageOfCase` | string | Both | |
| `suggested` | number | Both | |
| `weightedPercentage` | number | Both | Overall match score used to split strong and possible matches. |
| `act_ids` | array | Eliminated only | |
| `act_ids[]` | string | Eliminated only | |
| `all_act_section` | object | Eliminated only | |
| `caseType` | string | Eliminated only | |
| `case_status` | string | Eliminated only | |
| `nod_excluded_by` | string | Eliminated only | |
| `nod_raw_text` | string | Eliminated only | |
| `partyAddress` | string | Eliminated only | |
| `partyName` | string | Eliminated only | |
| `section_ids` | array | Eliminated only | |
| `section_ids[]` | string | Eliminated only | |

## Errors

| Code | HTTP | When | Billed |
| - | - | - | - |
| `null` | 400 | *Wrapped.* Credits are insufficient, or the product is not enabled for your account. | No |
| No code | 401 | Missing or invalid `X-Client-ID` or `X-API-Key`. | No |
| No code | 403 | The client is inactive or not allowed to call this endpoint. | No |
| No code | 422 | Body failed schema validation. Body: `{"detail": [{"loc": [...], "msg": "..."}]}`. | No |
| No code | 500 | Our side failed. Retry once after a few seconds (this endpoint has no Idempotency-Key); if it persists, write to [tech@idto.ai](mailto:tech@idto.ai) with the request time. | No |

`Code` is the `error_code` in the body. Errors marked *wrapped* return `{"detail": {"status": "error", "message": "...", "error_code": null, "data": null, "tranx_id": "...", "timestamp": "..."}}`.

## Test scenarios

Use these input classes in staging to exercise each outcome.

| Input | Expected result | Billed |
| - | - | - |
| Name and address of a person with no cases | 200, empty lists, `totalResult: 0` | Yes |
| Name and address that match recorded cases | 200, records in `strong_match` or `possible_match` | Yes |
| `name` or `address` missing from the body | 422 | No |

Questions about court checks are answered in the [Credit and Legal FAQ](https://idto.mintlify.site/products/credit-legal/faq.md).

***

Was this page helpful? Email us at [tech@idto.ai](mailto:tech@idto.ai?subject=Docs%20feedback%3A%20Court%20record%20check) with the page link.


## OpenAPI

````yaml openapi2.0.json POST /verify/court_check
openapi: 3.1.0
info:
  title: idto Verification API
  version: 2.0.0
  description: >-
    idto is an identity and KYC verification platform. This API lets you run
    PAN, Aadhaar, bank account,

    business/GST, vehicle, mobile, employment, credit-bureau, DigiLocker,
    driving-licence, face-match,

    liveness, document-OCR, address and eSign verifications through a single set
    of HTTP endpoints,

    either individually or composed into a workflow on the idto dashboard.


    ## Response envelope (v2)


    Every product under `/v2/verify/*` shares one response contract. A call is
    charged when it finishes with a 2xx

    response whose `status` is `"success"`, unless a verification session
    already pays for that step. A charged

    2xx carries `billed: true`, whether the result is a full match (`error_code:
    null`, `data` populated) or a

    definitive no-record outcome (`error_code` set to an `IDTO_2xx` code, `data:
    null`). Callers distinguish a full

    match from a no-record result by checking `error_code`, never by inspecting
    `status`: there is no `"failed"`

    status anywhere in the v2 API.


    Exceptions to the charge rule: a step that a verification session already
    pays for returns its 2xx with

    `billed: false`; an idempotent replay returns the stored response and is not
    charged again; a v1 `202`

    `IDTO_203` handoff is not charged, and the result is charged once when the
    job completes.


    A raised error (any non-2xx response) from `/v2/verify/*` carries `status:
    "error"`, `message`, `error_code`,

    `data: null`, `billed: false` and the legacy string flags `chargeble:
    "false"` and `user_consent: "false"`.

    `tranx_id` and `timestamp` are set when the failed call was recorded. Raised
    errors are

    never billed; `IDTO_204` (no readable Aadhaar QR found) is an ordinary
    raised 422. Authentication failures (401, 403) use

    the framework shape `{"detail": "..."}` on every endpoint.


    ## v1 vs v2


    `/v2/verify/*` is the current, vendor-agnostic contract described above,
    used for every product that

    has been migrated onto it. `/verify/*` (no `/v2` prefix) remains live for
    products that have not been

    ported yet. Because v1 predates the shared envelope, each v1 product's
    response shape is its own:

    consult that product's schema and examples rather than assuming the v2
    envelope applies. Raised errors on

    v1 use three shapes: `{"detail": {...}}` for a failed verification,
    `{"detail": "..."}` for authentication and

    `{"detail": [...]}` for request validation. Each operation names the shape
    it uses.


    ## Asynchronous handoff (v1 employment products)


    Some v1 employment and UAN endpoints can answer `202` with `IDTO_203` and a
    `reference_id` instead of the

    result. Fetch the result with `GET /verify/result/{reference_id}`. Today
    staging returns this 202 and

    production does not, so handle both a 200 result and a 202 handoff.


    ## Idempotency


    Send an `Idempotency-Key` header (max 255 characters) on any v2 request to
    make retries safe. If the

    same key is replayed with an identical request body, the original result is
    returned without re-running

    the verification or billing again. If the same key is replayed with a
    **different** body, the request

    is rejected with `IDTO_010` (422). A request with the same key that is still
    in flight returns `IDTO_004` (409). The header is optional; omitting it runs
    every request as new.


    ## Authentication


    Every request to `/verify/*` and `/v2/verify/*` must include two headers:
    `X-Client-ID` and

    `X-API-Key`. Both are issued per environment (staging and production
    credentials are separate and

    not interchangeable).


    ## Error Codes


    | Code | HTTP | Message |

    |---|---|---|

    | IDTO_001 | 400 or 422 | Invalid input. Please check the request and try
    again. |

    | IDTO_004 | 409 | Duplicate request. Verification ID already exists. |

    | IDTO_005 | 400 | User consent is required to proceed. |

    | IDTO_006 | 429 | Too many requests. Please wait a moment and retry. (the
    verification source is limiting requests; idto has no per-key quota) |

    | IDTO_007 | 500 | Verification could not be completed due to a service
    configuration issue. Please contact support at tech@idto.ai. |

    | IDTO_008 | 503 | The verification service is facing downtime due to issues
    from the source. Please drop a mail to tech@idto.ai, and try again later. |

    | IDTO_009 | 402 | Insufficient credits or balance. Recharge, or ask your
    account owner to add credits. |

    | IDTO_010 | 422 | Idempotency-Key was already used with a different request
    body. |

    | IDTO_101 | 400 | A required parameter is missing from the request. |

    | IDTO_102 | 400 | A required parameter is missing from the request. |

    | IDTO_103 | 503 | This verification could not be completed. Please retry
    shortly or contact support at tech@idto.ai. |

    | IDTO_201 | 200 | Bank account is invalid or does not exist. |

    | IDTO_202 | 200 | Record is invalid or does not exist. (per-product
    messages may override this text) |

    | IDTO_203 | 202 | Verification is still in progress. Retrieve the result
    using reference_id. (v1 asynchronous handoff, not billed) |

    | IDTO_204 | 422 | No readable Aadhaar QR was found in the image. (not
    billed, like every raised error) |

    | IDTO_205 | 422 | Invalid OTP or session expired. Please request a new OTP.
    |

    | IDTO_206 | 429 | Maximum OTP attempts exceeded. Please generate a new OTP.
    |

    | IDTO_207 | 404 | No result found for this reference_id. |

    | IDTO_401 | 400 | The account number provided is invalid. |

    | IDTO_402 | 400 | The IFSC code provided is invalid. |

    | IDTO_403 | 503 | This verification could not be completed. Please retry
    shortly or contact support at tech@idto.ai. |

    | IDTO_503 | 413 | The image could not be processed. Please try a clearer,
    smaller image. |

    | IDTO_509 | 500 | Face match could not be completed. Please try again. |

    | IDTO_609 | 500 | Liveness could not be determined. Please try again. |
  contact:
    name: idto Support
    email: tech@idto.ai
servers:
  - url: https://prod.idto.ai
    description: >-
      Production: keys from the idto dashboard after go-live. Every successful
      call is billed.
  - url: https://dev.idto.ai
    description: >-
      Staging: keys on request from your idto account manager. Calls reach live
      sources and deduct staging credits.
security:
  - ClientIdAuth: []
    ApiKeyAuth: []
tags:
  - name: PAN
    description: >-
      PAN validation, detailed lookups, OCR and every PAN-linked crosswalk (UAN,
      GST, CIN, DIN, Udyam).
  - name: Aadhaar
    description: Aadhaar OKYC (OTP-based) and Aadhaar secure-QR read and verification.
  - name: Bank Account
    description: >-
      Bank account penny-drop verification, IFSC lookups, and bank-statement PDF
      processing.
  - name: Business & GST
    description: GSTIN, CIN/MCA, Udyam, FSSAI and shop & establishment registration checks.
  - name: Vehicle & RC
    description: Vehicle registration certificate, challan and FASTag lookups.
  - name: Mobile & UPI
    description: >-
      Mobile-number OTP, subscriber profile, and UPI VPA verification and
      crosswalks.
  - name: Employment (EPFO/UAN)
    description: >-
      EPFO employment history and UAN-linked lookups, including the async
      passbook flows.
  - name: Credit Bureau
    description: >-
      Credit reports and scores from supported bureaus, including OTP-gated
      pulls.
  - name: DigiLocker
    description: >-
      DigiLocker account linking and document fetches (Aadhaar, PAN, DL,
      marksheets, and more).
  - name: Driving Licence
    description: Driving licence verification and OCR.
  - name: Face & Liveness
    description: Face-match comparison and liveness/anti-spoofing checks.
  - name: Document OCR
    description: OCR extraction for PAN, driving licence and Aadhaar card images.
  - name: Address & Invoice
    description: Address verification via OCR on invoices and utility bills.
  - name: Voter & Passport
    description: Voter ID and passport verification.
  - name: eSign
    description: Electronic signature docket creation and signed-document retrieval.
  - name: Verification Links
    description: Hosted, no-code verification links (added by a later documentation pass).
  - name: Webhooks
    description: >-
      Webhook configuration for asynchronous result delivery.


      ## What gets delivered


      Two kinds of event are delivered by webhook: a verification-link session
      completing (see the

      Verification Links tag), and an eSign docket finishing signing (see the
      eSign tag). Both use the

      same delivery, signing and retry mechanism described below, but the two
      payload shapes are

      different and are not wrapped in any shared envelope.


      ## Signing scheme


      The request body sent to your `webhook_url` is compact, key-sorted JSON,
      produced the same way as

      Python's `json.dumps(payload, separators=(",", ":"), sort_keys=True)`, and
      sent as raw UTF-8 bytes.

      A Unix timestamp (whole seconds, encoded as a string) is generated at send
      time.


      The string that gets signed is built by concatenating, as bytes: the
      timestamp string, a literal

      `.`, then the raw request body bytes. In Python terms this is
      `f"{timestamp}.".encode() + raw_body_bytes`,

      a bytes concatenation, not a string concatenation of the decoded body. The
      signature is

      `HMAC-SHA256(secret, signing_string)`, hex-encoded.


      Every delivery carries three headers:


      - `X-idto-Event-Id`: a unique id for this specific delivery, used to
      de-duplicate retried or
        re-sent events on your side.
      - `X-idto-Timestamp`: the same timestamp string used when building the
      signature.

      - `X-idto-Signature`: the signature in the form `sha256=<hex signature>`.


      To verify a delivery, recompute the HMAC over `timestamp + "." +
      raw_body_bytes` using your stored

      secret, and compare the result to `X-idto-Signature` with a constant-time
      comparison, never a plain

      `==` on the strings. During a secret rotation, deliveries in flight may be
      signed with either the

      previous secret or the new one for a short grace window, so verify against
      both secrets if you have

      just rotated.


      ## Event payloads


      There is no shared `event` wrapper key across both event types, so
      distinguish them by shape: the

      eSign event carries an explicit `event` field, the session-completion
      event does not.


      Session completion (implicit, no `event` field):


      ```json

      {
        "session_id": "8f14e45f-ceea-467e-bd93-4a2c11e0a1b2",
        "session_token": "sess_3c9a1e2b7d4f5061",
        "status": "completed",
        "outcome": "approved",
        "partial": false,
        "completed_steps": ["mobile_verification", "pan_validation", "face_match"],
        "skipped_steps": [],
        "fallback_steps": [],
        "branch_excluded_steps": [],
        "consents": [
          {"type": "data_processing", "version": "1.0", "timestamp": "2026-09-14T10:15:30Z"}
        ],
        "event_id": "evt_5b6c7d8e9f0a1b2c",
        "report": {
          "url": "https://reports.idto.ai/r/8f14e45f-ceea-467e-bd93-4a2c11e0a1b2?sig=...",
          "expires_at": "2026-09-14T11:15:30Z",
          "content_type": "application/pdf",
          "filename": "report.pdf"
        }
      }

      ```


      The `report` key is only present when a PDF report is attached to the
      session and the merchant has

      report attachment enabled. Its `url` is a fresh, short-lived presigned
      link generated for that one

      delivery, never a permanent link.


      eSign completion:


      ```json

      {
        "event": "esign.completed",
        "event_id": "evt_esign_2a3b4c5d6e7f8091",
        "tranx_id": "b6e1f2a0-1234-4abc-9def-0123456789ab",
        "docket_id": "b6e1f2a0-1234-4abc-9def-0123456789ab",
        "document_id": "doc_1a2b3c4d5e6f7081",
        "signing_status": "signed",
        "signed_at": "2026-09-14T10:15:30Z"
      }

      ```


      No document bytes are included in this event. Retrieve the signed PDF
      separately through the eSign

      document-download endpoint documented elsewhere in this spec.


      ## Delivery and retries


      A delivery is attempted up to 5 times with exponential backoff between
      attempts, starting at

      roughly 10 seconds and doubling on each retry, capped at 1 hour between
      tries. If every attempt is

      exhausted, the delivery is marked permanently failed and is not retried
      again. Events created before a signing secret exists are still attempted:
      they run through this same 5-attempt retry cycle and are permanently
      dead-lettered within a few minutes, the same as any other delivery
      failure. There is no separate holding queue that waits for you to
      configure a secret. Generate one with `POST
      /merchant/webhook-config/rotate-secret` before, or immediately after,
      setting a webhook URL, or the earliest events from that window are lost
      for good.
  - name: Authentication
    description: SDK and API authentication (added by a later documentation pass).
  - name: Court Records
    description: Court and litigation record checks.
  - name: Name Match
    description: Compare two person or business names and get a match score.
paths:
  /verify/court_check:
    post:
      tags:
        - Court Records
      summary: Court record check
      description: >-
        Searches court records for cases against a person by name and address,
        with father's name as an optional filter. Matches are split into
        `strong_match` (weighted match above 85 percent) and `possible_match`. A
        search with no matches is still a completed search and is charged.
        Charged only when the response `status` is `success`. This endpoint has
        no idempotency support: a retried request runs again and can be charged
        again.


        Raised errors use the v1 shapes, always under `detail`: an object
        `{"detail": {...}}` for a failed verification, a string `{"detail":
        "..."}` for authentication and some input checks, and a list `{"detail":
        [...]}` for request validation.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - name
                - address
              properties:
                name:
                  type: string
                  description: Full name of the person to search for.
                address:
                  type: string
                  description: Address of the person. Used in the search.
                father_name:
                  type: string
                  description: Optional. Passed to the search to narrow the match.
            example:
              name: RAHUL SHARMA
              address: 12 SAMPLE STREET, SAMPLE AREA, BENGALURU, KARNATAKA-560001
              father_name: SURESH SHARMA
      responses:
        '200':
          description: The search completed. Charged, including when no case matches.
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                properties:
                  status:
                    type: string
                    enum:
                      - success
                  result:
                    type: object
                    properties:
                      eliminated_data:
                        type: array
                        items:
                          type: object
                          properties:
                            act_ids:
                              type: array
                              items:
                                type: string
                            addressMatchPercentage:
                              type: number
                            advocateName:
                              type: 'null'
                            all_act_section:
                              type: object
                              additionalProperties:
                                type: array
                                items:
                                  type: string
                              description: 'Object keyed by position: "0", "1" and so on.'
                            bothMatchPercentage:
                              type: 'null'
                            caseActType:
                              type: 'null'
                            caseCourtDetails:
                              type: string
                            caseId:
                              type: string
                            caseSection:
                              type: 'null'
                            caseType:
                              type: string
                            case_code:
                              type: string
                            case_disposed_date:
                              type: string
                            case_status:
                              type: string
                            courtDistid:
                              type: string
                            courtId:
                              type: 'null'
                            courtStateid:
                              type: string
                            data_source:
                              type: string
                            fatherPercentage:
                              type: number
                            flagged_address:
                              type:
                                - number
                                - string
                            id:
                              type: string
                            link:
                              type: string
                            nameMatchPercentage:
                              type: number
                            nod_excluded_by:
                              type: string
                            nod_raw_text:
                              type: string
                            partyAddress:
                              type: string
                            partyAddress_highlighted:
                              type: string
                            partyDistid:
                              type: string
                            partyDistname:
                              type: string
                            partyFather:
                              type: 'null'
                            partyId:
                              type: string
                            partyName:
                              type: string
                            partyName_highlighted:
                              type: string
                            partyStateid:
                              type: string
                            partyStatename:
                              type: string
                            partyType:
                              type: string
                            query_type:
                              type: string
                            rank:
                              type: number
                            registration_year:
                              type: string
                            score:
                              type: number
                            section_ids:
                              type: array
                              items:
                                type: string
                            solr_source:
                              type: string
                            stageOfCase:
                              type: string
                            suggested:
                              type: 'null'
                            weightedPercentage:
                              type: number
                        description: Records considered and ruled out.
                      possible_match:
                        type: array
                        items:
                          type: object
                          properties:
                            address:
                              type: string
                            addressMatchPercentage:
                              type: number
                            advocateName:
                              type: 'null'
                            bothMatchPercentage:
                              type: 'null'
                            caseActType:
                              type: 'null'
                            caseCourtDetails:
                              type: string
                            caseId:
                              type: string
                            caseSection:
                              type: 'null'
                            case_code:
                              type: string
                            case_disposed_date:
                              type: string
                            category:
                              type: string
                            courtDistid:
                              type: string
                            courtId:
                              type: 'null'
                            courtStateid:
                              type: string
                            data_source:
                              type: string
                            fatherPercentage:
                              type: number
                            flagged_address:
                              type:
                                - number
                                - string
                            id:
                              type: string
                            link:
                              type: string
                            name:
                              type: string
                            nameMatchPercentage:
                              type: number
                            partyAddress_highlighted:
                              type: string
                            partyDistid:
                              type: string
                            partyDistname:
                              type: string
                            partyFather:
                              type: 'null'
                            partyId:
                              type: string
                            partyName_highlighted:
                              type: string
                            partyStateid:
                              type: string
                            partyStatename:
                              type: string
                            partyType:
                              type: string
                            query_type:
                              type: string
                            rank:
                              type: number
                            registration_year:
                              type: string
                            score:
                              type: number
                            solr_source:
                              type: string
                            stageOfCase:
                              type: string
                            suggested:
                              type: number
                            weightedPercentage:
                              type: number
                        description: >-
                          Case records with a weighted match of 85 percent or
                          less. Review manually.
                      strong_match:
                        type: array
                        items:
                          type: object
                          properties:
                            address:
                              type: string
                            addressMatchPercentage:
                              type: number
                            advocateName:
                              type: 'null'
                            bothMatchPercentage:
                              type: 'null'
                            caseActType:
                              type: 'null'
                            caseCourtDetails:
                              type: string
                            caseId:
                              type: string
                            caseSection:
                              type: 'null'
                            case_code:
                              type: string
                            case_disposed_date:
                              type: string
                            category:
                              type: string
                            courtDistid:
                              type: string
                            courtId:
                              type: 'null'
                            courtStateid:
                              type: string
                            data_source:
                              type: string
                            fatherPercentage:
                              type: number
                            flagged_address:
                              type:
                                - number
                                - string
                            id:
                              type: string
                            link:
                              type: string
                            name:
                              type: string
                            nameMatchPercentage:
                              type: number
                            partyAddress_highlighted:
                              type: string
                            partyDistid:
                              type: string
                            partyDistname:
                              type: string
                            partyFather:
                              type: 'null'
                            partyId:
                              type: string
                            partyName_highlighted:
                              type: string
                            partyStateid:
                              type: string
                            partyStatename:
                              type: string
                            partyType:
                              type: string
                            query_type:
                              type: string
                            rank:
                              type: number
                            registration_year:
                              type: string
                            score:
                              type: number
                            solr_source:
                              type: string
                            stageOfCase:
                              type: string
                            suggested:
                              type: number
                            weightedPercentage:
                              type: number
                        description: Case records with a weighted match above 85 percent.
                      totalResult:
                        type: number
                        description: Number of records found.
                  tranx_id:
                    type: string
                    description: idto transaction id for this call.
                  timestamp:
                    type: string
                    format: date-time
                  chargeble:
                    type: string
                    enum:
                      - 'true'
                    description: Present only on a charged call.
                  user_consent:
                    type: string
                    enum:
                      - 'true'
                    description: Present only on a charged call.
                required:
                  - status
                  - result
                  - tranx_id
                  - timestamp
              examples:
                matches:
                  summary: Cases found
                  value:
                    status: success
                    result:
                      eliminated_data:
                        - act_ids:
                            - '1'
                          addressMatchPercentage: 92.5
                          advocateName: null
                          all_act_section:
                            '0':
                              - ''
                          bothMatchPercentage: null
                          caseActType: null
                          caseCourtDetails: CIVIL COURT, BENGALURU
                          caseId: SAMPLE-CASE-0001
                          caseSection: null
                          caseType: Civil
                          case_code: SAMPLE-CASE-0001
                          case_disposed_date: '2026-09-14'
                          case_status: Disposed
                          courtDistid: '1'
                          courtId: null
                          courtStateid: '1'
                          data_source: ''
                          fatherPercentage: 92.5
                          flagged_address: >-
                            12 SAMPLE STREET, SAMPLE AREA, BENGALURU,
                            KARNATAKA-560001
                          id: SAMPLE-CASE-0001
                          link: https://example.com/case/0001
                          nameMatchPercentage: 92.5
                          nod_excluded_by: ''
                          nod_raw_text: ''
                          partyAddress: >-
                            12 SAMPLE STREET, SAMPLE AREA, BENGALURU,
                            KARNATAKA-560001
                          partyAddress_highlighted: >-
                            12 SAMPLE STREET, SAMPLE AREA, BENGALURU,
                            KARNATAKA-560001
                          partyDistid: '1'
                          partyDistname: SAMPLE DISTRICT
                          partyFather: null
                          partyId: SAMPLE-CASE-0001
                          partyName: RAHUL SHARMA
                          partyName_highlighted: RAHUL SHARMA
                          partyStateid: '1'
                          partyStatename: SAMPLE STATE
                          partyType: SAMPLE RESPONDENT
                          query_type: ''
                          rank: 1
                          registration_year: '2020'
                          score: 1
                          section_ids:
                            - '1'
                          solr_source: ''
                          stageOfCase: Disposed
                          suggested: null
                          weightedPercentage: 92.5
                      possible_match:
                        - address: >-
                            12 SAMPLE STREET, SAMPLE AREA, BENGALURU,
                            KARNATAKA-560001
                          addressMatchPercentage: 92.5
                          advocateName: null
                          bothMatchPercentage: null
                          caseActType: null
                          caseCourtDetails: CIVIL COURT, BENGALURU
                          caseId: SAMPLE-CASE-0001
                          caseSection: null
                          case_code: SAMPLE-CASE-0001
                          case_disposed_date: '2026-09-14'
                          category: Civil
                          courtDistid: '1'
                          courtId: null
                          courtStateid: '1'
                          data_source: ''
                          fatherPercentage: 92.5
                          flagged_address: >-
                            12 SAMPLE STREET, SAMPLE AREA, BENGALURU,
                            KARNATAKA-560001
                          id: SAMPLE-CASE-0001
                          link: https://example.com/case/0001
                          name: RAHUL SHARMA
                          nameMatchPercentage: 92.5
                          partyAddress_highlighted: >-
                            12 SAMPLE STREET, SAMPLE AREA, BENGALURU,
                            KARNATAKA-560001
                          partyDistid: '1'
                          partyDistname: SAMPLE DISTRICT
                          partyFather: null
                          partyId: SAMPLE-CASE-0001
                          partyName_highlighted: RAHUL SHARMA
                          partyStateid: '1'
                          partyStatename: SAMPLE STATE
                          partyType: SAMPLE RESPONDENT
                          query_type: ''
                          rank: 1
                          registration_year: '2020'
                          score: 1
                          solr_source: ''
                          stageOfCase: Disposed
                          suggested: 1
                          weightedPercentage: 92.5
                      strong_match:
                        - address: >-
                            12 SAMPLE STREET, SAMPLE AREA, BENGALURU,
                            KARNATAKA-560001
                          addressMatchPercentage: 92.5
                          advocateName: null
                          bothMatchPercentage: null
                          caseActType: null
                          caseCourtDetails: CIVIL COURT, BENGALURU
                          caseId: SAMPLE-CASE-0001
                          caseSection: null
                          case_code: SAMPLE-CASE-0001
                          case_disposed_date: '2026-09-14'
                          category: Civil
                          courtDistid: '1'
                          courtId: null
                          courtStateid: '1'
                          data_source: ''
                          fatherPercentage: 92.5
                          flagged_address: >-
                            12 SAMPLE STREET, SAMPLE AREA, BENGALURU,
                            KARNATAKA-560001
                          id: SAMPLE-CASE-0001
                          link: https://example.com/case/0001
                          name: RAHUL SHARMA
                          nameMatchPercentage: 92.5
                          partyAddress_highlighted: >-
                            12 SAMPLE STREET, SAMPLE AREA, BENGALURU,
                            KARNATAKA-560001
                          partyDistid: '1'
                          partyDistname: SAMPLE DISTRICT
                          partyFather: null
                          partyId: SAMPLE-CASE-0001
                          partyName_highlighted: RAHUL SHARMA
                          partyStateid: '1'
                          partyStatename: SAMPLE STATE
                          partyType: SAMPLE RESPONDENT
                          query_type: ''
                          rank: 1
                          registration_year: '2020'
                          score: 1
                          solr_source: ''
                          stageOfCase: Disposed
                          suggested: 1
                          weightedPercentage: 92.5
                      totalResult: 1
                    tranx_id: 8f14e45f-ceea-467e-bd93-4a2c11e0a1b2
                    timestamp: '2026-09-14T10:15:30Z'
                    chargeble: 'true'
                    user_consent: 'true'
                no_match:
                  summary: No case found
                  value:
                    status: success
                    result:
                      strong_match: []
                      possible_match: []
                      eliminated_data: []
                      totalResult: 0
                    tranx_id: 8f14e45f-ceea-467e-bd93-4a2c11e0a1b2
                    timestamp: '2026-09-14T10:15:30Z'
                    chargeble: 'true'
                    user_consent: 'true'
        '400':
          description: >-
            Credits are insufficient, or the product is not enabled for your
            account. Not billed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/V1WrappedError'
              examples:
                credits:
                  summary: Insufficient credits
                  value:
                    detail:
                      status: error
                      message: Insufficient credits for this operation.
                      error_code: null
                      data: null
                      tranx_id: 8f14e45f-ceea-467e-bd93-4a2c11e0a1b2
                      timestamp: '2026-09-14T10:15:30Z'
        '401':
          description: Missing or invalid `X-Client-ID` or `X-API-Key`. Not billed.
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
              examples:
                missing_keys:
                  summary: Credentials missing or invalid
                  value:
                    detail: >-
                      Authentication required. Provide either a valid JWT token,
                      API key + client ID, or SDK token.
        '403':
          description: >-
            The client is inactive or not allowed to call this endpoint. Not
            billed.
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
              examples:
                inactive:
                  summary: Inactive client
                  value:
                    detail: Client is inactive
        '422':
          description: >-
            The request body failed schema validation, for example a required
            field is missing. Not billed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
              examples:
                missing_field:
                  summary: Required field missing
                  value:
                    detail:
                      - type: missing
                        loc:
                          - body
                          - FIELD
                        msg: Field required
                        input: {}
      security:
        - ClientIdAuth: []
          ApiKeyAuth: []
components:
  schemas:
    V1WrappedError:
      type: object
      description: >-
        Error body returned by v1 `/verify/*` endpoints when the request reached
        the verification step and failed. Not billed.
      properties:
        detail:
          type: object
          properties:
            status:
              type: string
              example: error
            message:
              type: string
            error_code:
              type:
                - string
                - 'null'
            data:
              type: 'null'
            tranx_id:
              type: string
            timestamp:
              type: string
          required:
            - status
            - message
      required:
        - detail
    HTTPValidationError:
      type: object
      description: >-
        Returned by v1 `/verify/*` endpoints when the request body fails schema
        validation (wrong type, or a required field missing). v2 endpoints
        return `IDTO_001` in the v2 error envelope instead.
      properties:
        detail:
          type: array
          items:
            $ref: '#/components/schemas/ValidationError'
    ValidationError:
      type: object
      properties:
        loc:
          type: array
          items:
            anyOf:
              - type: string
              - type: integer
        msg:
          type: string
        type:
          type: string
      required:
        - loc
        - msg
        - type
  securitySchemes:
    ClientIdAuth:
      type: apiKey
      in: header
      name: X-Client-ID
      description: >-
        The Client ID shown on the API Credentials page of the idto dashboard.
        It is not your account or customer ID, which returns 401. Send it on
        every server-to-server request together with X-API-Key. Staging and
        production client IDs are different.
      x-default: <client-id>
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: >-
        Your API key from the idto dashboard (API credentials). Keep it on your
        server; never ship it in a browser or mobile app. Send it on every
        server-to-server request together with X-Client-ID.
      x-default: <api-key>

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.