---
title: "Disconnect an agent"
method: POST
path: "/agent-connections/{connection_id}/revoke"
tags: ["agent_connection"]
---

# Disconnect an agent

`POST /agent-connections/{connection_id}/revoke`

## Request

- Base URL: `https://localhost:4410/api/v1`
- URL: `https://localhost:4410/api/v1/agent-connections/{connection_id}/revoke`
- Auth: HTTP bearer

Stops the client at its next call and deletes its tokens. Your own connections; owners and admins can disconnect anyone's.

## Path parameters

- `connection_id` string, required

## Request body

- object

## Response `200`

The result.

- object
  - `id` string, required
  - `revoked` true, required

## Other responses

- `202`: Called by an agent or an API key, so the call did not run. A person approves it at approval_url; then GET the Location.
- `default`: An RFC 9457 problem.

---

[API](https://skmtc.dev/binderwork/apis/binderwork-api.md) · [All operations](https://skmtc.dev/binderwork/apis/binderwork-api/llms.txt) · [OpenAPI document](https://skmtc.dev/binderwork/apis/binderwork-api/revisions/f8fab0ebee53?raw)
