API reference

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

get/api/issues

List Issues

Query parameters

NameTypeDescription
statusstring | null—
repo_idstring | 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
post/api/issues

Create Issue

Request body

NameTypeDescription
repo_idRequiredstring—
titleRequiredstring—
descriptionRequiredstring—
typeRequired"bug" | "feature" | "improvement"—
base_branchstring—
github_issue_numberinteger | null—
Example
{
  "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
get/api/issues/{issue_id}

Get Issue

Path parameters

NameTypeDescription
issue_idRequiredstring—

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
delete/api/issues/{issue_id}

Cancel Issue

Path parameters

NameTypeDescription
issue_idRequiredstring—

Responses

  • 204Successful Response
  • 422Validation Error
get/api/issues/{issue_id}/stream

Stream Issue

Path parameters

NameTypeDescription
issue_idRequiredstring—

Responses

  • 200Successful Response
    {}
  • 422Validation Error
post/api/issues/{issue_id}/approve

Approve Issue

Path parameters

NameTypeDescription
issue_idRequiredstring—

Request body

NameTypeDescription
actionRequired"approve" | "reject" | "instruct"—
instructionstring | null—
Example
{
  "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
post/api/issues/{issue_id}/run

Run 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

NameTypeDescription
issue_idRequiredstring—

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
delete/api/issues/{issue_id}/permanent

Hard 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

NameTypeDescription
issue_idRequiredstring—

Responses

  • 204Successful Response
  • 422Validation Error