---
title: "Disconnect an agent | Crossmart Docs"
description: "Documentation for Crossmart, the open-source multichannel platform for sellers and their AI agents."
url: "https://docs.crossmart.io/developers/api/operations/agentconnectionscontroller_revoke_v1/"
---

# Disconnect an agent

DELETE

/api/v1/workspaces/{workspaceId}/agent-connections/{connectionId}

Select code sample

```sh
curl --request DELETE \
  --url https://api.crossmart.io/api/v1/workspaces/example/agent-connections/example \
  --cookie better-auth.session_token=<better-auth.session_token>
```

- Crossmart Cloud

Revokes its tokens at once. The agent must be authorized again to come back.

## Authorizations

- **[cookie](https://docs.crossmart.io/developers/api/#cookie)**

## Parameters

### Path Parameters

**workspaceId**

required

string

**connectionId**

required

string

## Responses

### 204
