Skip to content

The Document Versions API provides version history management for note documents. Use these endpoints to list prior versions of a document, capture new version snapshots, retrieve the content of a specific version, restore a document to a previous version, or permanently delete a stored version. Each document’s versions are ordered by revision number in descending order.


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

Section titled “GET /api/v1/notes/notebooks/{notebookId}/nodes/{nodeId}/versions”

Lists all versions for a document, ordered by revision descending.

NameInTypeRequiredDescription
notebookIdpathstringYesThe identifier of the notebook that contains the document
nodeIdpathstringYesThe identifier of the document node
limitqueryintegerNoMaximum number of versions to return. Defaults to 20.
offsetqueryintegerNoNumber of versions to skip before returning results. Defaults to 0.
Terminal window
curl -X GET "https://api.hoody.com/api/v1/notes/notebooks/nb_8f3c2a1b4d5e6f7g/nodes/node_h7i8j9k0l1m2n3o4/versions?limit=20&offset=0" \
-H "Authorization: Bearer <token>"

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

Section titled “GET /api/v1/notes/notebooks/{notebookId}/nodes/{nodeId}/versions/{versionId}”

Retrieves a specific document version by ID.

NameInTypeRequiredDescription
notebookIdpathstringYesThe identifier of the notebook that contains the document
nodeIdpathstringYesThe identifier of the document node
versionIdpathstringYesThe identifier of the version to retrieve
Terminal window
curl -X GET "https://api.hoody.com/api/v1/notes/notebooks/nb_8f3c2a1b4d5e6f7g/nodes/node_h7i8j9k0l1m2n3o4/versions/ver_4d5e6f7g8h9i0j1k" \
-H "Authorization: Bearer <token>"

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

Section titled “POST /api/v1/notes/notebooks/{notebookId}/nodes/{nodeId}/versions”

Captures the current document content as a new version snapshot.

NameInTypeRequiredDescription
notebookIdpathstringYesThe identifier of the notebook that contains the document
nodeIdpathstringYesThe identifier of the document node to snapshot
Terminal window
curl -X POST "https://api.hoody.com/api/v1/notes/notebooks/nb_8f3c2a1b4d5e6f7g/nodes/node_h7i8j9k0l1m2n3o4/versions" \
-H "Authorization: Bearer <token>"

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

Section titled “POST /api/v1/notes/notebooks/{notebookId}/nodes/{nodeId}/versions/{versionId}/restore”

Restores a document to a previous version by updating its content.

NameInTypeRequiredDescription
notebookIdpathstringYesThe identifier of the notebook that contains the document
nodeIdpathstringYesThe identifier of the document node to restore
versionIdpathstringYesThe identifier of the version to restore the document to
Terminal window
curl -X POST "https://api.hoody.com/api/v1/notes/notebooks/nb_8f3c2a1b4d5e6f7g/nodes/node_h7i8j9k0l1m2n3o4/versions/ver_3c4d5e6f7g8h9i0j/restore" \
-H "Authorization: Bearer <token>"

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

Section titled “DELETE /api/v1/notes/notebooks/{notebookId}/nodes/{nodeId}/versions/{versionId}”

Deletes a specific document version.

NameInTypeRequiredDescription
notebookIdpathstringYesThe identifier of the notebook that contains the document
nodeIdpathstringYesThe identifier of the document node
versionIdpathstringYesThe identifier of the version to delete
Terminal window
curl -X DELETE "https://api.hoody.com/api/v1/notes/notebooks/nb_8f3c2a1b4d5e6f7g/nodes/node_h7i8j9k0l1m2n3o4/versions/ver_9j0k1l2m3n4o5p6q" \
-H "Authorization: Bearer <token>"