Querying Your Accounts
In non-tiered account structures, the /portfolio/accounts endpoint returns a list of accounts for which the user can view position and account information.
This endpoint must be called prior to calling other /portfolio endpoints for those accounts.
For querying a list of accounts which the user can trade, see /iserver/accounts. For a list of subaccounts in tiered account structures (e.g. financial advisor or ibroker accounts) see /portfolio/subaccounts.
Example request:
GET https://api.ibkr.com/v1/api/portfolio/accounts
Successful response:
In multi-level account structures (such as Financial Advisor and IBroker accounts), the /portfolio/subaccounts endpoint returns a list of up to 100 subaccounts for which the user can view position and account-related information.
This endpoint must be called prior to calling other /portfolio endpoints for those subaccounts.
If you have more than 100 subaccounts use /portfolio/subaccounts2. To query a list of accounts the user can trade, see /iserver/accounts.
Example request:
GET https://api.ibkr.com/v1/api/portfolio/subaccounts
Successful response:

