Pular para o conteúdo

Test Api Connection

POST
/api/v1/admin/ai-config/test-connection

Test API key connection.

Super admin only.

Validates that the API key is working by making a test request.

Args: request: TestConnectionRequest with provider and api_key

Returns: {“success”: True/False, “message”: ”…”}

TestConnectionRequest
object
provider
required
Provider
string
api_key
required
Api Key
string

Successful Response

Response Test Api Connection Api V1 Admin Ai Config Test Connection Post
object

Validation Error

HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string