Document flow's API under /v1

Claude-Session: https://claude.ai/code/session_011i2AG9nwpiKUCVxAdDzYuU
This commit is contained in:
2026-09-29 18:34:39 -07:00
parent db35659c45
commit 8670ff6033
558 changed files with 1038 additions and 1023 deletions
@@ -9,7 +9,7 @@ api_key = os.environ.get("FLOW_API_KEY", "")
headers = {"Content-Type": "application/json", "x-api-key": api_key}
start = requests.post(
f"{base}/api/v2/workflows",
f"{base}/v1/workflows",
headers=headers,
json={"flow_id": flow_id, "background": True, "stream": False, "inputs": {}},
timeout=60,
@@ -18,7 +18,7 @@ start.raise_for_status()
job_id = start.json()["job_id"]
stop = requests.post(
f"{base}/api/v2/workflows/stop",
f"{base}/v1/workflows/stop",
headers=headers,
json={"job_id": job_id},
timeout=60,