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

# Credit and legal checks

> Pull an individual's credit report and search court records for cases against a person.

Credit and legal checks help you assess risk before you lend or contract: pull an individual's credit report, and search court records for cases filed against a person.

## Endpoints

| Product | Endpoint | Input | Use it to |
| - | - | - | - |
| [Credit report](https://idto.mintlify.site/api-reference/credit-legal/credit-report.md) | `POST /verify/credit_report` | Name, mobile, PAN | Read a borrower's credit history |
| [Court check](https://idto.mintlify.site/api-reference/credit-legal/court-check.md) | `POST /verify/court_check` | Name, address, optional father's name | Find cases filed against a person |

> [!WARNING]
>
> Neither endpoint supports idempotency. A retried request runs again and can be charged again.

## How a call works

```mermaid theme={null}
sequenceDiagram
    participant App as Your server
    participant idto as idto API
    participant Src as Credit bureau or court records
    App->>idto: POST /verify/credit_report (X-Client-ID, X-API-Key)
    idto->>Src: Request report
    alt Report found
        idto-->>App: 200 status success with result, charged
    else No report on file
        idto-->>App: 200 status success with empty result, charged
    else Details rejected or source failed
        idto-->>App: 200 status failed, not charged
    end
```

## Outcomes and billing

| Outcome | Credit report | Court check |
| - | - | - |
| Data found | 200, `status: "success"`, charged | 200, matches in `strong_match` or `possible_match`, charged |
| Nothing on file | 200, `status: "success"`, empty `result`, charged | 200, empty lists, charged |
| Rejected or failed | 200 `status: "failed"`, or 502/504, not charged | Error status, not charged |
| Bad input | 422, not charged | 422, not charged |

A charged call carries `"chargeble": "true"`. Error bodies follow [Error response shapes](https://idto.mintlify.site/concepts/request-response.md#error-response-shapes), and charges follow the [billing rule](https://idto.mintlify.site/concepts/billing-consent.md#billing). See the [FAQ](https://idto.mintlify.site/products/credit-legal/faq.md) for common questions.

***

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


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