What is the timeline?
The timeline is the ordered, immutable log of every event captured during a session. Events are ordered by timestamp. You can use it to see exactly what the candidate did, in what order — which prompts they sent, which files they changed, which commands they ran, and when they made architecture decisions.Getting the timeline
GET /v1/sessions/:id/timeline
Returns a paginated list of timeline events for a session.
Query parameters
Number of events to return per page. Maximum is
2000.Event ID cursor for pagination. Pass the
id of the last event from the previous page to fetch the next page.Example request
Example response
Event types
Each event has akind field that identifies what it represents.
| Kind | What it represents |
|---|---|
prompt | A prompt submitted to the AI |
ai_response | The AI’s response |
file_diff | A file change (contains path, diff, lines added/removed) |
file_create | A new file created |
command | A shell command run (contains command text and exit code) |
test_run | A test suite run (contains passed/failed/skipped counts) |
git_action | A git operation (commit, branch, etc.) |
decision_event | A captured architecture decision |
session_start | Session started |
session_end | Session ended (candidate ran promptster done) |
checkpoint | A manual or automatic session checkpoint |
Event envelope
Every event shares a common envelope:Event UUID. Use this as the
after cursor when paginating.The session this event belongs to.
The event type. See the table above.
ISO 8601 timestamp of when the event occurred.
Event-specific payload. Fields vary by
kind — for example, a file_diff event includes path, diff, linesAdded, and linesRemoved; a command event includes command and exitCode.Attribution metadata:
{ attribution, confidence, observability }. See below.Provenance and attribution
Theprovenance object on each event describes how the change came to exist. The attribution field has the following values:
| Value | Meaning |
|---|---|
likely_ai | Change almost certainly generated by the AI tool |
ai_revised_by_human | AI output that the candidate manually edited |
likely_human | Change made directly by the candidate |
mixed | Attribution is uncertain |
system_generated | System event (CI, hooks) |
Attribution is not a binary “AI wrote this / human wrote this” judgment. Promptster tracks provenance with confidence levels. A high
likely_ai attribution with the candidate verifying and committing the result is normal and expected — prompting well is the work.Paginating the timeline
For sessions with many events, paginate using theafter cursor.
hasMore is false, you have reached the end of the timeline.