Appearance
Analyst API Since v0.2
The analyst answers from your own events and configuration and never changes anything. For its settings, see Analytics, analyst and helper processes.
For the base URL, sign-in, roles and error format, see Management API. Except sign-in, a route answers 401 without credentials and 403 when the role is too low.
Routes
Questions and explanations
| Method | Path | Minimum role | What it does | Main fields |
|---|---|---|---|---|
POST | /v1/analyst/ask | viewer | Answers a question about events and configuration. | Body: question, app, since, until. |
POST | /v1/analyst/explain/event/{id} | viewer | Explains one event. | none |
POST | /v1/analyst/explain/issue/{id} | admin, all applications | Explains one assessment issue. | none |
POST | /v1/analyst/summary | viewer | Summarizes a window of events. | Body: app, since, until. |
POST | /v1/analyst/changes | viewer | Reviews recent configuration changes. | Body: app, since, until. |
Conversations and digests
| Method | Path | Minimum role | What it does | Main fields |
|---|---|---|---|---|
GET | /v1/analyst/conversations | viewer | Lists the caller's conversations. | Query: before. |
GET | /v1/analyst/conversations/{id} | viewer | Returns one conversation. | none |
DELETE | /v1/analyst/conversations/{id} | viewer | Deletes one conversation. | none |
GET | /v1/analyst/digests | viewer | Lists stored digests. | none |
POST | /v1/analyst/digests/run | operator | Builds digests now. | Body: app (optional). Response: started. |
Status and providers
| Method | Path | Minimum role | What it does | Main fields |
|---|---|---|---|---|
GET | /v1/analyst/status | viewer | Returns the analyst runtime state. | none |
GET | /v1/analyst/providers | viewer | Lists the model providers offered. | Response: providers. |
POST | /v1/analyst/test | admin, all applications | Tests the configured model connection. | none |
POST | /v1/analyst/detect | admin, all applications | Looks for model files and the local runtime on this node. | none |
Example
sh
curl -sk -X POST -H "Authorization: Bearer waap_EXAMPLE" -H "Content-Type: application/json" -d '{"question":"What was blocked most today?","app":"shop"}' https://127.0.0.1:9443/v1/analyst/ask