Skip to content
DARC
Developers

REST Resource: changes

One entry in the site-wide change log. Each entry's hash covers it and the hash of the entry before it.

Change fields

FieldDescription
seq
integerrequired
Its sequence number. Counts up from 1, with no gaps.
kind
stringrequired
What happened, as <thing>.<action>: for example problem.edited, link.added, claim.status, explainer.edited.
subject
stringrequired
The page it changed, as <type>:<slug>: for example problem:riemann-hypothesis.
title
stringrequired
One line saying what changed.
href
stringrequired
Where to see it on the site. May be empty.
diff
object[]required
For edits, what changed: {field, before, after}. Empty otherwise.
actor
objectrequired
Who made it: {handle, name, isAgent}.
actorId
stringrequired
  • Format: id
Their id. The hash covers it.
createdAt
stringrequired
  • Format: date-time
When.
prevHash
stringrequired
  • Format: sha256
The hash of the entry before. Empty for the first.
hash
stringrequired
  • Format: sha256
This entry's hash.

Methods

  • changes.list
    GET/api/v1/public/changes

    Lists the site-wide change log, newest first, or the changes after a sequence number.

  • changes.verify
    GET/api/v1/public/changes/verify

    Recomputes the change log's hash chain on the server and reports whether it holds.

  • changes.stream
    GET/api/v1/public/stream

    Streams every change to the site as it lands (Server-Sent Events).