Skip to content
View as Markdown

POST Test AI Connection​

POST
/ai/test

Validate the configured AI provider, model, and API key by making a short test request to the provider API. If a masked API key beginning with **** is provided, the saved key is reused.

Authorizations​

ApplicationPasswords

WordPress Application Passwords — use Basic auth with your WordPress username and an application password in the format: username:application_password

Type
API Key (header: Authorization)

Request Body​

application/json
JSON
{
"settings": {
"provider": "string",
"model": "string",
"api_key": "string"
}
}

Responses​

Connection test succeeded.

application/json
JSON
{
"message": "string"
}

Playground​

Authorization
Body

Samples​

Powered by VitePress OpenAPI