Levain LabsLevain Labs
API ReferenceAgents

Detach Agent Integration

Take an integration away from an agent.

Take an integration away from an agent.

For an agent with workspace-wide integration access this records an exclusion — deleting the link row alone would silently re-attach the integration through the workspace-wide default. Otherwise it deletes the explicit link (404 when none exists). The workspace integration itself is unaffected (use DELETE /integrations/{id} to revoke).

DELETE
/api/v1/agents/{agent_id}/integrations/{integration_id}

Authorization

HTTPBearer
AuthorizationBearer <token>

In: header

Path Parameters

agent_id*Agent Id
integration_id*Integration Id
Formatuuid

Header Parameters

X-API-Key?string|null

Response Body

application/json

application/json

curl -X DELETE "https://api.levainlabs.com/api/v1/agents/string/integrations/497f6eca-6276-4993-bfeb-53cbbbba6f08"
{
  "property1": "string",
  "property2": "string"
}
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string",
      "input": null,
      "ctx": {}
    }
  ]
}