Remove an integration
Removes the integration and its grant from every agent's draft.
DELETE
Removes the integration and its grant from every agent's draft. Contact accounts are disconnected; organization accounts stay connected. A published agent version that granted it can no longer use it; publish the agent to drop the grant.
apiKeyheader
x-api-key<token>integrationId*stringMatch
^intg_[0-9a-hjkmnp-tv-z]{16,24}$DeleteIntegrationResponse
application/json- response
id*IntegrationIdMatch
^intg_[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.integrations.remove({
"integrationId": "example"
});Example Response
{
"id": "string",
"deleted": true
}