---
title: "Revoke an agent key (wallet key only)"
method: POST
path: "/wallet/keys/{id}/revoke"
tags: ["Balance"]
---

# Revoke an agent key (wallet key only)

`POST /wallet/keys/{id}/revoke`

## Request

- Base URL: `https://api.phoenixlabs.space`
- URL: `https://api.phoenixlabs.space/wallet/keys/{id}/revoke`
- Auth: HTTP bearer

## Path parameters

- `id` string, required

## Response `200`

The key, revoked.

- object

## Other responses

- `400`: Bad input. `detail` says what to fix.
- `401`: Missing or unrecognised key.
- `402`: The balance, or the agent key's limit, doesn't cover the price. `needs_topup` or `over_limit` says which.

---

[API](https://skmtc.dev/phoenixlabs/apis/phoenix-labs-api.md) · [All operations](https://skmtc.dev/phoenixlabs/apis/phoenix-labs-api/llms.txt) · [OpenAPI document](https://skmtc.dev/phoenixlabs/apis/phoenix-labs-api/revisions/7648b94d8dd2?raw)
