Access Token·InactiveLog in to your Public account to generate your access code.
List Accounts
Get accounts
Get accounts
Retrieves the list of financial accounts associated with the authenticated user. This includes brokerage, retirement, and high-yield cash accounts. The response contains account objects that represent each available account. Note: The `accountId` returned by this endpoint is required for most subsequent API operations. It serves as a stable, persistent identifier for the lifetime of the account.
GET/userapigateway/trading/account
Parameters
No parameters
Body
application/jsonNo request body defined
Responses
Response
200
application/json
accountsobject[]
Response
401application/json
Unauthorized access
No response body defined
Response
404application/json
No accounts found for the user
No response body defined
curl --request GET \
--url https://api.public.com/userapigateway/trading/account \
--header 'Authorization: Bearer YOUR_API_KEY'
{
"accounts": [
{
"accountId": "string",
"accountType": "BROKERAGE",
"optionsLevel": "NONE",
"brokerageAccountType": "CASH",
"tradePermissions": "BUY_AND_SELL"
}
]
}
The Public Individual API is for your own personal, non-commercial use. Unauthorized access is prohibited. You are responsible for all trades made via the API. Learn more