Skip to main content

Projects

Delivery boards with milestones, tasks, status updates, and cross-links. Projects carry human keys (PRJ-118); detail routes accept either the key or the numeric id.

Auth: all calls require a Bearer JWT plus the X-Workspace-Id header.

GET/api/projectsAuth required

List projects with issue and milestone rollups.

Query Parameters

FieldTypeRequiredNote
colstringNo"doing" | "queued" | "blocked"
teamstringNo—
searchstringNoMatches name, key, and overview
limitnumberNoDefault 50, max 200
offsetnumberNoDefault 0

Response

{
  "projects": [
    {
      "id": 5,
      "key": "PRJ-118",
      "name": "Onboarding v2",
      "col": "doing",
      "progress": 60,
      "issue_total": 12,
      "issue_done": 7,
      "milestone_total": 4,
      "milestone_done": 2
    }
  ],
  "total": 1
}
POST/api/projectsAuth required

Create a project. The server mints the next PRJ-nnn key for the workspace.

Request Body

FieldTypeRequiredNote
namestringYes—
teamstringNo—
ownerstringNo—
colstringNoDefault "queued"
starts_atstringNo—
ends_atstringNo—
healthstringNo—
progressnumberNo0–100, default 0
overviewstringNoDefault empty

Response

{
  "id": 6,
  "key": "PRJ-119",
  "name": "Billing overhaul",
  "col": "queued",
  "progress": 0,
  "created_at": "2026-03-28T10:00:00Z",
  "updated_at": "2026-03-28T10:00:00Z"
}
GET/api/projects/{ref}Auth required

Get one project by key (PRJ-118) or numeric id, with milestones, tasks, updates, linked issues, and links.

Response

{
  "id": 5,
  "key": "PRJ-118",
  "name": "Onboarding v2",
  "col": "doing",
  "milestones": [ ... ],
  "tasks": [ ... ],
  "updates": [ ... ],
  "issues": [ { "key": "ISS-4821", "title": "Checkout fix", "status": "Done" } ],
  "links": [ ... ]
}
PATCH/api/projects/{ref}Auth required

Update a project. All fields optional.

Request Body

FieldTypeRequiredNote
namestringNo—
teamstringNo—
ownerstringNo—
colstringNo—
starts_atstringNo—
ends_atstringNo—
healthstringNo—
progressnumberNo—
overviewstringNo—

Response

{
  "id": 5,
  "key": "PRJ-118",
  "name": "Onboarding v2",
  "progress": 75
}
POST/api/projects/{ref}/moveAuth required

Board drag-drop column change.

Request Body

FieldTypeRequiredNote
colstringYes"doing" | "queued" | "blocked"

Response

{
  "id": 5,
  "key": "PRJ-118",
  "col": "blocked"
}
DELETE/api/projects/{ref}Auth required

Delete a project with its milestones, tasks, updates, and links. Linked issues are detached but kept.

Response

{ "deleted": "PRJ-118" }

Milestones

GET/api/projects/{ref}/milestonesAuth required

List a project's milestones, in sort order.

Response

{
  "milestones": [
    { "id": 2, "project_id": 5, "name": "Beta cut", "date": "2026-04-10", "done": false, "position": 0 }
  ],
  "total": 1
}
POST/api/projects/{ref}/milestonesAuth required

Add a milestone. Appended at the end of the sort order.

Request Body

FieldTypeRequiredNote
namestringYes—
due_datestringNo—

Response

{
  "id": 3,
  "project_id": 5,
  "name": "GA launch",
  "date": "2026-05-01",
  "done": false,
  "position": 1
}
PATCH/api/projects/{ref}/milestones/{milestone_id}Auth required

Update a milestone. All fields optional.

Request Body

FieldTypeRequiredNote
namestringNo—
due_datestringNo—
donebooleanNo—

Response

{
  "id": 2,
  "project_id": 5,
  "name": "Beta cut",
  "done": true
}

Tasks

GET/api/projects/{ref}/tasksAuth required

List a project's tasks, in sort order.

Response

{
  "tasks": [
    { "id": 9, "project_id": 5, "title": "Draft launch email", "due": "2026-04-05", "done": false, "assignee": "sam", "position": 0 }
  ],
  "total": 1
}
POST/api/projects/{ref}/tasksAuth required

Add a task. Appended at the end of the sort order.

Request Body

FieldTypeRequiredNote
titlestringYes—
duestringNo—
assigneestringNo—

Response

{
  "id": 10,
  "project_id": 5,
  "title": "Record demo video",
  "due": null,
  "done": false,
  "assignee": null,
  "position": 1
}
PATCH/api/projects/{ref}/tasks/{task_id}Auth required

Update a task. All fields optional.

Request Body

FieldTypeRequiredNote
titlestringNo—
duestringNo—
donebooleanNo—
assigneestringNo—

Response

{
  "id": 9,
  "project_id": 5,
  "title": "Draft launch email",
  "done": true
}

Updates

GET/api/projects/{ref}/updatesAuth required

List a project's status updates, newest first.

Response

{
  "updates": [
    { "id": 4, "project_id": 5, "kind": "update", "text": "Beta cut moved to Friday", "created_at": "2026-03-28T12:00:00Z" }
  ],
  "total": 1
}
POST/api/projects/{ref}/updatesAuth required

Post a status update on a project.

Request Body

FieldTypeRequiredNote
textstringYes—
kindstringNoDefault "update"

Response

{
  "id": 5,
  "project_id": 5,
  "kind": "risk",
  "text": "Design review slipped one day",
  "created_at": "2026-03-28T14:00:00Z"
}

Links

GET/api/projects/{ref}/linksAuth required

List a project's cross-links to other entities.

Response

[
  { "id": 1, "project_id": 5, "entity_type": "issue", "entity_key": "ISS-4821", "label": "Launch blocker" }
]
POST/api/projects/{ref}/linksAuth required

Link a project to another entity.

Request Body

FieldTypeRequiredNote
entity_typestringYes—
entity_keystringYes—
labelstringYes—

Response

{
  "id": 2,
  "project_id": 5,
  "entity_type": "issue",
  "entity_key": "ISS-4822",
  "label": "Follow-up"
}
DELETE/api/projects/{ref}/links/{link_id}Auth required

Delete a project link.

Response

{ "deleted": 2 }

Stats

GET/api/projects/stats/summaryAuth required

Project counts by board column.

Response

{
  "total": 6,
  "by_col": { "doing": 2, "queued": 3, "blocked": 1 }
}