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.
Address
Section titled “Address”| 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 |
Signing requests
Section titled “Signing requests”Send an API key in the X-API-KEY header:
curl -H "X-API-KEY: $AVACOM_API_KEY" https://avacom.bank.local/backend/incidents/summaryCreate 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.
Endpoints people use most
Section titled “Endpoints people use most”| 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 |
How this reference is made
Section titled “How this reference is made”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:
docker compose exec -T avacom-backend python - < docs/scripts/export_openapi.py > docs/openapi.jsonExport it again after the API changes, then rebuild the docs. Outside production, the API also serves its own
interactive reference at /docs.