API Reference
All endpoints live under /api on the API server:
http://localhost:8000/apiThe API also serves FastAPI’s interactive docs at http://localhost:8000/docs, outside /api.
Authentication
Section titled “Authentication”There is none by default. If ADMIN_PASSWORD is set, every endpoint except GET /api/health requires HTTP Basic auth with any username:
curl -u admin:$ADMIN_PASSWORD http://localhost:8000/api/pipelinesSee Authentication.
Errors
Section titled “Errors”Requests and responses are JSON. Errors use FastAPI’s format:
{ "detail": "Pipeline not found" }| Code | Meaning |
|---|---|
200 / 201 | Success / created |
204 | Deleted |
400 | Invalid input: bad cron, failed config validation, unknown source |
401 | Missing or wrong password, or bad webhook signature |
404 | Not found |
409 | Name already taken, or a run is already pending or running |
422 | Request body doesn’t match the schema |
Health and stats
Section titled “Health and stats”GET /health
Section titled “GET /health”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.
GET /stats
Section titled “GET /stats”Counts for the dashboard.
{ "total_pipelines": 12, "enabled_pipelines": 9, "total_runs": 340, "successful_runs": 310, "failed_runs": 25, "pending_runs": 1}Endpoint groups
Section titled “Endpoint groups” Pipelines and runs /pipelines: CRUD, tags, duplicate, sync-streams, runs, logs, cancel, download.
Connectors /connectors and /saved: available connectors, connection checks, saved configs.
Custom sources /custom-sources: code, config schema, test, upload, delete, Git sync.