Skip to content
Hoody.com

The Notes service captures and manages document version snapshots. Every edit cycle produces a new revision; you can list, inspect, restore, or remove those revisions through the endpoints on this page. Use these routes when you need to audit history, undo accidental edits, or build a branching workflow on top of notebook content.

All endpoints are scoped to a notebook ({notebookId}) and a document node ({nodeId}). Requests target the per-container Notes service at https://{projectId}-{containerId}-notes-1.{server}.containers.hoody.com.

Returns every version recorded for a document, ordered by revision descending. Use cursor pagination via limit and offset.

GET /api/v1/notes/notebooks/{notebookId}/nodes/{nodeId}/versions

NameInTypeRequiredDescription
notebookIdpathstringYesIdentifier of the notebook that owns the document.
nodeIdpathstringYesIdentifier of the document node.
limitqueryintegerNoMaximum number of versions to return. Default: 20.
offsetqueryintegerNoNumber of versions to skip from the start of the result set. Default: 0.
Terminal window
curl -G \
"https://{projectId}-{containerId}-notes-1.{server}.containers.hoody.com/api/v1/notes/notebooks/{notebookId}/nodes/{nodeId}/versions" \
-H "Authorization: Bearer $HOODY_TOKEN" \
--data-urlencode "limit=20" \
--data-urlencode "offset=0"

Retrieves a single version, including the full document content snapshot at that revision.

GET /api/v1/notes/notebooks/{notebookId}/nodes/{nodeId}/versions/{versionId}

NameInTypeRequiredDescription
notebookIdpathstringYesIdentifier of the notebook that owns the document.
nodeIdpathstringYesIdentifier of the document node.
versionIdpathstringYesIdentifier of the version to retrieve.
Terminal window
curl \
"https://{projectId}-{containerId}-notes-1.{server}.containers.hoody.com/api/v1/notes/notebooks/{notebookId}/nodes/{nodeId}/versions/{versionId}" \
-H "Authorization: Bearer $HOODY_TOKEN"

Captures the current document content as a new immutable version snapshot. The new revision number is one greater than the most recent existing revision.

POST /api/v1/notes/notebooks/{notebookId}/nodes/{nodeId}/versions

NameInTypeRequiredDescription
notebookIdpathstringYesIdentifier of the notebook that owns the document.
nodeIdpathstringYesIdentifier of the document node.
Terminal window
curl -X POST \
"https://{projectId}-{containerId}-notes-1.{server}.containers.hoody.com/api/v1/notes/notebooks/{notebookId}/nodes/{nodeId}/versions" \
-H "Authorization: Bearer $HOODY_TOKEN"

Reverts the document’s current content to the content recorded in the specified version. The restore itself produces a new version, so history is preserved.

POST /api/v1/notes/notebooks/{notebookId}/nodes/{nodeId}/versions/{versionId}/restore

NameInTypeRequiredDescription
notebookIdpathstringYesIdentifier of the notebook that owns the document.
nodeIdpathstringYesIdentifier of the document node.
versionIdpathstringYesIdentifier of the version to restore.
Terminal window
curl -X POST \
"https://{projectId}-{containerId}-notes-1.{server}.containers.hoody.com/api/v1/notes/notebooks/{notebookId}/nodes/{nodeId}/versions/{versionId}/restore" \
-H "Authorization: Bearer $HOODY_TOKEN"

Removes a single version from the document’s history. The current document content is not affected.

DELETE /api/v1/notes/notebooks/{notebookId}/nodes/{nodeId}/versions/{versionId}

NameInTypeRequiredDescription
notebookIdpathstringYesIdentifier of the notebook that owns the document.
nodeIdpathstringYesIdentifier of the document node.
versionIdpathstringYesIdentifier of the version to delete.
Terminal window
curl -X DELETE \
"https://{projectId}-{containerId}-notes-1.{server}.containers.hoody.com/api/v1/notes/notebooks/{notebookId}/nodes/{nodeId}/versions/{versionId}" \
-H "Authorization: Bearer $HOODY_TOKEN"