# API Reference

The REST API mirrors the CLI — every CLI command maps to an API endpoint.

## Base URL

http://localhost:51773

## Endpoints

Work Items

MethodPathDescription
GET/work-itemsList work items
POST/work-itemsCreate work item
GET/work-items/:idGet work item
PATCH/work-items/:idUpdate work item
DELETE/work-items/:idDelete work item
POST/work-items/:id/startStart agent
POST/work-items/:id/stopStop agent
POST/work-items/:id/pushPush and create PR
GET/work-items/:id/eventsSSE event stream
GET/work-items/:id/logsAgent logs

Configuration

MethodPathDescription
GET/configGet configuration
PATCH/configUpdate configuration

Events

MethodPathDescription
GET/eventsGlobal SSE event stream

Full OpenAPI documentation with request/response schemas is coming soon.