Account list

By default, users can choose which accounts they wish to share with you. There are settings to do otherwise.

Set a maximum number of accounts that can be selected

Optionally you can define a limit on maximum number of accounts that can be selected (for example you want to limit this count to 2 accounts for you users on a certain subscription level).

To do this you can do the following call :

curl --request POST \
     --url https://api.bridgeapi.io/v3/aggregation/connect-sessions \
     --header 'Bridge-Version: BRIDGE_VERSION' \
     --header 'accept: application/json' \
     --header 'content-type: application/json' \
     --header 'Authorization: Bearer TOP_SECRET_ACCESS_TOKEN'
     --data '
{
  "user_email": "[email protected]",
  "max_selectable_accounts": 2
}
'

This will produce a result like below where the user cannot select more than 2 accounts:

Disable the account selection

You can disable the account selection by setting allow_account_selection param to false.

Example:

curl --request POST \
     --url https://api.bridgeapi.io/v3/aggregation/connect-sessions \
     --header 'Bridge-Version: BRIDGE_VERSION' \
     --header 'accept: application/json' \
     --header 'content-type: application/json' \
     --header 'Authorization: Bearer TOP_SECRET_ACCESS_TOKEN'
     --data '
{
  "user_email": "[email protected]",
  "allow_account_selection": false
}
'