Skip to content

REST API

The service exposes a full JSON API: run triggering and inspection, live SSE run tailing, pipeline/step CRUD with validation, per-pipeline and per-step analytics, calibration bins, prompt/agent version history, readiness readouts, accuracy feedback, Prometheus metrics, and health probes.

This page covers the core management endpoints — triggering and inspecting runs, feedback, pipeline listing, metrics, and health. For the read-only pipeline/step/agent analytics endpoints, see Analytics API. For the endpoints that create, update, validate, and delete pipelines and steps, see Write API — both were added to back the VectorStep Service MCP.

Trigger a run. Returns immediately — the pipeline runs in the background.

  • {"status": "accepted", "run_id": "<uuid>"}
  • {"status": "deduplicated", "run_id": "<uuid>", "reason": "..."} — see Webhooks for idempotency and deduplication.
  • {"status": "skipped_testing", "pipeline": "...", "reason": "..."} — see Pipeline stages; pass ?allow_testing=true to run a stage: testing pipeline from this source anyway.

Manually trigger a pipeline by name — powers the UI’s Run now button.

  • body: same shape as a generic webhook payload (see Webhooks), pipeline forced from the path
  • {"status": "accepted", "run_id": "<uuid>", ...}

Reload the step library and all pipeline YAMLs from disk without restarting.

{"status": "reloaded", "pipelines_loaded": 3}

SIGHUP also triggers a reload:

Terminal window
kill -HUP <uvicorn-pid>

List active cron schedules.

{"schedules": [{"pipeline": "...", "cron": "...", "next_run": "..."}]}

List runs, newest first.

Filters: ?status=escalated, ?pipeline=alert-triage-critical, ?team=payments, ?stage=production|testing.

Pagination: ?limit=50&offset=0 (max 200).

{"runs": [{id, pipeline_name, source, status, team, stage, triggered_at, completed_at}, ...]}

stage is "testing" or "production" (see Pipeline stages), included on both this list and the full detail response below — it’s persisted per-run, so it reflects the pipeline’s stage at the time the run was triggered rather than its current config.

Full run detail — includes all steps with confidence scores and parsed output.

Re-run a pipeline from a specific step.

  • body: {"from_step": "step-name"}

Submit or update human accuracy feedback for a run (outcome: correct | partial | incorrect).

  • body: {"outcome": "correct", "notes": "..."}
  • {"run_id": "...", "outcome": "correct", "notes": "...", "submitted_at": "..."}

Upserts — submitting again overwrites the previous outcome and notes.

Get current feedback for a run.

{"feedback": {run_id, outcome, notes, submitted_at}} or {"feedback": null}

POST /runs/{run_id}/steps/{step_name}/feedback

Section titled “POST /runs/{run_id}/steps/{step_name}/feedback”

Submit or update human accuracy feedback for a single step execution (outcome: correct | partial | incorrect). step_name may contain / for fan-out branches (e.g. triage/0) — the route uses a path converter to match it.

  • body: {"outcome": "correct", "notes": "..."}
  • {"run_id": "...", "step_name": "...", "outcome": "correct", "notes": "...", "submitted_at": "..."}

Upserts — submitting again overwrites the previous outcome and notes.

GET /runs/{run_id}/steps/{step_name}/feedback

Section titled “GET /runs/{run_id}/steps/{step_name}/feedback”

Get current feedback for a single step execution.

{"feedback": {run_id, step_name, outcome, notes, submitted_at}} or {"feedback": null}

Server-Sent Events stream for live run tailing. See UI: run detail.

List loaded pipelines — includes stage and tags alongside name/description/version.

Prometheus metrics — runs/steps by status, step duration histograms, verifier veto rate.

Liveness/readiness probe — also surfaces in-process concurrency state.

{"status": "ok", "active_runs": 0, "max_concurrent_runs": 10}