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

# API Versioning

> Why /verify/* and /v2/verify/* run side by side, what the v2 envelope actually guarantees, and which one to call for a given product.

idto exposes two live API surfaces at the same time: `/verify/*` (v1) and `/v2/verify/*` (v2). Neither is deprecated on a fixed timeline. v2 is the current standard and the one you should reach for by default. v1 stays live because a large share of products have not been ported onto the v2 envelope yet, and because some integrations depend on the exact legacy response shape.

## The v2 envelope

Every `/v2/verify/*` product returns one of two shapes, regardless of which underlying provider served the request.

A success (any 2xx status) always looks like this:

```json theme={null}
{
  "status": "success",
  "message": "PAN verified successfully.",
  "error_code": null,
  "data": { "...": "..." },
  "billed": true,
  "chargeble": "true",
  "user_consent": "true",
  "tranx_id": "8f14e45f-ceea-467e-bd93-4a2c11e0a1b2",
  "timestamp": "2026-09-14T10:15:30Z"
}
```

`error_code` stays `null` on a full match and carries an `IDTO_2xx` code on a definitive no-record result (`data` is `null` in that case). Both are still `status: "success"` and both are billed (unless a verification session already pays for that step, see [Billing](https://idto.mintlify.site/concepts/billing-consent.md#billing)): v2 has no `"failed"` status anywhere in its contract, so never branch your integration on `status`, branch on `error_code`.

A raised error (any non-2xx status) looks like this instead:

```json theme={null}
{
  "status": "error",
  "message": "User consent is required to proceed.",
  "error_code": "IDTO_005",
  "data": null,
  "tranx_id": "8f14e45f-ceea-467e-bd93-4a2c11e0a1b2",
  "timestamp": "2026-09-14T10:15:30Z",
  "chargeble": "false",
  "user_consent": "false",
  "billed": false
}
```

`chargeble` and `user_consent` are legacy string flags carried over from v1 for contract uniformity across the stack. On every v2 error they are hardcoded to `"false"`; they are not a second consent signal, ignore them and read `billed` instead. Unlike the success shape, `data`, `tranx_id` and `timestamp` are not guaranteed on an error response; [Error response shapes](https://idto.mintlify.site/concepts/request-response.md#error-response-shapes) lists when each appears.

## Vendor-agnostic by construction

For a given v2 product, the request contract, the canonical response keys, the `IDTO_*` error codes, and the billing outcome are identical no matter which provider actually served the call. A no-record PAN lookup returns `error_code: "IDTO_202"` and `billed: true` whether it was served by one underlying provider or another; a rate limit returns `IDTO_006` either way. Provider-specific translation lives entirely inside each product's internal vendor adapter and never leaks into the response you see. See [Error Codes](https://idto.mintlify.site/reference/v2-error-codes.md) for the full `IDTO_*` table.

## v1: raw pass-through, no shared envelope

v1 predates the shared envelope. A v1 response is close to whatever the underlying verification provider returned, reshaped only in two ways:

* `tranx_id` and `timestamp` are added on most products, success or not.
* `chargeble` and `user_consent` are added only when the call was actually charged, which v1 decides by the response's `status` field, by the same rule as v2 (see [Billing](https://idto.mintlify.site/concepts/billing-consent.md#billing)). If `status` is `"success"`, v1 stamps `chargeble: "true"` and `user_consent: "true"` and deducts credits; if not, neither key appears and nothing is charged.

v1 has no shared error taxonomy (a few v1 codes are listed in the v1-only section of [Error codes](https://idto.mintlify.site/reference/v2-error-codes.md)) and no fixed field set: two different v1 products can shape their success payload completely differently, because each one is just forwarding what its provider sent back. Consult that endpoint's own schema and examples rather than assuming any of the v2 conventions apply. v1 raised errors are nested under `detail`; see [Error response shapes](https://idto.mintlify.site/concepts/request-response.md#error-response-shapes).

## Which one to call

idto currently has 21 products on v2: `aadhaar_ocr`, `aadhaar_qr`, `bank_verification`, `cin_mca_verification`, `digilocker`, `dl_ocr`, `driving_licence`, `employment_history`, `face_match`, `gst_verification_basic`, `invoice_ocr`, `liveness`, `mobile_to_pan`, `okyc_generate_otp`, `okyc_get_result`, `pan_detailed`, `pan_lite`, `pan_ocr`, `pan_validation`, `vehicle_rc` and `vpa_verification`. `pan_lite` is also on v1 as `POST /verify/pan_lite`, with the same request and `data` fields (plus `data.verification_id`) in the v1 envelope.

* **Use v2 for any of those 21 products.** It's the standard contract, the vendor-agnostic billing, and the one that will keep getting new products.
* **Use v1 for the products that have no v2 endpoint yet.** These include `mobile_profile`, `pennyless`, `gst_advance`, `court_check`, `credit_report`, `esign` and the DigiLocker session endpoints. Their pages say v1 and describe the v1 response shape.
* **Prefer v2 when a product has both.** Some v2 products also have an older v1 route. Use v2 for new work; keep v1 only for an existing integration you do not want to touch. See [Migrate from v1](https://idto.mintlify.site/migrate-from-v1.md).

If you're unsure whether a product you need has a v2 endpoint, check that product's page directly, the path prefix (`/verify/` vs `/v2/verify/`) tells you which contract applies.

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


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