UmweltDocs
Reference/Queries/timeline.list
timeline.listquerysince 0.1

Every timeline of a project, main first.

Request
umwelt call story.umw timeline.list '{
  "projectId": "ball"
}'
Request
const result = await client.timelineList({ projectId: 'ball' });
Request
var result = engine.TimelineList(new TimelineListPayload { ProjectId = "ball" });
Response
[
  {
    "kind": "main",
    "id": "main",
    "status": "active",
    "projectId": "ball",
    "createdAt": "2026-11-11T18:21:58.5898875Z",
    "depth": 0,
    "headVersion": 17,
    "maxTick": 11
  },
  {
    "kind": "draft",
    "id": "chapter-2",
    "status": "promoted",
    "projectId": "ball",
    "label": "Chapter 2",
    "baseVersion": 16,
    "closedAt": "2026-11-11T18:21:58.6788929Z",
    "createdAt": "2026-11-11T18:21:58.6687174Z",
    "depth": 1,
    "headVersion": 17,
    "maxTick": 11,
    "parentTimelineId": "main"
  },
  {
    "kind": "draft",
    "id": "other-ending",
    "status": "active",
    "projectId": "ball",
    "label": "Another ending",
    "baseVersion": 17,
    "createdAt": "2026-11-11T18:21:58.6818065Z",
    "depth": 1,
    "headVersion": 18,
    "maxTick": 12,
    "parentTimelineId": "main"
  }
]

Payload

FieldTypeDescription
projectIdrequiredstringThe project to read.
status"active" | "promoted" | "discarded"Only timelines with this status: active, promoted or discarded.

Result

A list of Timeline, each with:

FieldTypeDescription
idalwaysstringThe timeline’s id. Main is always main.
projectIdalwaysstringThe project it belongs to.
kindalways"main" | "draft"main or draft.
statusalways"active" | "promoted" | "discarded"active, promoted or discarded. Only an active timeline accepts writes.
labelstringIts label.
parentTimelineIdstringThe timeline it branched from: main or another draft. Absent for main.
depthalwaysintegerDrafts from main down to it: 0 for main, 1 for a draft of main, at most 4.
baseVersionintegerThe parent’s head when it was opened. Absent for main.
headVersionalwaysintegerThe version of its latest commit, or its base when it has none.
maxTickalwaysintegerThe highest tick it sees.
createdAtalwaysstringWhen it was opened (UTC).
closedAtstringWhen it was promoted or discarded.
purgedAtstringWhen its rows were purged.

Errors

VALIDATION_FAILEDThe payload is malformed.
NOT_FOUNDThe project does not exist.
HANDSHAKE_REQUIREDOver the protocol, hello was not sent first.

Every code is listed in Errors.

See also

Was this page helpful?