Mobile
Find the PAN for a mobile number
Look up the PAN linked to an Indian mobile number, with the holder’s recorded consent.
POST
/
v2
/
verify
/
mobile_to_pan
Find the PAN linked to a mobile number
curl --request POST \
--url https://prod.idto.ai/v2/verify/mobile_to_pan \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--header 'X-Client-ID: <api-key>' \
--data '
{
"mobile_number": "9999999999",
"purpose": "identity_verification",
"consent": true,
"consent_timestamp": "2026-12-01T10:15:30+05:30",
"consent_method": "otp"
}
'const options = {
method: 'POST',
headers: {
'X-Client-ID': '<api-key>',
'X-API-Key': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
mobile_number: '9999999999',
purpose: 'identity_verification',
consent: true,
consent_timestamp: '2026-12-01T10:15:30+05:30',
consent_method: 'otp'
})
};
fetch('https://prod.idto.ai/v2/verify/mobile_to_pan', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const options = {
method: 'POST',
headers: {
'X-Client-ID': '<api-key>',
'X-API-Key': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
mobile_number: '9999999999',
purpose: 'identity_verification',
consent: true,
consent_timestamp: '2026-12-01T10:15:30+05:30',
consent_method: 'otp'
})
};
fetch('https://prod.idto.ai/v2/verify/mobile_to_pan', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://prod.idto.ai/v2/verify/mobile_to_pan"
payload = {
"mobile_number": "9999999999",
"purpose": "identity_verification",
"consent": True,
"consent_timestamp": "2026-12-01T10:15:30+05:30",
"consent_method": "otp"
}
headers = {
"X-Client-ID": "<api-key>",
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://prod.idto.ai/v2/verify/mobile_to_pan"
payload := strings.NewReader("{\n \"mobile_number\": \"9999999999\",\n \"purpose\": \"identity_verification\",\n \"consent\": true,\n \"consent_timestamp\": \"2026-12-01T10:15:30+05:30\",\n \"consent_method\": \"otp\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Client-ID", "<api-key>")
req.Header.Add("X-API-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://prod.idto.ai/v2/verify/mobile_to_pan",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'mobile_number' => '9999999999',
'purpose' => 'identity_verification',
'consent' => true,
'consent_timestamp' => '2026-12-01T10:15:30+05:30',
'consent_method' => 'otp'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <api-key>",
"X-Client-ID: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}require 'uri'
require 'net/http'
url = URI("https://prod.idto.ai/v2/verify/mobile_to_pan")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Client-ID"] = '<api-key>'
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"mobile_number\": \"9999999999\",\n \"purpose\": \"identity_verification\",\n \"consent\": true,\n \"consent_timestamp\": \"2026-12-01T10:15:30+05:30\",\n \"consent_method\": \"otp\"\n}"
response = http.request(request)
puts response.read_bodyHttpResponse<String> response = Unirest.post("https://prod.idto.ai/v2/verify/mobile_to_pan")
.header("X-Client-ID", "<api-key>")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"mobile_number\": \"9999999999\",\n \"purpose\": \"identity_verification\",\n \"consent\": true,\n \"consent_timestamp\": \"2026-12-01T10:15:30+05:30\",\n \"consent_method\": \"otp\"\n}")
.asString();{
"status": "success",
"message": "Mobile to PAN lookup completed successfully.",
"error_code": null,
"data": {
"lookup_status": "found",
"pan_number": "ABCDE1234F",
"pan_name": "RAHUL SHARMA",
"dob": "1990-01-01",
"category": "individual",
"mobile_number": "******9999"
},
"billed": true,
"chargeble": "true",
"user_consent": "true",
"tranx_id": "8f14e45f-ceea-467e-bd93-4a2c11e0a1b2",
"timestamp": "2026-12-01T10:15:30Z"
}
Send a mobile number with the holder’s consent. idto returns the PAN linked to that number, the name on the PAN, the date of birth and the holder type. Use it to prefill a PAN step or to cross-check the PAN a user typed.
Every completed lookup is HTTP 200 with
Fix the input on
The older v1 endpoint is documented at Mobile to PAN (v1). Questions about this product are answered in the Mobile FAQ.
Was this page helpful? Email us at tech@idto.ai with the page link.
status: "success", error_code: null and billed: true. Branch on data.lookup_status:
"found": a PAN is linked to the number.datacarries the PAN details. Billed."not_found": no PAN is linked to the number. The PAN fields arenull. Billed, because the lookup ran to a definitive answer. This product does not useIDTO_202.- Any non-2xx response: the lookup did not complete. Never billed.
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. |
Input rules
The checks run in this order and stop at the first failure.| Field | Rule |
|---|---|
mobile_number | Required. A 10-digit Indian mobile number starting with 6, 7, 8 or 9. Spaces, hyphens and a +91, 91 or 0 prefix are removed first. |
purpose | Required. identity_verification. |
reference_id | Optional. Your own reference for this lookup: 1 to 64 letters, digits, _ or -. |
consent | Required. The boolean true. |
consent_timestamp | Required. When the holder gave consent, ISO 8601 with a time zone offset, for example 2026-12-01T10:15:30+05:30. Not more than 5 minutes in the future. |
consent_method | Required. otp or checkbox. |
user_id | Optional. Your own reference for the end user. |
workflow_session_token | Optional. Pass only when the call is part of an idto workflow session. |
Response fields
| Field | Meaning |
|---|---|
data.lookup_status | found or not_found. |
data.pan_number | PAN linked to the number. |
data.pan_name | Name on the PAN, upper-cased. |
data.dob | Date of birth, YYYY-MM-DD. |
data.category | Holder type from the fourth character of the PAN: individual, company, huf, firm, aop, trust, boi, government, local_authority or ajp. |
data.mobile_number | The number you sent, masked to its last 4 digits, for example ******9999. |
billed | true when this call was charged. |
tranx_id | idto transaction id. Quote it to support. |
Retries and duplicate protection
Send anIdempotency-Key header (at most 255 characters) to make retries safe. Replaying the same key with the same body within 48 hours returns the stored first response without a new lookup or a new charge. The same key with a different body returns IDTO_010 (422). A replay while the first call is still running returns IDTO_004 (409). If the first call returned an error, nothing is stored, so a retry runs the lookup again.
Errors
The messages below are the ones this endpoint returns today, quoted exactly.| Code | HTTP | Message | Billed |
|---|---|---|---|
IDTO_001 | 400 | Invalid input: please enter a valid 10-digit mobile number. | No |
IDTO_001 | 400 | Invalid input: please check the request and retry. (purpose or reference_id invalid) | No |
IDTO_005 | 400 | User consent is required to proceed. (consent, consent_timestamp or consent_method missing or invalid) | No |
null | 400 | Insufficient credits for this operation. (your idto balance is too low; recharge and retry) | No |
IDTO_004 | 409 | An identical request is already in progress; retry shortly. | No |
IDTO_010 | 422 | Idempotency-Key was already used with a different request body. | No |
IDTO_006 | 429 | Too many requests. Please wait and retry. | No |
IDTO_007 | 500 | Something went wrong. Please try again shortly. | No |
IDTO_002 | 502 | Verification could not be completed. Please retry. (the source answered with a value idto could not use) | No |
IDTO_003 | 502 | Verification could not be completed. Please retry. (the source answer was missing a value) | No |
IDTO_008 | 503 | Service temporarily unavailable. Please retry shortly. | No |
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 is shedding load) | No |
IDTO_008 | 504 | Service is taking longer than usual. Please retry. | No |
IDTO_001 and IDTO_005; do not retry them unchanged. Retry IDTO_002, IDTO_003, IDTO_004, IDTO_006 and IDTO_008 with backoff. If IDTO_007 persists, write to tech@idto.ai with the tranx_id. IDTO_002 and IDTO_003 are specific to this endpoint. Full taxonomy: v2 error codes.
Test scenarios
| Input | Expected result | HTTP | Billed |
|---|---|---|---|
| A number with a linked PAN and valid consent | lookup_status: "found" | 200 | Yes |
| A number with no linked PAN | lookup_status: "not_found", error_code: null | 200 | Yes |
mobile_number as +91 99999 99999 | same as 9999999999 | 200 | Yes |
mobile_number as 12345 | IDTO_001 | 400 | No |
purpose missing | IDTO_001 | 400 | No |
consent as the string "true" | IDTO_005 | 400 | No |
consent_timestamp without a time zone, for example 2026-12-01T10:15:30 | IDTO_005 | 400 | No |
Was this page helpful? Email us at tech@idto.ai with the page link.
Authorizations
Headers
Make retries of this exact request 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). Omitting this header runs every request as new.
Maximum string length:
255Body
application/json
Response
The lookup completed. Branch on data.lookup_status. Both outcomes are billed and carry error_code: null.
Last modified on December 1, 2026
Find the PAN linked to a mobile number
curl --request POST \
--url https://prod.idto.ai/v2/verify/mobile_to_pan \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--header 'X-Client-ID: <api-key>' \
--data '
{
"mobile_number": "9999999999",
"purpose": "identity_verification",
"consent": true,
"consent_timestamp": "2026-12-01T10:15:30+05:30",
"consent_method": "otp"
}
'const options = {
method: 'POST',
headers: {
'X-Client-ID': '<api-key>',
'X-API-Key': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
mobile_number: '9999999999',
purpose: 'identity_verification',
consent: true,
consent_timestamp: '2026-12-01T10:15:30+05:30',
consent_method: 'otp'
})
};
fetch('https://prod.idto.ai/v2/verify/mobile_to_pan', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const options = {
method: 'POST',
headers: {
'X-Client-ID': '<api-key>',
'X-API-Key': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
mobile_number: '9999999999',
purpose: 'identity_verification',
consent: true,
consent_timestamp: '2026-12-01T10:15:30+05:30',
consent_method: 'otp'
})
};
fetch('https://prod.idto.ai/v2/verify/mobile_to_pan', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://prod.idto.ai/v2/verify/mobile_to_pan"
payload = {
"mobile_number": "9999999999",
"purpose": "identity_verification",
"consent": True,
"consent_timestamp": "2026-12-01T10:15:30+05:30",
"consent_method": "otp"
}
headers = {
"X-Client-ID": "<api-key>",
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://prod.idto.ai/v2/verify/mobile_to_pan"
payload := strings.NewReader("{\n \"mobile_number\": \"9999999999\",\n \"purpose\": \"identity_verification\",\n \"consent\": true,\n \"consent_timestamp\": \"2026-12-01T10:15:30+05:30\",\n \"consent_method\": \"otp\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Client-ID", "<api-key>")
req.Header.Add("X-API-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://prod.idto.ai/v2/verify/mobile_to_pan",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'mobile_number' => '9999999999',
'purpose' => 'identity_verification',
'consent' => true,
'consent_timestamp' => '2026-12-01T10:15:30+05:30',
'consent_method' => 'otp'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <api-key>",
"X-Client-ID: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}require 'uri'
require 'net/http'
url = URI("https://prod.idto.ai/v2/verify/mobile_to_pan")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Client-ID"] = '<api-key>'
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"mobile_number\": \"9999999999\",\n \"purpose\": \"identity_verification\",\n \"consent\": true,\n \"consent_timestamp\": \"2026-12-01T10:15:30+05:30\",\n \"consent_method\": \"otp\"\n}"
response = http.request(request)
puts response.read_bodyHttpResponse<String> response = Unirest.post("https://prod.idto.ai/v2/verify/mobile_to_pan")
.header("X-Client-ID", "<api-key>")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"mobile_number\": \"9999999999\",\n \"purpose\": \"identity_verification\",\n \"consent\": true,\n \"consent_timestamp\": \"2026-12-01T10:15:30+05:30\",\n \"consent_method\": \"otp\"\n}")
.asString();{
"status": "success",
"message": "Mobile to PAN lookup completed successfully.",
"error_code": null,
"data": {
"lookup_status": "found",
"pan_number": "ABCDE1234F",
"pan_name": "RAHUL SHARMA",
"dob": "1990-01-01",
"category": "individual",
"mobile_number": "******9999"
},
"billed": true,
"chargeble": "true",
"user_consent": "true",
"tranx_id": "8f14e45f-ceea-467e-bd93-4a2c11e0a1b2",
"timestamp": "2026-12-01T10:15:30Z"
}