Sprints & Planning
Run sprints and plan delivery. The core sprint CRUD lives under /api/sprints; the delivery-planning views (sprint states, epics, releases, merges, deploys) live under /api/engops.
Auth: all calls require a Bearer JWT plus the X-Workspace-Id header.
Sprints
/api/sprintsAuth requiredList sprints with per-sprint issue and done counts.
Query Parameters
| Field | Type | Required | Note |
|---|---|---|---|
| status | string | No | "planned" | "active" | "completed" |
Response
{
"sprints": [
{
"id": 2,
"name": "Sprint 14",
"goal": "Ship onboarding v2",
"status": "active",
"issue_count": 9,
"done_count": 4,
"created_at": "2026-03-20T10:00:00Z",
"updated_at": "2026-03-27T10:00:00Z"
}
],
"total": 1
}/api/sprintsAuth requiredCreate a sprint.
Request Body
| Field | Type | Required | Note |
|---|---|---|---|
| name | string | Yes | — |
| goal | string | No | Default empty |
| starts_at | string | No | ISO timestamp |
| ends_at | string | No | ISO timestamp |
| status | string | No | Default "planned" |
Response
{
"id": 3,
"name": "Sprint 15",
"goal": "",
"status": "planned",
"created_at": "2026-03-28T10:00:00Z",
"updated_at": "2026-03-28T10:00:00Z"
}/api/sprints/{sprint_id}Auth requiredGet one sprint with its issue and done counts.
Response
{
"id": 2,
"name": "Sprint 14",
"goal": "Ship onboarding v2",
"status": "active",
"issue_count": 9,
"done_count": 4
}/api/sprints/{sprint_id}Auth requiredUpdate a sprint. All fields optional.
Request Body
| Field | Type | Required | Note |
|---|---|---|---|
| name | string | No | — |
| goal | string | No | — |
| starts_at | string | No | — |
| ends_at | string | No | — |
| status | string | No | — |
Response
{
"id": 2,
"name": "Sprint 14",
"status": "completed",
"issue_count": 9,
"done_count": 9
}/api/sprints/{sprint_id}Auth requiredDelete a sprint. Its issues are unassigned but kept.
Response
{ "deleted": 2 }EngOps Sprints
Same sprints table, delivery-oriented shape: Planning / Active / Closed states plus computed velocity.
/api/engops/sprintsAuth requiredList sprints with display state and velocity.
Query Parameters
| Field | Type | Required | Note |
|---|---|---|---|
| limit | number | No | Default 50, max 200 |
| state | string | No | "Planning" | "Active" | "Closed" |
Response
[
{
"id": 2,
"workspace_id": 1,
"name": "Sprint 14",
"goal": "Ship onboarding v2",
"state": "Active",
"start_date": "2026-03-20",
"end_date": "2026-04-02",
"velocity": 21
}
]/api/engops/sprintsAuth requiredCreate a sprint.
Request Body
| Field | Type | Required | Note |
|---|---|---|---|
| name | string | Yes | — |
| goal | string | No | — |
| start_date | string | No | Also accepts starts_at |
| end_date | string | No | Also accepts ends_at |
| state | string | No | Default "Planning" |
Response
{
"id": 3,
"workspace_id": 1,
"name": "Sprint 15",
"state": "Planning",
"velocity": 0
}/api/engops/sprints/{sprint_id}Auth requiredGet a sprint with its linked issues.
Response
{
"sprint": { "id": 2, "name": "Sprint 14", "state": "Active", "velocity": 21 },
"issues": [
{ "issue_id": 12, "points": 5, "ref": "ISS-4821", "title": "Checkout fix", "status": "Done" }
]
}/api/engops/sprints/{sprint_id}Auth requiredUpdate a sprint. Only supplied fields change.
Request Body
| Field | Type | Required | Note |
|---|---|---|---|
| name | string | No | — |
| goal | string | No | — |
| state | string | No | — |
| start_date | string | No | — |
| end_date | string | No | — |
Response
{
"id": 2,
"name": "Sprint 14",
"state": "Closed",
"velocity": 21
}/api/engops/sprints/{sprint_id}/issuesAuth requiredAssign an issue to a sprint, optionally overriding its story points.
Request Body
| Field | Type | Required | Note |
|---|---|---|---|
| issue_id | number | Yes | — |
| points | number | No | Defaults to the issue's current points |
Response
{ "sprint_id": 2, "issue_id": 12, "points": 5 }/api/engops/sprints/{sprint_id}/issues/{issue_id}Auth requiredRemove an issue from a sprint. The issue itself is kept.
Response
{ "sprint_id": 2, "issue_id": 12, "unlinked": true }/api/engops/sprints/{sprint_id}/closeAuth requiredClose a sprint. Reports velocity from done issues, lists carried-over issue ids, and suggests the next planned sprint. Send an empty JSON object {} as the body.
Response
{
"sprint": { "id": 2, "name": "Sprint 14", "state": "Closed" },
"velocity": 21,
"carried_over": [14, 18],
"next_sprint_id": 3
}Epics
/api/engops/epicsAuth requiredList epics.
Query Parameters
| Field | Type | Required | Note |
|---|---|---|---|
| limit | number | No | Default 50, max 200 |
| status | string | No | — |
Response
[
{
"id": 1,
"workspace_id": 1,
"title": "Onboarding v2",
"description": "New signup → first value flow",
"status": "open"
}
]/api/engops/epicsAuth requiredCreate an epic.
Request Body
| Field | Type | Required | Note |
|---|---|---|---|
| title | string | Yes | — |
| description | string | No | — |
| status | string | No | Default "open" |
Response
{
"id": 2,
"workspace_id": 1,
"title": "Billing overhaul",
"status": "open"
}/api/engops/epics/{epic_id}Auth requiredGet an epic with its linked issues.
Response
{
"epic": { "id": 1, "title": "Onboarding v2", "status": "open" },
"issues": [
{ "issue_id": 12, "ref": "ISS-4821", "title": "Checkout fix", "status": "Done" }
]
}/api/engops/epics/{epic_id}Auth requiredUpdate an epic. Only supplied fields change.
Request Body
| Field | Type | Required | Note |
|---|---|---|---|
| title | string | No | — |
| description | string | No | — |
| status | string | No | — |
Response
{
"id": 1,
"title": "Onboarding v2",
"status": "closed"
}/api/engops/epics/{epic_id}/issuesAuth requiredLink an issue to an epic.
Request Body
| Field | Type | Required | Note |
|---|---|---|---|
| issue_id | number | Yes | — |
Response
{ "epic_id": 1, "issue_id": 12 }/api/engops/epics/{epic_id}/issues/{issue_id}Auth requiredUnlink an issue from an epic. The issue itself is kept.
Response
{ "epic_id": 1, "issue_id": 12, "unlinked": true }Releases
/api/engops/releasesAuth requiredList releases.
Query Parameters
| Field | Type | Required | Note |
|---|---|---|---|
| limit | number | No | Default 50, max 200 |
| status | string | No | — |
Response
[
{
"id": 1,
"workspace_id": 1,
"version": "2.4.0",
"title": "April release",
"status": "planned"
}
]/api/engops/releasesAuth requiredCreate a release.
Request Body
| Field | Type | Required | Note |
|---|---|---|---|
| version | string | Yes | — |
| title | string | No | — |
| notes | string | No | — |
| changelog | string | No | — |
| status | string | No | Default "planned" |
| released_at | string | No | — |
Response
{
"id": 2,
"workspace_id": 1,
"version": "2.5.0",
"status": "planned"
}/api/engops/releases/{release_id}Auth requiredGet a release with its linked issues.
Response
{
"release": { "id": 1, "version": "2.4.0", "status": "planned" },
"issues": [
{ "issue_id": 12, "ref": "ISS-4821", "title": "Checkout fix", "status": "Done" }
]
}/api/engops/releases/{release_id}Auth requiredUpdate a release. Only supplied fields change.
Request Body
| Field | Type | Required | Note |
|---|---|---|---|
| version | string | No | — |
| title | string | No | — |
| notes | string | No | — |
| changelog | string | No | — |
| status | string | No | — |
| released_at | string | No | — |
Response
{
"id": 1,
"version": "2.4.0",
"status": "shipped"
}/api/engops/releases/{release_id}/issuesAuth requiredLink an issue to a release.
Request Body
| Field | Type | Required | Note |
|---|---|---|---|
| issue_id | number | Yes | — |
Response
{ "release_id": 1, "issue_id": 12 }/api/engops/releases/{release_id}/issues/{issue_id}Auth requiredUnlink an issue from a release. The issue itself is kept.
Response
{ "release_id": 1, "issue_id": 12, "unlinked": true }/api/engops/releases/{release_id}/changelogAuth requiredBuild the release changelog from its linked issues and store it on the release.
Response
{
"release_id": 1,
"version": "2.4.0",
"entries": [
{ "issue_id": 12, "ref": "ISS-4821", "title": "Checkout fix" }
],
"changelog": "## 2.4.0\n- [ISS-4821] Checkout fix"
}Merges
/api/engops/mergesAuth requiredList merge requests.
Query Parameters
| Field | Type | Required | Note |
|---|---|---|---|
| limit | number | No | Default 50, max 200 |
| state | string | No | — |
Response
[
{
"id": 1,
"workspace_id": 1,
"title": "Fix checkout race",
"source_branch": "fix/checkout-race",
"target_branch": "main",
"author": "sam",
"state": "open"
}
]/api/engops/mergesAuth requiredRecord a merge request.
Request Body
| Field | Type | Required | Note |
|---|---|---|---|
| title | string | Yes | — |
| source_branch | string | No | — |
| target_branch | string | No | Default "main" |
| author | string | No | — |
| approver | string | No | — |
| state | string | No | Default "open" |
| merger | string | No | — |
| merged_at | string | No | — |
Response
{
"id": 2,
"workspace_id": 1,
"title": "Add password reset flow",
"target_branch": "main",
"state": "open"
}Deploys
/api/engops/deploysAuth requiredList deploys.
Query Parameters
| Field | Type | Required | Note |
|---|---|---|---|
| limit | number | No | Default 50, max 200 |
| state | string | No | — |
Response
[
{
"id": 1,
"workspace_id": 1,
"title": "Release 2.4.0 to prod",
"environment": "production",
"version": "2.4.0",
"state": "pending"
}
]/api/engops/deploysAuth requiredRecord a deploy.
Request Body
| Field | Type | Required | Note |
|---|---|---|---|
| title | string | Yes | — |
| environment | string | Yes | — |
| version | string | No | — |
| requester | string | No | — |
| approver | string | No | — |
| state | string | No | Default "pending" |
| reason | string | No | — |
Response
{
"id": 2,
"workspace_id": 1,
"title": "Release 2.4.0 to staging",
"environment": "staging",
"state": "pending"
}