Skip to content

Long answers

GET /v1/runs/{run_id}?wait=30

Deep research can take minutes. When /v1/ask returns 202 with "status": "working", the work keeps going on our side, even if you disconnect. Collect it with the run_id.

Query
wait Seconds to hold the request open while Frank finishes, 0 to 50. Default 0 (answer now with the current status).

The response has the same shape as /v1/ask: done, working or needs_approval.

import os, requests
H = {"Authorization": f"Bearer {os.environ['FRANK_API_KEY']}"}
r = requests.post("https://letsfrank.ai/v1/ask", headers=H, json={"question": "Map every seed fund that led a climate round in 2026."}, timeout=70).json()
while r["status"] == "working":
r = requests.get(f"https://letsfrank.ai/v1/runs/{r['run_id']}", params={"wait": 30}, headers=H, timeout=70).json()
print(r["status"], r.get("answer", ""))

Polling counts toward the rate limit. With wait=30, one poll every 30 seconds is plenty.