Skip to content
View as Markdown

POST List Models For Provider​

POST
/ai/models

List the model options FluentCRM offers for a provider, so the settings screen can populate its model dropdown after the provider changes.

This is a POST even though it only reads: the provider is sent inside the same settings envelope the other AI endpoints use.

Model lists are maintained in FluentCRM, not fetched from the provider, so the call does not need a valid API key and makes no outbound request.

Required capability: manage_options

Enforced by AiPolicy::verifyRequest(), the policy default for this route group.

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"
}
}

Responses​

Available models for the requested provider.

application/json
JSON
{
"models": [
{
"id": "string",
"title": "string"
}
]
}

Playground​

Authorization
Body

Samples​

Powered by VitePress OpenAPI