v5

latestOpenAPI 3.1.02026-08-08341215300.9 KB

Start Code Gen Task

Start a Fargate task for code generation with specified parameters.

This endpoint launches an ECS Fargate task with the provided configuration as environment variables.

Alternatively, if use_claude_gha is True, creates a GitHub issue with @claude in the body to trigger the Claude Code GitHub Action workflow.

Network Configuration:

  • If subnets are not provided, the default VPC's subnets will be used automatically
  • If security groups are not provided, the default security group will be used
  • Fargate requires subnets because each task gets its own network interface (awsvpc mode)
post/api/start-code-gen-task

Request body

target_repostring required
target_base_branchstring required
github_app_installation_idinteger required
target_repo_ownerstring required
target_repo_namestring required
initial_promptstring required
slack_channel_idstring nullable
slack_message_tsstring nullable
team_idstring nullable
cluster_namestring nullable
task_definitionstring nullable
subnetsstring[] nullable
security_groupsstring[] nullable
use_claude_ghaboolean
issue_titlestring nullable
use_modalboolean
requester_namestring nullable
requester_emailstring nullable

Response

Successful Response

{"stackTrail":"paths:/api/start-code-gen-task:post:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}