Validate master key (pre-create)

View as Markdown
Validates an API key with the provider without persisting. Custom providers use optional baseUrl. 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 and apiKey are required; baseUrl is optional for custom providers

apiKeystringRequired
providerstringRequired
baseUrlstringOptional

Optional custom-provider base URL.

Response

data: valid, message

messagestringOptional
validbooleanOptional

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error