Disconnect an account
Revokes Samva's access at the provider and deletes the account with the integrations that link it, and their grants from every agent's draft.
DELETE
Revokes Samva's access at the provider and deletes the account with the integrations that link it, and their grants from every agent's draft. A published agent version that granted them can no longer use them; publish the agent to drop the grants.
apiKeyheader
x-api-key<token>accountId*stringMatch
^intgacct_[0-9a-hjkmnp-tv-z]{16,24}$DeleteAccountResponse
application/json- response
id*IntegrationAccountIdMatch
^intgacct_[0-9a-hjkmnp-tv-z]{16,24}$deleted*trueValue in
trueimport { createClient } from "samva";
const samva = createClient({ apiKey: process.env.SAMVA_API_KEY! });
const result = await samva.accounts.remove({
"accountId": "example"
});Example Response
{
"id": "string",
"deleted": true
}