Anthropic 直连 API 密钥
POST /v1/auth/anthropic/api-key:保存 Anthropic 平台 API 密钥。
POST /v1/auth/anthropic/api-key
保存 Anthropic 平台 API 密钥。持久化前通过 GET /v1/models 校验。密钥保存在专用的 anthropicApiKey 资料槽位中,不依赖加载 $dataDir/env,网关重启后仍会保留。
| 方法 | POST |
| 路径 | /v1/auth/anthropic/api-key |
| 认证 | 需要 Authorization: Bearer <token> |
| 类别 | auth |
请求体
{ "apiKey": "sk-ant-...", "saveAnyway"?: boolean }