Skip to main content

POST /v1/plan

Compile a prompt into a plan without running it. A plan is a typed description of the job: the goal, the target entity and output schema, phases of sub-tasks with their executors, success criteria, a cost estimate, the gaps (sources with no scraper yet), the assumptions made, and clarifying questions you can answer in a follow-up answers object (to this route or to POST /v1/workflow). Auth: Bearer API key. Request: Response: Request and answer (phases trimmed to the first sub-task of each):
Errors: Notes:
  • Timing: 2 to 3 s; one model call.
  • Billing: one plan call (2 credits) when the model produced the plan. When no model is available the planner falls back to a zero-token heuristic, says so in assumptions, and is not billed.
  • No session is needed; nothing is executed.

GET /v1/plan/health

Whether planning uses a model. Auth: Bearer API key. Response: ok (always true when the route answers), understander (llm or heuristic), provider (the model provider, or null in heuristic mode). Errors: 401 only.