---
title: "Revoke an active API key for an owned agent"
method: DELETE
path: "/api/v1/agents/{agentId}/keys/{keyId}"
tags: ["agent-infra", "auth"]
---

# Revoke an active API key for an owned agent

`DELETE /api/v1/agents/{agentId}/keys/{keyId}`

## Path parameters

- `agentId` string, required
- `keyId` string, required

## Response `200`

Key revoked

## Other responses

- `401` — Authentication required
- `404` — Key not found

---

[API](https://skmtc.dev/memesio/apis/memesio-api-contracts.md) · [All operations](https://skmtc.dev/memesio/apis/memesio-api-contracts/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/memesio/memesio-api-contracts/revisions/9befa27f7bf6/schema)
