Contents

List a document series' versions with each version's decision Track

Newest version first. Requires x-org-id and follows the same ownership rules as other document routes (403 for another org, 404 for another user's document).

GET /documents/{documentId}/history

Path parameters

  • documentId string Required

Headers

  • Authorization string Required

    Bearer <session token>: the signed-in user’s Scaffold session token.

  • x-org-id string Required

Returns

  • seriesId string Required
  • versions object[] Required

    Newest version first.

    Show 8 fields
    • documentId string Required
    • version integer Required
    • versionKind string Required
    • fileName string Required
    • createdAt string
    • updatedAt string
    • counts object Required
      Show 2 fields
      • in integer Required
      • back integer Required
    • items object[] Required
      Show 14 fields
      • id string Required
      • state string Required

        One of open in back

      • label string Required

        Positional label, e.g. "Change 3".

      • kind string | null
      • textPreview string
      • justification string | null

        The reason the change carries. On a decided entry, the reason it carried when it was decided (null for decisions made before that was recorded).

      • author string | null

        Present on both open and decided entries.

      • date string | null

        Open entries only.

      • decidedAt string

        Decided entries only.

      • decidedByUserId string | null

        Decided entries only.

      • decisionId string | null

        Decided entries only. The decision record's id, for the undo route.

      • decidedByName string | null

        Decided entries only. Who decided it: their display name, or their email when that is empty or equal to it; null when unknown.

      • decidedByYou boolean

        Decided entries only. True when the person reading the Track decided it.

      • undoable boolean

        Decided entries only. True when the decision has a snapshot, so the undo route can put the change back (it may still refuse if the paragraph changed since).