Validate master key (pre-create)

View as 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.

Headers

AuthorizationstringRequired

Bearer {access_token}

X-Workspace-IdstringRequired
Workspace UUID

Request

provider, apiKey
apiKeystringRequired
providerstringRequired

Response

data: valid, message

messagestring
validboolean

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error