POST
/
api
/
bot-accounts
/
settings
/
test-key
Test API Key
curl --request POST \
  --url https://api.example.com/api/bot-accounts/settings/test-key

Request Body

{
  "provider": "openai",
  "apiKey": "sk-...",
  "model": "gpt-4o"
}

Response (success)

{
  "ok": true,
  "response": "Hello! How can I help you?"
}

Response (failure)

{
  "ok": false,
  "error": "Invalid API key"
}