Tasks
For instructions on how to authenticate to use this endpoint, see API overview.
Endpoints
POST | |
POST |
Create tasks summaries
Returns summary for the requested tasks: id, title, repository, created_at, updated_at, and the latest run's status and environment.
Required API key scopes
task:readQuery parameters
- limitinteger
- offsetinteger
Request parameters
- idsarray
Response
Example request
POST /api /projects /:project_id /tasks /summariesExample response
Status 200 Summary fields for the requested tasks
Create tasks summaries
Returns summary for the requested tasks: id, title, repository, created_at, updated_at, and the latest run's status and environment.
Required API key scopes
task:readQuery parameters
- limitinteger
- offsetinteger
Request parameters
- idsarray
Response
Example request
POST /api /projects /:project_id /tasks /summariesExample response
Status 200 Summary fields for the requested tasks
Create tasks warm
Warm a full idling Run for a Code-app cloud task while the user composes: boot a sandbox, clone the repo, check out the branch, and start the agent, then idle awaiting the first message. On submit the normal create+run path transparently reuses and activates this Run; abandoned warms are reaped by the Run's inactivity timeout. Best-effort: returns an empty body when the feature flag is off, the warm pool is full, or the GitHub integration doesn't belong to the team.
Required API key scopes
task:writeRequest parameters
- repositorystring
- github_integrationinteger
- branchstringnull
- runtime_adapter
- modelstringnull
- reasoning_effort
- sandbox_environment_idstringnull
- custom_image_idstringnull
Response
Example request
POST /api /projects /:project_id /tasks /warmExample response
Status 200 Warm Run provisioned (`task_id`/`run_id` to activate on submit), or an empty body when the feature is off, capped, or the integration didn't resolve.
Create tasks warm
Warm a full idling Run for a Code-app cloud task while the user composes: boot a sandbox, clone the repo, check out the branch, and start the agent, then idle awaiting the first message. On submit the normal create+run path transparently reuses and activates this Run; abandoned warms are reaped by the Run's inactivity timeout. Best-effort: returns an empty body when the feature flag is off, the warm pool is full, or the GitHub integration doesn't belong to the team.
Required API key scopes
task:writeRequest parameters
- repositorystring
- github_integrationinteger
- branchstringnull
- runtime_adapter
- modelstringnull
- reasoning_effort
- sandbox_environment_idstringnull
- custom_image_idstringnull
Response
Example request
POST /api /projects /:project_id /tasks /warm