---
title: "删除 OhMyAgent API Key"
method: DELETE
path: "/api/v1/users/ohmyagent/api-keys/{id}"
tags: ["【用户】OhMyAgent"]
---

# 删除 OhMyAgent API Key

`DELETE /api/v1/users/ohmyagent/api-keys/{id}`

按 Key ID 删除当前用户自己的 OhMyAgent 代理 Key；不能删除 runtime Key 或其他用户的 Key。

## Path parameters

- `id` string, required

## Response `200`

成功

- WebResp
  - `code` integer
  - `data` unknown
  - `message` string

## Other responses

- `400` — 请求参数错误
- `401` — 未授权
- `500` — 服务器内部错误

---

[API](https://skmtc.net/chaitin/apis/untitled-api.md) · [All operations](https://skmtc.net/chaitin/apis/untitled-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/chaitin/untitled-api/versions/5a5929cb17f2/schema)
