Parameters
JSON body
Request body
application/jsonprovider"google" | "openai" | "anthropic"RequiredapiKeystringRequiredThe provider API key to store. Validated by a probe call before persistence.
Validates the supplied API key with a minimal probe call against the provider and, on success, persists it into cas__organisation_configuration under the matching key (ai_gemini_api_key / ai_openai_api_key / ai_anthropic_api_key). Invalidates the in-memory provider cache for this organisation.
JSON body
provider"google" | "openai" | "anthropic"RequiredapiKeystringRequiredThe provider API key to store. Validated by a probe call before persistence.
1 status code documented
successbooleanRequiredtruewarningstring | nullRequiredNon-fatal probe warning. Present when the key was saved but the probe round-trip failed for a non-auth reason (model access, transient error). Null when the probe cleanly authenticated.
{
"success": true
}POST /bff/organisation-ai/set-api-key
curl -X POST "https://api.bizkithub.com/bff/organisation-ai/set-api-key" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"apiKey": "example_apiKey"
}'All BizKitHub public API endpoints require authentication via API key.