SDK reference
Notes pages
GET/
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.
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/pages/live?tab=example' \
-H "Authorization: Bearer $CACTIVE_TOKEN"curl 'https://api.cactive.com.au/v1/orgs/{orgId}/pages' \
-H "Authorization: Bearer $CACTIVE_TOKEN"POST/
Creates a page or database, at the top level or under a parent.
Parameters and answerscurl -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"
}'curl 'https://api.cactive.com.au/v1/orgs/{orgId}/pages/search' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
A page with its content. Databases include their rows; rows include their database's schema.
Parameters and answerscurl 'https://api.cactive.com.au/v1/orgs/{orgId}/pages/{pageId}' \
-H "Authorization: Bearer $CACTIVE_TOKEN"PATCH/
Renames, moves, trashes or restores a page, or edits a database's properties or a row's values.
Parameters and answerscurl -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
}'PUT/
Saves page content. baseVersion is the version you started from; if the page has changed since, the save fails with 409.
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
}'GET/
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).
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/pages/{pageId}/collab' \
-H "Authorization: Bearer $CACTIVE_TOKEN"POST/
The first editor's document, made from the stored content. 409 if someone else's came first.
Parameters and answerscurl -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
}'POST/
An update too large for the socket (a big paste); relayed like socket updates.
Parameters and answerscurl -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"
}'GET/
Comment threads on the page (kept apart from the shared document; they survive a reset).
Parameters and answerscurl 'https://api.cactive.com.au/v1/orgs/{orgId}/pages/{pageId}/threads' \
-H "Authorization: Bearer $CACTIVE_TOKEN"POST/
A new thread with its first comment (anchor: the block and text it is about).
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": [
{}
]
}'POST/
Replies, edits, deletions, resolving and reactions. thread is null once it's gone.
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"
}'GET/
Updates after after (a gap, or one announced as pull); reset when the document was replaced.
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/pages/{pageId}/collab/updates?epoch=example&after=1' \
-H "Authorization: Bearer $CACTIVE_TOKEN"DELETE/
Moves a page to the trash.
Parameters and answerscurl -X DELETE 'https://api.cactive.com.au/v1/orgs/{orgId}/pages/{pageId}' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
Saved versions of a page's content, newest first (kept 30 days after they're replaced).
Parameters and answerscurl 'https://api.cactive.com.au/v1/orgs/{orgId}/pages/{pageId}/history' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
One saved version's content, to preview or restore (restoring saves it as a new version).
Parameters and answerscurl 'https://api.cactive.com.au/v1/orgs/{orgId}/pages/{pageId}/history/{versionId}' \
-H "Authorization: Bearer $CACTIVE_TOKEN"POST/
A link to upload an image or file into a page (PUT the bytes with the declared type within 15 minutes).
Parameters and answerscurl -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
}'GET/
A one-hour link to a file in a page.
Parameters and answerscurl 'https://api.cactive.com.au/v1/orgs/{orgId}/pages/{pageId}/files/{fileId}' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
The caller's favorite pages, oldest first.
Parameters and answerscurl 'https://api.cactive.com.au/v1/orgs/{orgId}/favorites' \
-H "Authorization: Bearer $CACTIVE_TOKEN"PUT/
Reorders the caller's favorites: page ids in the new order.
Parameters and answerscurl -X PUT 'https://api.cactive.com.au/v1/orgs/{orgId}/favorites' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"pageIds": [
"example"
]
}'PUT/
Adds a page to the caller's favorites. Adding it again keeps its place.
Parameters and answerscurl -X PUT 'https://api.cactive.com.au/v1/orgs/{orgId}/favorites/{pageId}' \
-H "Authorization: Bearer $CACTIVE_TOKEN"DELETE/
Removes a page from the caller's favorites.
Parameters and answerscurl -X DELETE 'https://api.cactive.com.au/v1/orgs/{orgId}/favorites/{pageId}' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
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.
curl 'https://api.cactive.com.au/v1/me/pages/live?tab=example' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
Your Personal Notes' page tree, or the trash with archived=1.
curl 'https://api.cactive.com.au/v1/me/pages' \
-H "Authorization: Bearer $CACTIVE_TOKEN"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"
}'GET/
Searches your Personal Notes' titles and text.
Parameters and answerscurl 'https://api.cactive.com.au/v1/me/pages/search' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
A page with its content; a database with its rows (rows=0: without, for editing its schema); rollups worked out for this read.
curl 'https://api.cactive.com.au/v1/me/pages/{pageId}' \
-H "Authorization: Bearer $CACTIVE_TOKEN"PATCH/
Renames, moves, trashes or restores one of your Personal pages, or edits a database's properties or a row's values.
Parameters and answerscurl -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
}'PUT/
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.
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
}'GET/
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).
curl 'https://api.cactive.com.au/v1/me/pages/{pageId}/collab' \
-H "Authorization: Bearer $CACTIVE_TOKEN"POST/
The first editor's document, made from the stored content. 409 if someone else's came first.
Parameters and answerscurl -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
}'POST/
An update too large for the socket (a big paste); relayed like socket updates.
Parameters and answerscurl -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"
}'GET/
Comment threads on the page (kept apart from the shared document; they survive a reset).
Parameters and answerscurl 'https://api.cactive.com.au/v1/me/pages/{pageId}/threads' \
-H "Authorization: Bearer $CACTIVE_TOKEN"POST/
A new thread with its first comment (anchor: the block and text it is about).
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": [
{}
]
}'POST/
Replies, edits, deletions, resolving and reactions. thread is null once it's gone.
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"
}'GET/
Updates after after (a gap, or one announced as pull); reset when the document was replaced.
curl 'https://api.cactive.com.au/v1/me/pages/{pageId}/collab/updates?epoch=example&after=1' \
-H "Authorization: Bearer $CACTIVE_TOKEN"DELETE/
Moves a page to the trash; with permanent=1, deletes a page already in the trash for good, with its subpages, history and files.
curl -X DELETE 'https://api.cactive.com.au/v1/me/pages/{pageId}' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
Saved versions of a page's content, newest first (kept 30 days after they're replaced).
Parameters and answerscurl 'https://api.cactive.com.au/v1/me/pages/{pageId}/history' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
One saved version's content, to preview or restore (restoring saves it as a new version).
Parameters and answerscurl 'https://api.cactive.com.au/v1/me/pages/{pageId}/history/{versionId}' \
-H "Authorization: Bearer $CACTIVE_TOKEN"POST/
A link to upload an image or file into a page (PUT the bytes with the declared type within 15 minutes).
Parameters and answerscurl -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
}'GET/
A one-hour link to a file in a page.
Parameters and answerscurl 'https://api.cactive.com.au/v1/me/pages/{pageId}/files/{fileId}' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
Your favorite pages in your Personal Notes, oldest first.
Parameters and answerscurl 'https://api.cactive.com.au/v1/me/favorites' \
-H "Authorization: Bearer $CACTIVE_TOKEN"PUT/
Reorders the caller's favorites: page ids in the new order.
Parameters and answerscurl -X PUT 'https://api.cactive.com.au/v1/me/favorites' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"pageIds": [
"example"
]
}'PUT/
Adds a page to your favorites in your Personal Notes. Adding it again keeps its place.
Parameters and answerscurl -X PUT 'https://api.cactive.com.au/v1/me/favorites/{pageId}' \
-H "Authorization: Bearer $CACTIVE_TOKEN"DELETE/
Removes a page from your favorites in your Personal Notes.
Parameters and answerscurl -X DELETE 'https://api.cactive.com.au/v1/me/favorites/{pageId}' \
-H "Authorization: Bearer $CACTIVE_TOKEN"