logo
Authentication

Obtain a new user secret for a user

post
https://api.snaptrade.com/api/v1/snapTrade/resetUserSecret

This API is used to generate a new secret for a SnapTrade user. You might use this if a userSecret is comprimised or lost among other reasons.

Execute an API Request

Request Body
userIdstring

SnapTrade User ID. Provided by SnapTrade Partner. Can be any string, as long as it's unique to a user

userSecretstring

SnapTrade User Secret randomly generated by SnapTrade. This should be considered priviledged information and if compromised, you should delete and re-create this SnapTrade user.

Authorization
Request
Installation
$
npm install snaptrade-typescript-sdk
1
Loading...

Response fields

object

Response when register user is successful

userIdstring

SnapTrade User ID. Provided by SnapTrade Partner. Can be any string, as long as it's unique to a user

userSecretstring

SnapTrade User Secret randomly generated by SnapTrade. This should be considered priviledged information and if compromised, you should delete and re-create this SnapTrade user.

1
{
2
"userId": "snaptrade-user-123",
3
"userSecret": "h81@cx1lkalablakwjaltkejraj11="
4
}