---
title: "Revoke an agent's API token"
method: DELETE
path: "/api/agents/identity/{slug}/tokens/{id}"
tags: ["API Tokens"]
---

# Revoke an agent's API token

`DELETE /api/agents/identity/{slug}/tokens/{id}`

## Request

- Base URL: `https://domani.run`
- URL: `https://domani.run/api/agents/identity/{slug}/tokens/{id}`
- Auth: HTTP bearer

Revokes a token bound to this agent identity. It stops working immediately. Requires `tokens:write`.

## Path parameters

- `slug` string, required
- `id` string, required

## Response `200`

Revoked

- object
  - `success` boolean
  - `hint` string

## Other responses

- `401`: Missing or invalid API key
- `404`: No such token for this agent
- `429`: Rate limit exceeded - wait and retry

---

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