Generate Plan Async
Async Plan Generation
Generate Plan Async
Generate a task plan asynchronously using Temporal workflow.
This endpoint:
- Creates an execution record in the database
- Submits a Temporal workflow for plan generation
- Returns execution_id for tracking progress
- Client can stream results via /api/v1/executions//stream
Flow:
- POST /api/v1/plans/generate → get execution_id
- GET /api/v1/executions//stream → stream progress and final plan
- Use plan from execution.plan_json with existing /api/v1/tasks/plan/execute
Benefits:
- Non-blocking: API responds immediately
- Progress tracking: Stream real-time updates
- Persistence: Plan stored in DB for later execution
- Resilient: Temporal handles retries and failures
POST
Generate Plan Async
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
application/json
Request to plan a task
Task description
Task priority
Available options:
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)
Available options:
claude_code_sdk, agno Use fast planning for --local mode (Haiku vs Sonnet)