Skip to content

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 ​

MethodPathMinimum roleWhat it doesMain fields
POST/v1/analyst/askviewerAnswers a question about events and configuration.Body: question, app, since, until.
POST/v1/analyst/explain/event/{id}viewerExplains one event.none
POST/v1/analyst/explain/issue/{id}admin, all applicationsExplains one assessment issue.none
POST/v1/analyst/summaryviewerSummarizes a window of events.Body: app, since, until.
POST/v1/analyst/changesviewerReviews recent configuration changes.Body: app, since, until.

Conversations and digests ​

MethodPathMinimum roleWhat it doesMain fields
GET/v1/analyst/conversationsviewerLists the caller's conversations.Query: before.
GET/v1/analyst/conversations/{id}viewerReturns one conversation.none
DELETE/v1/analyst/conversations/{id}viewerDeletes one conversation.none
GET/v1/analyst/digestsviewerLists stored digests.none
POST/v1/analyst/digests/runoperatorBuilds digests now.Body: app (optional). Response: started.

Status and providers ​

MethodPathMinimum roleWhat it doesMain fields
GET/v1/analyst/statusviewerReturns the analyst runtime state.none
GET/v1/analyst/providersviewerLists the model providers offered.Response: providers.
POST/v1/analyst/testadmin, all applicationsTests the configured model connection.none
POST/v1/analyst/detectadmin, all applicationsLooks 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