Plan Task
Generate an AI-powered task plan (non-streaming)
Uses the same 2-step workflow as /tasks/plan/stream but returns the final plan directly. This endpoint is used by the CLI for fast planning mode.
The 2-step workflow:
- Step 1: Analysis & Resource Selection (discovers agents/teams, selects best match)
- Step 2: Full Plan Generation (creates TaskPlanResponse with costs, risks, etc.)
Benefits:
- Faster than old 4-step workflow (45-55s vs 119s)
- Consistent behavior with streaming endpoint
- Smart pre-fetching of top 20 resources
Documentation Index
Fetch the complete documentation index at: https://docs.kubiya.ai/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
Enter your Kubiya API token (format: Bearer )
Body
Request to plan a task
Task description
Task priority
low, medium, high, critical Associated project ID
Available agents (outer context from CLI)
Available teams (outer context from CLI)
Available execution environments
Available worker queues
User feedback for plan refinement
Conversation history for context
Previous plan for refinement
Planning iteration number
Planning strategy to use (claude_code_sdk or agno)
claude_code_sdk, agno Use fast planning for --local mode (Haiku vs Sonnet)
Response
Successful Response