Skip to content
Scalekit Docs
Talk to an Engineer Dashboard

Delete a connected account

POST/api/v1/connected_accounts:delete

Deletes the account and the credentials Scalekit stores for it. It doesn't revoke the user's grant at the app. Identify the account by ID, or by its connector and identifier. This can't be undone.

Authorization

Authorization: Bearer $TOKEN, an access token from the client credentials grant. See Authentication.

Body

connectorstring
The connection name, as shown in AgentKit > Connections.
idstring
Unique identifier for the connected account to delete
identifierstring
Your app's ID for the user, the same value you used when the user connected. Use a stable internal ID, not an email address.
organization_idstring
An organization ID to key the account by instead of identifier, such as a Scalekit organization ID. Ignored when identifier is set.
user_idstring
A user ID that, with organization_id, keys the account to one user in that organization. Ignored when identifier is set.

Errors

Every error has the same body: code, message and details. See Errors and rate limits.

400Invalid request - malformed parameters or validation failed. Error code MCP_SERVER_EXISTS_FOR_CONNECTED_ACCOUNT when a Virtual MCP server instance for this user still uses the account; delete that Virtual MCP server first.
401Authentication required - missing or invalid access token
404Connected account not found - the specified account does not exist

Used in