Feel free to reach techsupport@surepass.io for any technical support or guidance.
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 YOUR_JWT_TOKEN |
| Content-Type | Yes | Must be set to application/json |
| Parameter | Type | Required | Description |
|---|---|---|---|
| mobile_number | string | Yes | 10-digit mobile number of the user initiating the account aggregation process |
| pan_number | string | No | PAN (Permanent Account Number) of the user for additional verification |
| string | No | Email address of the user for communication and notifications | |
| input_redirect_url | string | No | Custom redirect URL where users will be sent after completing the consent flow |
| consent_type | string | Yes | Type of consent being requested |
{
"mobile_number": "9999000000",
"pan": "",
"email": "",
"input_redirect_url": "",
"consent_type": "loan_underwriting"
}| Parameter | Type | Description |
|---|---|---|
| data | object | Contains the response data for the initiated session |
| data.client_id | string | Unique identifier for the account aggregator session |
| data.mobile_number | string | Echo of the mobile number used to initiate the session |
| data.pan_number | string/null | Echo of the PAN number if provided, null otherwise |
| data.email_id | string/null | Echo of the email address if provided, null otherwise |
| data.redirect_url | string | URL where the user should be redirected to complete the consent flow |
| status_code | integer | HTTP status code of the response |
| success | boolean | Indicates whether the request was successful |
| message | string | Human-readable message describing the result |
| message_code | string | Machine-readable code for the response status |
{
"data": {
"client_id": "account_aggregator_v2_oOxRfypvwDqMjti",
"mobile_number": "9999000000",
"pan_number": null,
"email_id": null,
"redirect_url": "https://webvwlive.finvu.in/onboarding?fi=eGZ+eH1+H3N4Zg==&reqdatemQsNSzMbK58GdvaE9b1Ijzzo8dg=="
},
"status_code": 200,
"success": true,
"message": "Success",
"message_code": "success"
}curl --location --request POST 'https://kyc-api.surepass.app/api/v1/account-aggregator-v2/init' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"mobile_number": "9999000000",
"consent_type": "loan_underwriting"
}'{
"data": {
"client_id": "account_aggregator_v2_oOxRfypvwDqMjti",
"mobile_number": "9999000000",
"pan_number": null,
"email_id": null,
"redirect_url": "https://webvwlive.finvu.in/onboarding?fi=eGZ+eH1+H3N4Zg==&reqdatemQsNSzMbK58GdvaE9b1Ijzzo8dg=="
},
"status_code": 200,
"success": true,
"message": "Success",
"message_code": "success"
}