# API Reference
The REST API mirrors the CLI — every CLI command maps to an API endpoint.
## Base URL
http://localhost:51773
## Endpoints
Work Items
| Method | Path | Description |
|---|
GET | /work-items | List work items |
POST | /work-items | Create work item |
GET | /work-items/:id | Get work item |
PATCH | /work-items/:id | Update work item |
DELETE | /work-items/:id | Delete work item |
POST | /work-items/:id/start | Start agent |
POST | /work-items/:id/stop | Stop agent |
POST | /work-items/:id/push | Push and create PR |
GET | /work-items/:id/events | SSE event stream |
GET | /work-items/:id/logs | Agent logs |
Configuration
| Method | Path | Description |
|---|
GET | /config | Get configuration |
PATCH | /config | Update configuration |
Events
| Method | Path | Description |
|---|
GET | /events | Global SSE event stream |
Full OpenAPI documentation with request/response schemas is coming soon.