logo
Connections

Refresh holdings for a connection

post
https://api.snaptrade.com/api/v1/authorizations/{authorizationId}/refresh

Trigger a holdings update for all accounts under this connection. Updates will be queued asynchronously. ACCOUNT_HOLDINGS_UPDATED webhook will be sent once the sync completes for each account under the connection.

Please contact support for access as this endpoint is not enabled by default.

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
Loading...

Response fields

object

Confirmation that the syncs have been scheduled.

detailstring

Refresh confirmation details

1
{
2
"detail": "Connection 0b3ebefb-ed47-43df-cd8f-729a4420b5cf scheduled for refresh"
3
}