---
title: "POST /api/v1/api-keys/{id}/revoke"
method: POST
path: "/api/v1/api-keys/{id}/revoke"
tags: ["api-keys"]
---

# POST /api/v1/api-keys/{id}/revoke

`POST /api/v1/api-keys/{id}/revoke`

## Path parameters

- `id` string, required

## Response `200`

- ApiKeyResponseDto
  - `id` string, required
  - `name` string, required
  - `description` string, nullable, required
  - `keyPrefix` string, required
  - `keyHint` string, required
  - `permissions` object, required
    - `workflows` object, required
      - `run` boolean, required
      - `list` boolean, required
      - `read` boolean, required
    - `runs` object, required
      - `read` boolean, required
      - `cancel` boolean, required
    - `audit` object, required
      - `read` boolean, required
  - `isActive` boolean, required
  - `expiresAt` string, date-time, nullable, required
  - `lastUsedAt` string, date-time, nullable, required
  - `usageCount` number, required
  - `createdAt` string, date-time, required
  - `updatedAt` string, date-time, required

## Changes

- **2026-07-17** `cc60562ad9f3` — 1 info
  - added the required property `permissions/audit` to the response with the `200` status
- **2025-12-16** `78f9f2ecffe9` — 1 breaking, 1 info
  - removed the success response with the status `201`
  - added the success response with the status `200`
- **2025-12-16** `c38df714f383` — 1 info
  - endpoint added
- **2025-10-24** `8db531c050e5` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/shipsecai/apis/shipsec-studio-api/changes/api/v1/api-keys/:id/revoke/post.md)

---

[API](https://skmtc.dev/shipsecai/apis/shipsec-studio-api.md) · [All operations](https://skmtc.dev/shipsecai/apis/shipsec-studio-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/shipsecai/shipsec-studio-api/revisions/cc60562ad9f3/schema)
