SDK reference

Notes pages

Each route's function in the SDK, its call beside the same request in cURL.
orgPagesLive

GET/v1/orgs/:orgId/pages/live

A one-time ticket for this tab's socket (2 minutes): the org's change events, and co-editing of the page it joins. socket is null where the stage has none.

Parameters and answers
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/pages/live?tab=example' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
orgPages

GET/v1/orgs/:orgId/pages

The page tree, or the trash with archived=1.

Parameters and answers
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/pages' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
postOrgPages

POST/v1/orgs/:orgId/pages

Creates a page or database, at the top level or under a parent.

Parameters and answers
curl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/pages' \
  -H "Authorization: Bearer $CACTIVE_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
    "parentId": "<parentId>",
    "title": "Example",
    "icon": "example"
  }'
orgPagesByPageId

GET/v1/orgs/:orgId/pages/:pageId

A page with its content. Databases include their rows; rows include their database's schema.

Parameters and answers
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/pages/{pageId}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
patchOrgPagesByPageId

PATCH/v1/orgs/:orgId/pages/:pageId

Renames, moves, trashes or restores a page, or edits a database's properties or a row's values.

Parameters and answers
curl -X PATCH 'https://api.cactive.com.au/v1/orgs/{orgId}/pages/{pageId}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
    "title": "Example",
    "icon": "example",
    "fullWidth": true
  }'
putOrgPagesContent

PUT/v1/orgs/:orgId/pages/:pageId/content

Saves page content. baseVersion is the version you started from; if the page has changed since, the save fails with 409.

Parameters and answers
curl -X PUT 'https://api.cactive.com.au/v1/orgs/{orgId}/pages/{pageId}/content' \
  -H "Authorization: Bearer $CACTIVE_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
    "blocks": [
      {}
    ],
    "markdown": "example",
    "baseVersion": 1
  }'
orgPagesCollab

GET/v1/orgs/:orgId/pages/:pageId/collab

Co-editing: the page's shared document (base64 Yjs state, epoch: null before anyone opened it this way), and a one-time ticket for the socket (socket is null where co-editing isn't set up).

Parameters and answers
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/pages/{pageId}/collab' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
postOrgPagesCollabSeed

POST/v1/orgs/:orgId/pages/:pageId/collab/seed

The first editor's document, made from the stored content. 409 if someone else's came first.

Parameters and answers
curl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/pages/{pageId}/collab/seed' \
  -H "Authorization: Bearer $CACTIVE_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
    "update": "2026-01-01",
    "baseVersion": 1
  }'
postOrgPagesCollabUpdates

POST/v1/orgs/:orgId/pages/:pageId/collab/updates

An update too large for the socket (a big paste); relayed like socket updates.

Parameters and answers
curl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/pages/{pageId}/collab/updates' \
  -H "Authorization: Bearer $CACTIVE_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
    "epoch": "example",
    "update": "2026-01-01"
  }'
orgPagesThreads

GET/v1/orgs/:orgId/pages/:pageId/threads

Comment threads on the page (kept apart from the shared document; they survive a reset).

Parameters and answers
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/pages/{pageId}/threads' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
postOrgPagesThreads

POST/v1/orgs/:orgId/pages/:pageId/threads

A new thread with its first comment (anchor: the block and text it is about).

Parameters and answers
curl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/pages/{pageId}/threads' \
  -H "Authorization: Bearer $CACTIVE_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
    "body": [
      {}
    ]
  }'
postOrgPagesThreadsByThreadId

POST/v1/orgs/:orgId/pages/:pageId/threads/:threadId

Replies, edits, deletions, resolving and reactions. thread is null once it's gone.

Parameters and answers
curl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/pages/{pageId}/threads/{threadId}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
    "op": "comment"
  }'
orgPagesCollabUpdates

GET/v1/orgs/:orgId/pages/:pageId/collab/updates

Updates after after (a gap, or one announced as pull); reset when the document was replaced.

Parameters and answers
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/pages/{pageId}/collab/updates?epoch=example&after=1' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
deleteOrgPagesByPageId

DELETE/v1/orgs/:orgId/pages/:pageId

Moves a page to the trash.

Parameters and answers
curl -X DELETE 'https://api.cactive.com.au/v1/orgs/{orgId}/pages/{pageId}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
orgPagesHistory

GET/v1/orgs/:orgId/pages/:pageId/history

Saved versions of a page's content, newest first (kept 30 days after they're replaced).

Parameters and answers
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/pages/{pageId}/history' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
orgPagesHistoryByVersionId

GET/v1/orgs/:orgId/pages/:pageId/history/:versionId

One saved version's content, to preview or restore (restoring saves it as a new version).

Parameters and answers
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/pages/{pageId}/history/{versionId}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
postOrgPagesFiles

POST/v1/orgs/:orgId/pages/:pageId/files

A link to upload an image or file into a page (PUT the bytes with the declared type within 15 minutes).

Parameters and answers
curl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/pages/{pageId}/files' \
  -H "Authorization: Bearer $CACTIVE_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
    "filename": "Example",
    "size": 1
  }'
orgPagesFilesByFileId

GET/v1/orgs/:orgId/pages/:pageId/files/:fileId

A one-hour link to a file in a page.

Parameters and answers
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/pages/{pageId}/files/{fileId}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
orgFavorites

GET/v1/orgs/:orgId/favorites

The caller's favorite pages, oldest first.

Parameters and answers
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/favorites' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
putOrgFavorites

PUT/v1/orgs/:orgId/favorites

Reorders the caller's favorites: page ids in the new order.

Parameters and answers
curl -X PUT 'https://api.cactive.com.au/v1/orgs/{orgId}/favorites' \
  -H "Authorization: Bearer $CACTIVE_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
    "pageIds": [
      "example"
    ]
  }'
putOrgFavoritesByPageId

PUT/v1/orgs/:orgId/favorites/:pageId

Adds a page to the caller's favorites. Adding it again keeps its place.

Parameters and answers
curl -X PUT 'https://api.cactive.com.au/v1/orgs/{orgId}/favorites/{pageId}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
deleteOrgFavoritesByPageId

DELETE/v1/orgs/:orgId/favorites/:pageId

Removes a page from the caller's favorites.

Parameters and answers
curl -X DELETE 'https://api.cactive.com.au/v1/orgs/{orgId}/favorites/{pageId}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
mePagesLive

GET/v1/me/pages/live

A one-time ticket for this tab's socket (2 minutes): the org's change events, and co-editing of the page it joins. socket is null where the stage has none.

Parameters and answers
curl 'https://api.cactive.com.au/v1/me/pages/live?tab=example' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
mePages

GET/v1/me/pages

Your Personal Notes' page tree, or the trash with archived=1.

Parameters and answers
curl 'https://api.cactive.com.au/v1/me/pages' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
postMePages

POST/v1/me/pages

Creates a page or database in your Personal Notes.

Parameters and answers
curl -X POST 'https://api.cactive.com.au/v1/me/pages' \
  -H "Authorization: Bearer $CACTIVE_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
    "parentId": "<parentId>",
    "title": "Example",
    "icon": "example"
  }'
mePagesByPageId

GET/v1/me/pages/:pageId

A page with its content; a database with its rows (rows=0: without, for editing its schema); rollups worked out for this read.

Parameters and answers
curl 'https://api.cactive.com.au/v1/me/pages/{pageId}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
patchMePagesByPageId

PATCH/v1/me/pages/:pageId

Renames, moves, trashes or restores one of your Personal pages, or edits a database's properties or a row's values.

Parameters and answers
curl -X PATCH 'https://api.cactive.com.au/v1/me/pages/{pageId}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
    "title": "Example",
    "icon": "example",
    "fullWidth": true
  }'
putMePagesContent

PUT/v1/me/pages/:pageId/content

Saves one of your Personal pages' content. baseVersion is the version you started from; if the page has changed since, the save fails with 409.

Parameters and answers
curl -X PUT 'https://api.cactive.com.au/v1/me/pages/{pageId}/content' \
  -H "Authorization: Bearer $CACTIVE_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
    "blocks": [
      {}
    ],
    "markdown": "example",
    "baseVersion": 1
  }'
mePagesCollab

GET/v1/me/pages/:pageId/collab

Co-editing: the page's shared document (base64 Yjs state, epoch: null before anyone opened it this way), and a one-time ticket for the socket (socket is null where co-editing isn't set up).

Parameters and answers
curl 'https://api.cactive.com.au/v1/me/pages/{pageId}/collab' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
postMePagesCollabSeed

POST/v1/me/pages/:pageId/collab/seed

The first editor's document, made from the stored content. 409 if someone else's came first.

Parameters and answers
curl -X POST 'https://api.cactive.com.au/v1/me/pages/{pageId}/collab/seed' \
  -H "Authorization: Bearer $CACTIVE_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
    "update": "2026-01-01",
    "baseVersion": 1
  }'
postMePagesCollabUpdates

POST/v1/me/pages/:pageId/collab/updates

An update too large for the socket (a big paste); relayed like socket updates.

Parameters and answers
curl -X POST 'https://api.cactive.com.au/v1/me/pages/{pageId}/collab/updates' \
  -H "Authorization: Bearer $CACTIVE_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
    "epoch": "example",
    "update": "2026-01-01"
  }'
mePagesThreads

GET/v1/me/pages/:pageId/threads

Comment threads on the page (kept apart from the shared document; they survive a reset).

Parameters and answers
curl 'https://api.cactive.com.au/v1/me/pages/{pageId}/threads' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
postMePagesThreads

POST/v1/me/pages/:pageId/threads

A new thread with its first comment (anchor: the block and text it is about).

Parameters and answers
curl -X POST 'https://api.cactive.com.au/v1/me/pages/{pageId}/threads' \
  -H "Authorization: Bearer $CACTIVE_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
    "body": [
      {}
    ]
  }'
postMePagesThreadsByThreadId

POST/v1/me/pages/:pageId/threads/:threadId

Replies, edits, deletions, resolving and reactions. thread is null once it's gone.

Parameters and answers
curl -X POST 'https://api.cactive.com.au/v1/me/pages/{pageId}/threads/{threadId}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
    "op": "comment"
  }'
mePagesCollabUpdates

GET/v1/me/pages/:pageId/collab/updates

Updates after after (a gap, or one announced as pull); reset when the document was replaced.

Parameters and answers
curl 'https://api.cactive.com.au/v1/me/pages/{pageId}/collab/updates?epoch=example&after=1' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
deleteMePagesByPageId

DELETE/v1/me/pages/:pageId

Moves a page to the trash; with permanent=1, deletes a page already in the trash for good, with its subpages, history and files.

Parameters and answers
curl -X DELETE 'https://api.cactive.com.au/v1/me/pages/{pageId}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
mePagesHistory

GET/v1/me/pages/:pageId/history

Saved versions of a page's content, newest first (kept 30 days after they're replaced).

Parameters and answers
curl 'https://api.cactive.com.au/v1/me/pages/{pageId}/history' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
mePagesHistoryByVersionId

GET/v1/me/pages/:pageId/history/:versionId

One saved version's content, to preview or restore (restoring saves it as a new version).

Parameters and answers
curl 'https://api.cactive.com.au/v1/me/pages/{pageId}/history/{versionId}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
postMePagesFiles

POST/v1/me/pages/:pageId/files

A link to upload an image or file into a page (PUT the bytes with the declared type within 15 minutes).

Parameters and answers
curl -X POST 'https://api.cactive.com.au/v1/me/pages/{pageId}/files' \
  -H "Authorization: Bearer $CACTIVE_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
    "filename": "Example",
    "size": 1
  }'
mePagesFilesByFileId

GET/v1/me/pages/:pageId/files/:fileId

A one-hour link to a file in a page.

Parameters and answers
curl 'https://api.cactive.com.au/v1/me/pages/{pageId}/files/{fileId}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
meFavorites

GET/v1/me/favorites

Your favorite pages in your Personal Notes, oldest first.

Parameters and answers
curl 'https://api.cactive.com.au/v1/me/favorites' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
putMeFavorites

PUT/v1/me/favorites

Reorders the caller's favorites: page ids in the new order.

Parameters and answers
curl -X PUT 'https://api.cactive.com.au/v1/me/favorites' \
  -H "Authorization: Bearer $CACTIVE_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
    "pageIds": [
      "example"
    ]
  }'
putMeFavoritesByPageId

PUT/v1/me/favorites/:pageId

Adds a page to your favorites in your Personal Notes. Adding it again keeps its place.

Parameters and answers
curl -X PUT 'https://api.cactive.com.au/v1/me/favorites/{pageId}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
deleteMeFavoritesByPageId

DELETE/v1/me/favorites/:pageId

Removes a page from your favorites in your Personal Notes.

Parameters and answers
curl -X DELETE 'https://api.cactive.com.au/v1/me/favorites/{pageId}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"