Skip to content

Test Connection

POST
/api/ai-configs/{config_id}/test
curl --request POST \
--url http://localhost:8080/api/ai-configs/example/test \
--header 'Authorization: Bearer <token>'

Verify the API key works AND that the model supports tool use (required).

config_id
required
Config Id
string

Successful Response

Media typeapplication/json
Examplegenerated
example

Validation Error

Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Examplegenerated
{
"detail": [
{
"loc": [
"example"
],
"msg": "example",
"type": "example"
}
]
}