Issues
Create issues, run the multi-agent pipeline on them and stream the result back in real time.
What this resource does
An issue is the work unit the pipeline operates on. Creating one through POST /api/issues triggers the full chain of agents. Importing one from a connected GitHub repository (handled in the GitHub helpers section) leaves the issue in pending and requires POST /api/issues/{id}/run to start.
The agent pipeline pauses at human_review. The user resumes it through POST /api/issues/{id}/approve with one of three actions: approve, reject or instruct (free-text guidance to incorporate into a regenerated plan).
Two delete-shaped endpoints exist: DELETE /api/issues/{id} cancels the active job (the issue stays in the table as cancelled); DELETE /api/issues/{id}/permanent removes the row entirely and is only allowed on terminal issues.