| 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 |
|---|---|---|
url | String | URL of the document image (PAN, Aadhaar, DL, Passport, etc.) |
caseId | String | Unique identifier for tracking the request |
documentType | String | Specifies the verification type (KYC OCR) |
| Field | Description |
|---|---|
ok | Indicates whether the request was successful (true / false) |
message | Status message describing the result |
result.request_id | Unique request identifier generated by the system |
result.status_code | Status code indicating processing result |
result.documents[].document_type | Type of document detected (PAN, Aadhaar, DL, etc.) |
result.documents[].ocr_data | Extracted fields from the document along with confidence scores |
result.documents[].ocr_data.*.value | Extracted value for a specific field |
result.documents[].ocr_data.*.confidence | Confidence score of the extracted value |
result.documents[].additional_details.faceDetected | Indicates if a face was detected in the document |
result.documents[].additional_details.addressSplit | Structured breakdown of extracted address fields |
error | Contains error details if the request fails |
curl --location --request POST 'https://api.staging.indiconnect.in/idverifygr/verification' \
--header 'myAppId: verification_v3_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: \"KYC OCR\"\r\n url: \"https://pg-all-js-assets.s3.ap-south-2.amazonaws.com/Driving_lic01.jpg\"\r\n caseId: \"DL-GQL-001\"\r\n }\r\n ) {\r\n ok\r\n message\r\n result {\r\n __typename\r\n ... on KYCOCRResult {\r\n request_id\r\n status_code\r\n documents {\r\n document_type\r\n ocr_data\r\n additional_details\r\n }\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": {
"__typename": "KYCOCRResult",
"request_id": "a31deeca-0f70-45e3-906c-a41cc0cae288",
"status_code": 101,
"documents": [
{
"document_type": "DL",
"ocr_data": {
"dlNo": {
"value": "MH44 20100001675",
"confidence": 0.62
},
"name": {
"value": "VAIBHAV KOLEKAR",
"confidence": 0.92
},
"dob": {
"value": "06-10-1990",
"confidence": 0.88
},
"doi": {
"value": "08-02-2010",
"confidence": 0.87
},
"doe": {
"value": "07-02-2030",
"confidence": 0.64
},
"relationName": {
"value": "SURESHRAO KOLEKAR",
"confidence": 0.92
},
"address": {
"value": "AT-MANGALWAR PETH, AMBAJOGAI, TQ-AMBAJOGAI, DIST-BEED. PIN : 431517",
"confidence": 0.92
},
"pin": {
"value": "431517",
"confidence": 0.65
}
},
"additional_details": {
"faceDetected": true,
"addressSplit": {
"building": "",
"city": "Ambajogai",
"district": "Beed",
"pin": "431517",
"floor": "",
"house": "",
"locality": "AT -MANGALWAR PETH",
"state": "",
"street": "",
"complex": "",
"landmark": "",
"untagged": "DIST"
}
}
}
]
},
"error": null
}
}
}