---
title: "Revokes a key"
method: POST
path: "/apps/{app_id}/keys/{key_id}/revoke"
tags: ["keys"]
---

# Revokes a key

`POST /apps/{app_id}/keys/{key_id}/revoke`

## Path parameters

- `app_id` string, required
- `key_id` string, required

## Response `200`

Key revoked

## Other responses

- `401` — Authentication failed
- `404` — Not found
- `500` — Internal server error
- `504` — Gateway timeout

---

[API](https://skmtc.net/ably/apis/api-v1.md) · [All operations](https://skmtc.net/ably/apis/api-v1/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/ably/api-v1/revisions/2b049ae2733f/schema)
