Task-runs
For instructions on how to authenticate to use this endpoint, see API overview.
API for managing task runs. Each run represents an execution of a task.
Endpoints
GET | |
POST | |
GET | |
PATCH | |
POST | |
PATCH |
List all tasks runs
Required API key scopes
task:readPath parameters
- project_idstring
Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.
- task_idstring
Query parameters
- limitinteger
Number of results to return per page.
- offsetinteger
The initial index from which to return the results.
Response
Example request
GET /api /projects /:project_id /tasks /:task_id /runsExample response
Status 200
Create tasks runs
Required API key scopes
task:writePath parameters
- project_idstring
Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.
- task_idstring
Request parameters
- stagestring
Current stage for this run (e.g., 'backlog', 'in_progress', 'done')
- branchstring
Branch name for the run
- status
- error_messagestring
Error message if execution failed
- output
Run output data (e.g., PR URL, commit SHA, etc.)
- state
Run state data for resuming or tracking execution state
Response
Example request
POST /api /projects /:project_id /tasks /:task_id /runsExample response
Status 201
Retrieve tasks runs
Required API key scopes
task:readPath parameters
- idstring
A UUID string identifying this task run.
- project_idstring
Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.
- task_idstring
Response
Example request
GET /api /projects /:project_id /tasks /:task_id /runs /:idExample response
Status 200
Update tasks runs
Required API key scopes
task:writePath parameters
- idstring
A UUID string identifying this task run.
- project_idstring
Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.
- task_idstring
Request parameters
- stagestring
Current stage for this run (e.g., 'backlog', 'in_progress', 'done')
- branchstring
Branch name for the run
- status
- error_messagestring
Error message if execution failed
- output
Run output data (e.g., PR URL, commit SHA, etc.)
- state
Run state data for resuming or tracking execution state
Response
Example request
PATCH /api /projects /:project_id /tasks /:task_id /runs /:idExample response
Status 200
Create tasks runs append log
Append one or more log entries to the task run log array
Required API key scopes
task:writePath parameters
- idstring
A UUID string identifying this task run.
- project_idstring
Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.
- task_idstring
Request parameters
- entriesarray
Array of log entry dictionaries to append
Response
Example request
POST /api /projects /:project_id /tasks /:task_id /runs /:id /append_logExample response
Status 200 Run with updated log
Status 400 Invalid log entries
Status 404 Run not found
Update tasks runs set output
Update the output field for a task run (e.g., PR URL, commit SHA, etc.)
Required API key scopes
task:writePath parameters
- idstring
A UUID string identifying this task run.
- project_idstring
Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.
- task_idstring
Response
Example request
PATCH /api /projects /:project_id /tasks /:task_id /runs /:id /set_output