---
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.net/memesio/apis/memesio-api-contracts.md) · [All operations](https://skmtc.net/memesio/apis/memesio-api-contracts/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/memesio/memesio-api-contracts/revisions/826e6edbf294/schema)
