Validate master key (pre-create)

以 Markdown 格式查看

Validates an API key with the provider (OpenAI/Anthropic) without persisting. Used by Add Master Key step 2. Always returns 200 with valid and message.

请求头

Authorizationstring必需

Bearer {access_token}

X-Workspace-Idstring必需
Workspace UUID

请求

provider, apiKey
apiKeystring必需
providerstring必需

响应

data: valid, message

messagestring
validboolean

错误

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error