Get AI alert settings
GET
/api/settings/ai/alertsWhat is watched for unusual activity, and where alerts go.
Needs the ManageSettings permission.
AuthorizationBearer <token>
An API key, made on Settings, API keys. Every key starts with mbk_.
In: header
Response Body
application/json
application/problem+json
application/problem+json
curl -X GET "https://example.com/api/settings/ai/alerts"{ "discordChannelId": null, "quietHours": 0, "writeSentence": true, "aiOn": true, "watchers": [ { "watcher": "string", "label": "string", "sensitivity": "string", "last": null } ], "secondInstanceAtPeople": null, "secondInstanceAtPercent": null}Write an insight POST
Write one insight of this kind now, for the stretch ending yesterday. Waits for the model. Answers 200 with the stored insight whether the model wrote something or the call failed -- `text` or `error` says which. Never posted to Discord. 409 when AI is off or the spend limit for insights is reached. Needs the `ManageSettings` permission.
Update AI alert settings PUT
Save what is watched, how sensitive each watcher is, and where alerts go. Needs the `ManageSettings` permission.