| Header | Description |
|---|---|
myAppId | Application identifier used for service authentication |
service-key | Unique service key provided for accessing the verification service |
Authorization | API authorization credentials for secure access |
Content-Type | Specifies the request payload format (application/json) |
| Parameter | Type | Description |
|---|---|---|
mobileNumber | String | Mobile number that needs to be verified |
documentType | String | Specifies the verification type (Mobile Verification With OTP) |
| Field | Description |
|---|---|
ok | Indicates whether the verification was successful (true / false) |
message | Status message describing the verification result |
requestId | Unique identifier generated for the verification request |
msisdnCountryCode | Country code associated with the mobile number |
imsi | International Mobile Subscriber Identity related to the telecom network |
isValid | Indicates whether the mobile number is valid |
connectionTypes | Type of mobile connection (Prepaid or Postpaid) |
isPorted | Indicates whether the mobile number has been ported to another network |
networkName | Name of the telecom network provider |
countryCode | Country code of the mobile number |
countryName | Name of the country where the mobile number is registered |
error | Contains error details if verification fails |
curl --location --request POST 'https://api.staging.indiconnect.in/idverifygr/verification' \
--header 'myAppId: verification_v1' \
--header 'service-key: sk_test_a9944179bc598f06' \
--header 'Authorization: x-api-access indc_test_a41eaf2a175f3b13:ac_test_bf7117f6da6c6285' \
--header 'Content-Type: application/json' \
--data-raw '{
"query": "mutation {\r\n verify(\r\n input: {\r\n mobileNumber: \"8999584397\"\r\n documentType: \"Mobile Verification With Otp\"\r\n }\r\n ) {\r\n ok\r\n message\r\n result {\r\n ... on MobileVerificationWithOtp{\r\n requestId\r\n message\r\n }\r\n }\r\n error {\r\n status\r\n message\r\n decryptedError\r\n }\r\n }\r\n}\r\n",
"variables": {}
}'{
"data": {
"verify": {
"ok": true,
"message": "Verification completed successfully",
"result": {
"requestId": "868b7350-f621-4187-b30a-2c0478726ca6",
"msisdnCountryCode": "IN",
"imsi": "4049098901",
"isValid": true,
"connectionTypes": "prepaid",
"isPorted": null,
"networkName": "Airtel // Maharashtra",
"countryCode": "IN",
"countryName": "India"
},
"error": null
}
}
}