Validate master key (pre-create)
Validate master key (pre-create)
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.
请求头
Authorization
Bearer {access_token}
X-Workspace-Id
Workspace UUID
请求
provider, apiKey
apiKey
provider
响应
data: valid, message
message
valid
错误
400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error