HTTP API
Curated route list for the Drillo API. Not the full OpenAPI contract.
Base path /api/v1. Auth is a session cookie (with X-CSRF-Token on writes) or a bearer API token. See Access.
| Area | Routes |
|---|---|
| Health | GET /healthz (no prefix) |
| Auth | POST /auth/login, /auth/logout, /auth/password, /auth/totp/enroll, /auth/totp/confirm; GET /auth/oidc/start, /auth/oidc/callback |
| Identity | GET /me |
| Search | POST /search (body: q, from, to, optional group), GET /search/export, GET /events/tail, GET /events/{src}/{boot_id}/{seq}/context |
| Saved queries | GET /saved-queries |
| Dashboards | GET, POST /dashboards, GET /dashboards/{id}, POST /dashboards/{id}/render |
| Tokens | GET, POST /tokens, DELETE /tokens/{id} |
| Audit | GET /audit, POST /mcp/audit |
| Storage | GET /storage/status |
| Jobs | GET, POST /jobs, GET, PATCH, DELETE /jobs/{name}, /jobs/{name}/runs, /history, /rotate, /test-pattern; ping routes /ping/{name}, /ping/{name}/{kind} (no prefix) |
| Alerts | GET /alerts, /alerts/{id}, /alerts/{id}/history, /alerts/{id}/evidence |
| Incident context | POST /incident-context/usage, GET /incident-context/usage.csv, GET, PUT /incident-context/setting |
| Admin | GET, POST /admin/dsar/cases, GET /admin/dsar/cases/{id}, POST /admin/dsar/cases/{id}/scan; user enable, reset-password and reset-totp under /admin/users/{id}/ |
The time range is always the from and to fields (RFC 3339), never part of q. A CQL error returns 400 with the error position.
curl -sS -X POST http://127.0.0.1:8080/api/v1/search \
-H "Authorization: Bearer <TOKEN>" -H "Content-Type: application/json" \
-d '{"q":"level=error | stats count() by service","from":"2026-01-01T00:00:00Z","to":"2026-01-01T01:00:00Z"}'Report an inaccuracy (opens a support ticket in the portal; nothing is sent from this page)