| 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 |
|---|---|---|
latitude | String | Latitude coordinate of the location |
longitude | String | Longitude coordinate of the location |
documentType | String | Specifies the verification type (Reverse Geocode_S) |
| Field | Description |
|---|---|
ok | Indicates whether the request was successful (true / false) |
message | Status message describing the result |
result.address | Full formatted address corresponding to the coordinates |
result.city | City name derived from the coordinates |
result.state | State name derived from the coordinates |
result.stateCode | State code (e.g., MH for Maharashtra) |
result.country | Country name |
result.countryCode | Country code (e.g., IN for India) |
result.confidenceScore | Indicates the accuracy level of the returned address (range: 0 to 1) |
error | Contains error details if the request fails |
curl --location --request POST 'https://api.staging.indiconnect.in/idverifygr/verification' \
--header 'myAppId: verification_v5_1_app' \
--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 documentType: \"Reverse Geocode_S\"\r\n latitude: \"21.153774\"\r\n longitude: \"79.042549\"\r\n }\r\n ) {\r\n ok\r\n message\r\n result {\r\n __typename\r\n ... on ReverseGeocodeResult {\r\n address\r\n city\r\n state\r\n stateCode\r\n country\r\n countryCode\r\n confidenceScore\r\n }\r\n }\r\n error {\r\n decryptedError\r\n }\r\n }\r\n}\r\n",
"variables": {}
}'{
"data": {
"verify": {
"ok": true,
"message": "Verification completed successfully",
"result": {
"__typename": "ReverseGeocodeResult",
"address": "523V+R2Q, OPPOSITE OF HELICOPTER FUTALA FOUNTAIN, VAYUSENA NAGAR, NAGPUR, MAHARASHTRA 440033, INDIA",
"city": "NAGPUR",
"state": "MAHARASHTRA",
"stateCode": "MH",
"country": "INDIA",
"countryCode": "IN",
"confidenceScore": 1
},
"error": null
}
}
}