Skip to content

API Reference

All endpoints live under /api on the API server:

http://localhost:8000/api

The API also serves FastAPI’s interactive docs at http://localhost:8000/docs, outside /api.

There is none by default. If ADMIN_PASSWORD is set, every endpoint except GET /api/health requires HTTP Basic auth with any username:

Terminal window
curl -u admin:$ADMIN_PASSWORD http://localhost:8000/api/pipelines

See Authentication.

Requests and responses are JSON. Errors use FastAPI’s format:

{ "detail": "Pipeline not found" }
CodeMeaning
200 / 201Success / created
204Deleted
400Invalid input: bad cron, failed config validation, unknown source
401Missing or wrong password, or bad webhook signature
404Not found
409Name already taken, or a run is already pending or running
422Request body doesn’t match the schema

Always open, even with ADMIN_PASSWORD set.

{ "status": "ok", "database": "ok" }

If Postgres is unreachable, it returns {"status": "degraded", "database": "error"}, still with HTTP 200.

Counts for the dashboard.

{
"total_pipelines": 12,
"enabled_pipelines": 9,
"total_runs": 340,
"successful_runs": 310,
"failed_runs": 25,
"pending_runs": 1
}