Test AI settings
/api/settings/ai/testSend one short chat message through the endpoint on the form.
Needs the ManageSettings permission.
An API key, made on Settings, API keys. Every key starts with mbk_.
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/problem+json
application/problem+json
application/problem+json
curl -X POST "https://example.com/api/settings/ai/test" \ -H "Content-Type: application/json" \ -d '{ "provider": null, "endpoint": null, "model": null, "apiKey": null }'{ "worked": true, "message": "string"}Confirm AI sending POST
Confirm what member text is sent to the AI provider. Once, before AI can be switched on. M8 §4.5. Recorded as a fact naming the account that confirmed it, the endpoint shown at the time, and the lines they confirmed. Confirming again does nothing. Needs the `ManageSettings` permission.
List available models POST
The models the endpoint on the form lists. Needs the `ManageSettings` permission.