Connections

List accounts for a connection

get
https://api.snaptrade.com/api/v1/authorizations/{authorizationId}/accounts

Returns all brokerage accounts that belong to the specified connection for the authenticated user.

On real-time plans, this endpoint refreshes each account's opening date, funding date, and total value live from the brokerage on each call.

On delayed plans, this endpoint returns cached data that is refreshed once a day. To force a refresh, use the manual refresh endpoint.

Check your API key on the Customer Dashboard billing page to see whether your plan includes real-time data.

Execute an API Request

Path
authorizationIdstring (format: uuid)required

Unique identifier for the connection. This is the UUID used to reference the connection in SnapTrade.

Query
userIdstringrequired

SnapTrade User ID. This is chosen by the API partner and can be any string that is a) unique to the user, and b) immutable for the user. It is recommended to NOT use email addresses for this property because they are usually not immutable.

userSecretstringrequired

SnapTrade User Secret. This is a randomly generated string and should be stored securely. If compromised, please rotate it via the rotate user secret endpoint.

Authorization
Request
Installation
$
npm install snaptrade-typescript-sdk
1
import { Snaptrade } from "snaptrade-typescript-sdk";
2
3
const snaptrade = new Snaptrade({
4
clientId: "PARTNER_CLIENT_ID",
5
consumerKey: "CONSUMER_KEY",
6
});
7
8
const response =
9
await snaptrade.connections.listBrokerageAuthorizationAccounts(
10
{
11
authorizationId:
12
"87b24961-b51e-4db8-9226-f198f6518a89",
13
userId: "snaptrade-user-123",
14
userSecret:
15
"adf2aa34-8219-40f7-a6b3-60156985cc61",
16
},
17
);
18
console.log(response.data);

Response fields

array of objects

List of brokerage accounts under the specified connection.

object

A single account at a brokerage.

1
[
2
{
3
"id": "917c8734-8470-4a3e-a18f-57c3f2ee6631",
4
"brokerage_authorization": "87b24961-b51e-4db8-9226-f198f6518a89",
5
"name": "Robinhood Individual",
6
"number": "Q6542138443",
7
"institution_account_id": "54953432",
8
"institution_name": "Robinhood",
9
"created_date": "2024-07-23T22:50:22.761Z",
10
"funding_date": "2024-07-25T12:00:00.000Z",
11
"opening_date": "2024-07-20T09:30:00.000Z",
12
"sync_status": {
13
"transactions": {
14
"initial_sync_completed": true,
15
"last_successful_sync": "2022-01-24",
16
"first_transaction_date": "2022-01-24"
17
},
18
"holdings": {
19
"initial_sync_completed": true,
20
"last_successful_sync": "2024-06-28 18:42:46.561408+00:00"
21
}
22
},
23
"balance": {
24
"total": {
25
"amount": 15363.23,
26
"currency": "USD"
27
}
28
},
29
"status": "open",
30
"raw_type": "Margin",
31
"account_category": "INVESTMENT",
32
"meta": {
33
"type": "Margin",
34
"status": "ACTIVE",
35
"institution_name": "Robinhood"
36
},
37
"portfolio_group": "2bcd7cc3-e922-4976-bce1-9858296801c3",
38
"cash_restrictions": [],
39
"is_paper": false
40
}
41
]