Issues API
Issue cards, Issue lists, creation, status transitions, manual reviews, attachments, and handoff.
/api/issues is the main entry point for the user-side Issue Center and the place where Agents update status within a Pipeline.
Do not mix the two kinds of operations:
- People: view lists, create Issues, confirm completion, cancel, resume, upload attachments
- Agents: declare awaiting input, submit review points, mark review pass or fail
Endpoints
Queries and creation
| Method | Path | Purpose | Authentication |
|---|---|---|---|
GET |
/api/issues/mine |
My Issues | dual |
GET |
/api/issues/{owner}/{repo} |
Repository Issue list | dual |
POST |
/api/issues/{owner}/{repo} |
Create an Issue | dual |
GET |
/api/issues/{owner}/{repo}/{number} |
Issue details | dual |
GET |
/api/issues/{owner}/{repo}/{number}/events |
Event list | dual |
GET |
/api/issues/{owner}/{repo}/{number}/pipeline |
Pipeline roadmap | dual |
GET |
/api/issues/{issue_id}/pipeline |
Pipeline roadmap by issue.id | dual |
POST |
/api/issues/{issue_id}/pipeline/trigger |
Trigger the pending Issue pipeline | user-level |
POST |
/api/issues/{issue_id}/admin-confirm-done |
Admin confirms the Issue is done (final review) | user-level |
POST |
/api/issues/{issue_id}/terminal-disposition |
Dispose a folded Issue whose carrier PR is terminal | user-level |
Manual operations
| Method | Path | Purpose | Authentication |
|---|---|---|---|
POST |
/api/issues/{issue_id}/start |
Open a session | user-level |
GET |
/api/issues/{issue_id}/status |
Query status | user-level |
PUT |
/api/issues/{issue_id}/status |
Status transition | user-level |
POST |
/api/issues/{issue_id}/confirm-done |
Confirm completion | user-level |
POST |
/api/issues/{issue_id}/cancel |
Cancel | user-level |
POST |
/api/issues/{issue_id}/resume |
Resume | user-level |
POST |
/api/issues/{issue_id}/reopen |
Reopen | user-level |
POST |
/api/issues/{issue_id}/clarify |
Reply to a clarification | user-level |
GET |
/api/issues/{issue_id}/clarifications |
Clarification history | user-level |
Agent status actions
| Method | Path | Purpose | Authentication |
|---|---|---|---|
POST |
/api/issues/{issue_id}/awaiting-input |
Declare that the Issue needs clarification | tk_ |
POST |
/api/issues/{issue_id}/pending-review |
Submit a stage review point | tk_ |
POST |
/api/issues/{issue_id}/review-pass |
Review passed | tk_ |
POST |
/api/issues/{issue_id}/review-reject |
Review rejected | tk_ |
Attachments and handoff
| Method | Path | Purpose | Authentication |
|---|---|---|---|
POST |
/api/issues/{issue_id}/attachments |
Upload an attachment | user-level |
GET |
/api/issues/{issue_id}/attachments |
Attachment list | dual |
DELETE |
/api/issues/{issue_id}/attachments/{filename} |
Delete an attachment | user-level |
POST |
/api/issues/{issue_id}/handoff |
Hand off to another Pipeline | user-level |
GET |
/api/issues/{issue_id}/handoff/targets |
Handoff targets | user-level |
POST |
/api/issues/{issue_id}/production-release |
Create a production release child Issue | user-level |
GET |
/api/issues/{issue_id}/production-release |
Query the production release child Issue | user-level |
POST |
/api/issues/{issue_id}/workspace/reset |
Reset the Issue workspace (idempotent; archives unpushed commits first) | user-level |
"User-level" means a grape_ API key or a web JWT; tk_ is used only for Agent status actions.
View the Issue list
curl -fsS -H @~/.grape.auth \
"$GRAPE_BASE_URL/api/issues/<owner>/<repo>?status=active&page=1&page_size=20"
Returns {issues, total}. Each issues item includes the stage, status, and Pipeline summary; refer to the actual response for exact fields.
Create an Issue
POST /api/issues/{owner}/{repo}
The request body must contain at least title; also provide:
description: background, goal, acceptance criteriaassignee: assigneelabels: labels
After creation, a webhook triggers the Pipeline. The returned issue_id is the Issue card id, not the Issue number.
Status and manual intervention
| Scenario | Endpoint |
|---|---|
| Confirm completion | POST /confirm-done |
| Cancel | POST /cancel |
| Resume | POST /resume |
| Reopen | POST /reopen |
| Reply to a clarification | POST /clarify |
GET /status suits polling, and PUT /status performs explicit status transitions. Status transitions must match Pipeline nodes; do not bypass manual confirmation.
The three Agent status actions
awaiting-input: the Issue is unclear; wait for the user to add details in an Issue commentpending-review: a stage review point is reached; wait for the user to approve or rejectreview-pass/review-reject: record the review result
These actions accept only tk_. Agents must not call confirm-done or cancel themselves; those are human actions.
Attachments
Upload:
POST /api/issues/{issue_id}/attachments
Content-Type: multipart/form-data
List or delete:
GET /api/issues/{issue_id}/attachments
DELETE /api/issues/{issue_id}/attachments/{filename}
Attachments belong to the Issue, not the task.
Common errors
| Status | Cause |
|---|---|
| 400 | Missing parameters or an invalid Issue number |
| 403 | Insufficient repository permission, or a credential type mismatch |
| 404 | The Issue does not exist |
| 409 | Status conflict or a concurrent write |
Related
Tasks API | Events API | A2A collaboration API | Authentication and credentials