Diagrams

Diagram history

Versions newest first, with time, who saved each (by, credential), client, message and how many elements each added, changed and removed. asOf lists the history as it stood at that instant.

get/v1/diagrams/{id}/revisions

Request

  • Base URL: https://api.zindex.ai
  • URL: https://api.zindex.ai/v1/diagrams/{id}/revisions
  • Auth: one of:
    • HTTP bearer
    • API key in header X-API-Key

Path parameters

idstring required

The diagram's ID or key

Query parameters

limitinteger

Versions per page, 1 to 50; a value outside that range is clamped

cursorstring

nextCursor from the previous page

asOfstring

A date (2026-06-30, the end of that day in UTC) or an ISO 8601 timestamp with an offset

Response

{ id, currentRevision, versions: [{ revision, at, by, credential, client, message, chain, added?, changed?, removed? }], nextCursor?, note? }. chain is the version's chain hash, as in DiagramWrite. The counts appear when the version before is kept; note names versions an earlier retention limit deleted and the version the chain starts at.

idstring required
currentRevisioninteger required
nextCursorstring
notestring

Changes

No recorded changes to this operation across all 1 revision of this API.