client_id to track the session and a journey_url to redirect the user to — where they complete the RBI-regulated consent flow on the AA network.client_id returned here.X-API-KEY and X-API-SECRET.| Header | Value |
|---|---|
X-API-KEY | Your assigned API Key |
X-API-SECRET | Your assigned API Secret |
Base URL: https://api.finpass.ai
| Header | Required | Description |
|---|---|---|
Content-Type | Yes | Must be application/json |
X-API-KEY | Yes | Your Finpass API Key |
X-API-SECRET | Yes | Your Finpass API Secret |
| Parameter | Type | Required | Description |
|---|---|---|---|
mobile_number | string | Yes | The 10-digit mobile number of the user linked to their bank account(s) on the AA network |
consent_type | string | No | Type of consent to request. Accepted values: loan_underwriting (default) or loan_monitoring |
redirect_url | string | No | URL to redirect the user after completing the consent flow. Defaults to https://finpass.ai/ |
webhook_url | string | No | URL to receive a push callback when the journey status changes. Defaults to https://finpass.ai/ |
{
"mobile_number": "9876543210",
"consent_type": "loan_underwriting",
"redirect_url": "https://yourapp.com/callback",
"webhook_url": "https://yourapp.com/webhook"
}| Parameter | Type | Description |
|---|---|---|
success | boolean | Indicates whether the journey was initialised successfully |
message | string | Human-readable status message |
data.client_id | string | Unique session identifier for this journey — use this in all subsequent API calls |
data.journey_url | string | URL to redirect the user to complete the AA consent flow |
data.status | string | Current journey status — will be initiated at this stage |
data.consent_type | string | The consent type for this session (loan_underwriting or loan_monitoring) |
data.expires_at | string | Timestamp at which this session expires if the user does not complete consent (ISO 8601) |
{
"success": true,
"message": "AA BSA journey initiated successfully",
"data": {
"client_id": "bsa_clnt_a1b2c3d4e5f6",
"journey_url": "https://aa.finpass.ai/consent?token=eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.abc123xyz",
"status": "initiated",
"consent_type": "loan_underwriting",
"expires_at": "2024-11-15T14:30:00Z"
}
}{
"success": false,
"message": "Invalid mobile number. Please provide a valid 10-digit Indian mobile number.",
"error_code": "INVALID_INPUT"
}client_id securely on your backend and never expose it in client-side code or publicly accessible URLsredirect_url and webhook_url are HTTPS endpoints and not publicly enumerablewebhook_url before acting on status changesjourney_url token to your frontend logs or analytics pipelinesjourney_url in the same browser tab or a full-screen in-app WebView for the smoothest AA consent experienceredirect_url to return users seamlessly after consentloan_underwriting or loan_monitoring) and must not be shared with unauthorised third parties. Comply with the RBI Master Direction on Account Aggregators and the Digital Personal Data Protection Act (DPDP), 2023. Access to this endpoint requires the AA_BSA_JOURNEY permission on your Finpass account.curl --location --request POST 'https://api.finpass.ai/api/v1/aa-bsa-journey/init' \
--header 'Content-Type: application/json' \
--data-raw '{
"mobile_number": "9876543210",
"consent_type": "loan_underwriting",
"redirect_url": "https://yourapp.com/callback",
"webhook_url": "https://yourapp.com/webhook"
}'{}