---
title: "Revoke an API key"
method: POST
path: "/me/keys/revoke"
tags: ["Account"]
---

# Revoke an API key

`POST /me/keys/revoke`

## Request

- Base URL: `https://api.phone-harness.com`
- URL: `https://api.phone-harness.com/me/keys/revoke`
- Auth: HTTP bearer

Revoke a key belonging to this account using its key_hash from the key list, not the raw key. Revoking a key does not end sessions. The response is idempotent and does not prove the identifier existed.

## Request body

- object
  - `key_hash` string, required: Identifier from GET /me/keys.

## Response `200`

Revocation request processed.

- object
  - `revoked` true, required

## Other responses

- `400`: Invalid request.
- `401`: Bad or missing bearer credential.
- `403`: Account access denied or rental access unavailable.
- `500`: Unexpected service error.

---

[API](https://skmtc.dev/phone-harness/apis/phone-harness-api.md) - [All operations](https://skmtc.dev/phone-harness/apis/phone-harness-api/llms.txt) - [OpenAPI document](https://skmtc.dev/phone-harness/apis/phone-harness-api/revisions/5af8941102e5?raw)
