Authentication
Rotate user secret
Rotates the secret for a SnapTrade user. You might use this if userSecret is compromised. Please note that if you call this endpoint and fail to save the new secret, you'll no longer be able to access any data for this user, and your only option will be to delete and recreate the user, then ask them to reconnect.
post/snapTrade/resetUserSecret
Request body
Example request
{
"userId": "snaptrade-user-123",
"userSecret": "adf2aa34-8219-40f7-a6b3-60156985cc61"
}Response
New user secret is generated
Example response
{
"userId": "snaptrade-user-123",
"userSecret": "adf2aa34-8219-40f7-a6b3-60156985cc61"
}