Skip to content

API overview

Everything the app does goes through a REST API, which you can use too: to send alerts, read incidents and their analyses, or script the setup. The pages in this section list every endpoint, grouped as the API groups them.

Install API address
Production (docker-compose.prod.yml) https://<your domain>/backend
Single sign-on (docker-compose-with-sso.yml) https://<your domain>/v2
Evaluation (docker-compose.yml) http://localhost:8080

Send an API key in the X-API-KEY header:

Terminal window
curl -H "X-API-KEY: $AVACOM_API_KEY" https://avacom.bank.local/backend/incidents/summary

Create keys under Settings › Users and Access › API Keys. A key has a role, and the role decides what it may call (Roles). Each endpoint in this reference says which permission it needs, for example Needs read:incident. “Any signed-in user or API key” means no particular permission.

Endpoint What
POST /alerts/event Send alerts (format)
GET /incidents List incidents
GET /incidents/summary The Overview’s numbers
GET /incidents/{id}/analysis An incident’s latest analysis: evidence, cause chains and RCA
POST /incidents/{id}/analysis Analyze again
GET/POST /incidents/{id}/fix Read or prepare the fix plan
POST /incidents/{id}/fix/{fix_id}/approve Approve a fix (with change_ticket, comment and the revision you saw)
POST /incidents/{id}/deliveries Send the RCA along a route
POST /evidence/query Ask every evidence source directly
GET /healthcheck Is the API up

These pages are generated from the API’s OpenAPI document, docs/openapi.json, every time the docs are built. The document is exported from the running backend, together with the permission each endpoint checks:

Terminal window
docker compose exec -T avacom-backend python - < docs/scripts/export_openapi.py > docs/openapi.json

Export it again after the API changes, then rebuild the docs. Outside production, the API also serves its own interactive reference at /docs.