Connections

Delete connection

delete
https://api.snaptrade.com/api/v1/connection/{connectionId}

Deletes the SnapTrade connection specified by the ID. This will also remove the accounts and holdings data associated with the connection from SnapTrade. This action is irreversible. This endpoint is asynchronous, a 200 response indicates that a task has been queued to delete the connection. Listen for the CONNECTION_DELETED webhook webhook to know when the deletion has been completed and the data has been removed.

Execute an API Request

Path
connectionIdstring (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 a task has been scheduled to delete the connection.

detailstring

Connection queued for deletion; please wait for webhook for confirmation.

connection_idstring

The ID of the connection (brokerage authorization) that was scheduled for deletion.

1
{
2
"detail": "Connection queued for deletion; please wait for webhook for confirmation.",
3
"connection_id": "0b3ebefb-ed47-43df-cd8f-729a4420b5cf"
4
}