Skip to main content
POST
Generate Plan Async

Authorizations

Authorization
string
header
required

Enter your Kubiya API token (format: Bearer )

Body

application/json

Request to plan a task

description
string
required

Task description

priority
enum<string>
default:medium

Task priority

Available options:
low,
medium,
high,
critical
project_id
string | null

Associated project ID

agents
AgentInfo · object[]

Available agents (outer context from CLI)

teams
TeamInfo · object[]

Available teams (outer context from CLI)

environments
EnvironmentInfo · object[]

Available execution environments

worker_queues
WorkerQueueInfo · object[]

Available worker queues

refinement_feedback
string | null

User feedback for plan refinement

conversation_context
string | null

Conversation history for context

previous_plan
Previous Plan · object | null

Previous plan for refinement

iteration
integer
default:1

Planning iteration number

planning_strategy
enum<string> | null
default:claude_code_sdk

Planning strategy to use (claude_code_sdk or agno)

Available options:
claude_code_sdk,
agno
quick_mode
boolean
default:false

Use fast planning for --local mode (Haiku vs Sonnet)

Response

Successful Response

Response model for async plan generation

execution_id
string
required

Unique execution identifier

workflow_id
string
required

Temporal workflow identifier

status
string
required

Current execution status

message
string
required

Human-readable status message