MINARA

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 }

本頁目錄