Feel free to reach techsupport@surepass.io for any technical support or guidance.
client_id), you must call this endpoint to generate and send an OTP for identity confirmation. The OTP must then be submitted via the corresponding OTP verification endpoint to unlock access to the taxpayer's ITR data. This two-factor mechanism ensures compliance with data protection requirements and prevents unauthorized access to confidential financial records.Authorization header as Bearer TOKEN.https://sandbox.surepass.apphttps://kyc-api.surepass.app| Header | Required | Description |
|---|---|---|
| Authorization | Yes | Bearer token for API authentication. Format: Bearer <JWT_TOKEN> |
| Content-Type | Yes | Must be set to application/json |
| Parameter | Type | Required | Description |
|---|---|---|---|
| client_id | string | Yes | Unique client identifier obtained from the initial ITR verification session. This ID links the OTP generation request to the specific taxpayer session. Format example: itr_GphpGlzxZOficAventBk |
{
"client_id": "itr_GphpGlzxZOficAventBk"
}client_id must be obtained from a prior ITR session initiation API callclient_id is tied to a specific taxpayer session and cannot be reused across different verification requestsclient_id has a limited validity window; ensure the 2FA request is made promptly after session creation| Parameter | Type | Description |
|---|---|---|
| data | object | Container object holding the OTP generation result |
| data.otp_sent | boolean | Indicates whether the OTP was successfully sent to the taxpayer's registered contact. true confirms delivery was initiated. |
| status_code | integer | HTTP status code of the response (200 for success) |
| message_code | string | Machine-readable code for the result status (e.g., "success") |
| message | string | Human-readable message describing the result (e.g., "OTP Sent") |
| success | boolean | Indicates if the API request was processed successfully |
{
"data": {
"otp_sent": true
},
"status_code": 200,
"message_code": "success",
"message": "OTP Sent",
"success": true
}success: true response with otp_sent: true confirms that the OTP has been dispatched to the taxpayer's registered mobile number or emailclient_id{
"data": null,
"status_code": 404,
"message_code": null,
"message": "Client with given Client ID not found.",
"success": false
}client_id is incorrect, does not exist, or the associated session has expired. Initiate a new ITR verification session to obtain a fresh client_id.client_id as a sensitive session token; do not expose it in client-side code, URLs, or logsclient_id session to discard stale verification attempts and reduce attack surfaceclient_id required by this endpoint. Must be called before generating 2FA OTP.curl --location --request POST 'https://kyc-api.surepass.app/api/v1/itr/generate-2fa' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"client_id": "itr_GphpplzxZOficAventBk"
}'{
"data": {
"otp_sent": true
},
"status_code": 200,
"message_code": "success",
"message": "OTP Sent",
"success": true
}