x-api-key and x-api-secret.| Header | Description |
|---|---|
x-api-key | Your unique API key provided by Finpass upon registration. |
x-api-secret | Your API secret paired with the API key for authenticated access. |
https://api.finpass.ai| Header | Required | Description |
|---|---|---|
| x-api-key | Yes | Your unique API key for authentication. Provided by Finpass during registration. |
| x-api-secret | Yes | Your API secret paired with the API key. Provided by Finpass during registration. |
| 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 | |
| consent_type | string | Yes | Type of consent being requested (e.g., "loan_underwriting") |
| webhook_url | string | No | URL to receive webhook notifications for consent status updates |
| redirect_url | string | No | URL to redirect the user after the consent journey is completed |
{
"mobile_number": "9999000000",
"pan": "",
"email": "",
"consent_type": "loan_underwriting",
"webhook_url": "",
"redirect_url": ""
}| 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": "aa_6989cbcf_a136a4017",
"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"
}{
"status_code": 401,
"success": false,
"message": "Unauthorized access. Invalid or missing API credentials.",
"message_code": "unauthorized"
}x-api-key or x-api-secret headers are missing, invalid, or do not match. Verify your credentials and retry the request.x-api-key and x-api-secret securely using environment variables or a secrets manager (e.g., AWS Secrets Manager, HashiCorp Vault). Never hardcode credentials in source code or expose them in client-side applications.curl --location --request POST 'https://api.finpass.ai/api/v1/services/account-aggregator/init' \
--header 'X-API-Key: LG8zVXK1MZv1jP6i4l6QZQ2nD9kLTvFWipV_anPvacE' \
--header 'X-API-Key: M5RwMtvbYGqAGZpG8d223xkEq1298kjcGGpJ7s7_' \
--header 'X-API-Secret: M5RwMtvbYGqAGZpG8d223xkEq1298kjcGGpJ7s7_' \
--header 'Content-Type: application/json' \
--data-raw '{
"mobile_number": "9999000000",
"consent_type": "loan_underwriting"
}'{
"data": {
"client_id":"aa_6989cbcf_a136a40171db8abb6b691067",
"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"
}