| 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 to which the OTP will be sent for verification |
documentType | String | Specifies the verification type (Mobile Verification With OTP) |
| Field | Description |
|---|---|
ok | Indicates whether the verification request was successfully processed |
message | Status message describing the verification request result |
result.requestId | Unique identifier generated for the OTP verification request |
result.message | Confirmation message indicating that the OTP has been sent to the mobile number |
error | Contains error details if the verification request 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": "55b8fa5e-2982-489a-aad5-0dcb24a3da1f",
"message": "Otp has been sent to your mobile number"
},
"error": null
}
}
}