Authentication

Delete user

delete
https://api.snaptrade.com/api/v1/snapTrade/deleteUser

Deletes a registered user and all associated data. This action is irreversible. This API is asynchronous and will return a 200 status code if the request is accepted. The user and all associated data will be queued for deletion. Once deleted, a USER_DELETED webhook will be sent.

Execute an API Request

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.

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

Response fields

object
statusstring

This is always deleted when a user is queued for deletion.

detailstring

Human friendly message about the deletion status.

userIdstring

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.

1
{
2
"status": "deleted",
3
"detail": "User queued for deletion; please wait for webhook for confirmation.",
4
"userId": "snaptrade-user-123"
5
}