Update AI settings
/api/settings/aiSave the AI endpoint, key, model and on/off switch.
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 PUT "https://example.com/api/settings/ai" \ -H "Content-Type: application/json" \ -d '{ "enabled": true, "provider": null, "endpoint": null, "model": null, "apiKey": null }'{ "enabled": true, "provider": "string", "endpoint": null, "model": null, "apiKeyStored": true, "providers": [ { "id": "string", "label": "string", "endpoint": "string", "recommended": true } ], "acknowledgement": { "confirmed": true, "at": null, "by": null, "endpoint": "string", "sends": [ { "feature": "string", "text": "string" } ] }, "fallbackModel": null, "callLogKeepDays": 30}Get AI settings GET
The AI endpoint, model and on/off switch. The API key is never returned. Needs the `ManageSettings` permission.
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.