HTTP API

Curated route list for the Drillo API. Not the full OpenAPI contract.

Verified against v1.0.0-rc.1 · sources

Base path /api/v1. Auth is a session cookie (with X-CSRF-Token on writes) or a bearer API token. See Access.

AreaRoutes
HealthGET /healthz (no prefix)
AuthPOST /auth/login, /auth/logout, /auth/password, /auth/totp/enroll, /auth/totp/confirm; GET /auth/oidc/start, /auth/oidc/callback
IdentityGET /me
SearchPOST /search (body: q, from, to, optional group), GET /search/export, GET /events/tail, GET /events/{src}/{boot_id}/{seq}/context
Saved queriesGET /saved-queries
DashboardsGET, POST /dashboards, GET /dashboards/{id}, POST /dashboards/{id}/render
TokensGET, POST /tokens, DELETE /tokens/{id}
AuditGET /audit, POST /mcp/audit
StorageGET /storage/status
JobsGET, POST /jobs, GET, PATCH, DELETE /jobs/{name}, /jobs/{name}/runs, /history, /rotate, /test-pattern; ping routes /ping/{name}, /ping/{name}/{kind} (no prefix)
AlertsGET /alerts, /alerts/{id}, /alerts/{id}/history, /alerts/{id}/evidence
Incident contextPOST /incident-context/usage, GET /incident-context/usage.csv, GET, PUT /incident-context/setting
AdminGET, 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.

sh
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"}'

Sources

This page was checked against: crates/api/src/lib.rs, api/openapi.yaml.

Report an inaccuracy (opens a new issue in the Drillo repository; nothing is sent from this page)