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.
Endpoints
/api/issuesList Issues
Query parameters
| Name | Type | Description |
|---|---|---|
status | string | null | — |
repo_id | string | null | — |
Responses
200Successful Response[ { "id": "string", "repo_id": "string", "title": "string", "description": "string", "type": "string", "base_branch": "string", "github_issue_number": 0, "status": "string", "plan": {}, "pr_url": "string", "pr_branch": "string", "rejection_count": 0, "retry_count": 0, "failure_reason": "string", "created_at": "2026-01-01T00:00:00.000Z", "updated_at": "2026-01-01T00:00:00.000Z" } ]422Validation Error
/api/issuesCreate Issue
Request body
| Name | Type | Description |
|---|---|---|
repo_idRequired | string | — |
titleRequired | string | — |
descriptionRequired | string | — |
typeRequired | "bug" | "feature" | "improvement" | — |
base_branch | string | — |
github_issue_number | integer | null | — |
{
"repo_id": "string",
"title": "string",
"description": "string",
"type": "bug",
"base_branch": "main",
"github_issue_number": 0
}Responses
201Successful Response{ "id": "string", "repo_id": "string", "title": "string", "description": "string", "type": "string", "base_branch": "string", "github_issue_number": 0, "status": "string", "plan": {}, "pr_url": "string", "pr_branch": "string", "rejection_count": 0, "retry_count": 0, "failure_reason": "string", "created_at": "2026-01-01T00:00:00.000Z", "updated_at": "2026-01-01T00:00:00.000Z", "github_publish_failed": false }422Validation Error
/api/issues/{issue_id}Get Issue
Path parameters
| Name | Type | Description |
|---|---|---|
issue_idRequired | string | — |
Responses
200Successful Response{ "id": "string", "repo_id": "string", "title": "string", "description": "string", "type": "string", "base_branch": "string", "github_issue_number": 0, "status": "string", "plan": {}, "pr_url": "string", "pr_branch": "string", "rejection_count": 0, "retry_count": 0, "failure_reason": "string", "created_at": "2026-01-01T00:00:00.000Z", "updated_at": "2026-01-01T00:00:00.000Z", "steps": [ { "agent": "string", "status": "string", "description": "string", "output": {}, "started_at": "2026-01-01T00:00:00.000Z", "completed_at": "2026-01-01T00:00:00.000Z", "duration_ms": 0 } ], "usage": { "input_tokens": 0, "output_tokens": 0, "cache_read_tokens": 0, "cache_creation_tokens": 0, "total_tokens": 0, "by_model": {}, "duration_ms": 0 } }422Validation Error
/api/issues/{issue_id}Cancel Issue
Path parameters
| Name | Type | Description |
|---|---|---|
issue_idRequired | string | — |
Responses
204Successful Response422Validation Error
/api/issues/{issue_id}/streamStream Issue
Path parameters
| Name | Type | Description |
|---|---|---|
issue_idRequired | string | — |
Responses
200Successful Response{}422Validation Error
/api/issues/{issue_id}/approveApprove Issue
Path parameters
| Name | Type | Description |
|---|---|---|
issue_idRequired | string | — |
Request body
| Name | Type | Description |
|---|---|---|
actionRequired | "approve" | "reject" | "instruct" | — |
instruction | string | null | — |
{
"action": "approve",
"instruction": "string"
}Responses
200Successful Response{ "id": "string", "repo_id": "string", "title": "string", "description": "string", "type": "string", "base_branch": "string", "github_issue_number": 0, "status": "string", "plan": {}, "pr_url": "string", "pr_branch": "string", "rejection_count": 0, "retry_count": 0, "failure_reason": "string", "created_at": "2026-01-01T00:00:00.000Z", "updated_at": "2026-01-01T00:00:00.000Z" }422Validation Error
/api/issues/{issue_id}/runRun Issue
Starts the pipeline for a `pending` issue. Issues created via `POST /api/issues` start automatically; issues imported from GitHub (`POST /api/repos/:id/import-issues`) land as `pending` and need an explicit run. Reuses the same `run_pipeline` entrypoint as creation.
Path parameters
| Name | Type | Description |
|---|---|---|
issue_idRequired | string | — |
Responses
200Successful Response{ "id": "string", "repo_id": "string", "title": "string", "description": "string", "type": "string", "base_branch": "string", "github_issue_number": 0, "status": "string", "plan": {}, "pr_url": "string", "pr_branch": "string", "rejection_count": 0, "retry_count": 0, "failure_reason": "string", "created_at": "2026-01-01T00:00:00.000Z", "updated_at": "2026-01-01T00:00:00.000Z" }422Validation Error
/api/issues/{issue_id}/permanentHard Delete Issue
Hard delete: removes the issue row and its pipeline_steps (cascade). Only allowed when the issue is in a terminal state — an active pipeline must be cancelled first. The associated GitHub PR (if any) is left intact.
Path parameters
| Name | Type | Description |
|---|---|---|
issue_idRequired | string | — |
Responses
204Successful Response422Validation Error