Start detached agent run
Changed onStarts an agentic conversation loop in detached mode. The agent processes the user's message asynchronously, calling MCP tools as needed. Returns immediately with a runId and sessionId. Use /api/agent/runs/{runId}/events to stream the results via SSE.
RBAC
Tool execution within the agent loop respects user role permissions. Viewer role can only use read-only tools.
Iteration Limit
Max 50 iterations per run. Alert investigations (type=investigation) allow 60.
Request
- Base URL/api/plugins/consensys-asko11y-app/resources (relative, and the document was published on a file host, not at the API’s origin)
- Auth
- API key in cookie grafana_session
- or HTTP bearer
Query parameters
Optional explicit LLM app model abstraction to use for this session. Omit to let Ask O11y choose base or large from the task type and message complexity. Once explicitly set on a session, later runs must use the same model.
Headers
Grafana organization ID for multi-tenant isolation. Defaults to '1' if not provided.
Request body
Response
Agent run started successfully
Changes
- info
added the new optional request property
- info
- info
added the required property
to the response with the status - info
added the required property
to the response with the status
- info