---
title: "Revoke an agent-bound worker token"
method: DELETE
path: "/api/agents/{id}/token"
tags: ["Sessions"]
---

# Revoke an agent-bound worker token

`DELETE /api/agents/{id}/token`

## Request

- Base URL: `http://localhost:3013`
- URL: `http://localhost:3013/api/agents/{id}/token`
- Auth: HTTP bearer

Revokes every active worker token of the agent and the task tokens they minted. Open realtime connections on them close.

## Path parameters

- `id` string, required

## Response `200`

Number of worker tokens revoked (0 when none was active)

- object
  - `revoked` integer, required

## Other responses

- `403`: Operator or user credentials required

## Changes

- **2026-10-20** `9628ff490c6a`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/desplega-ai/apis/agent-swarm-api/changes/api/agents/:id/token/delete.md)

---

[API](https://skmtc.dev/desplega-ai/apis/agent-swarm-api.md) - [All operations](https://skmtc.dev/desplega-ai/apis/agent-swarm-api/llms.txt) - [OpenAPI document](https://skmtc.dev/desplega-ai/apis/agent-swarm-api/revisions/7e4c7198192a?raw)
