SDK reference
Documents, Sheets and Slides
POST/
A new document, spreadsheet or presentation (blank, a built-in template or one of the org's), in parentId or My Drive.
curl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/office/files' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"kind": "document"
}'GET/
A document, spreadsheet or presentation: its Drive item, kind, what you may do (rights: edit, comment, share) and where it is.
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/office/files/{fileId}' \
-H "Authorization: Bearer $CACTIVE_TOKEN"POST/
Makes a copy ("Copy of …", or name) in parentId or beside it, with its pictures; versionId copies an earlier version.
curl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/office/files/{fileId}/copy' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"name": "Example",
"parentId": "<parentId>",
"versionId": "<versionId>"
}'GET/
The shared document with the caller's rights and a socket ticket (ticket=0 without; state=0 for a ticket alone, on reconnects).
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/office/files/{fileId}/collab' \
-H "Authorization: Bearer $CACTIVE_TOKEN"POST/
Sets up a file nobody has edited yet: the first update (base64 Yjs) on the version base. 409 when it's already set up.
curl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/office/files/{fileId}/collab/seed' \
-H "Authorization: Bearer $CACTIVE_TOKEN"POST/
Sends an edit (update, base64 Yjs) at epoch; answers its seq. For edits too large for the socket (over 90 KB). 409 when the epoch is stale: reload the state.
curl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/office/files/{fileId}/collab/updates' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"epoch": "example",
"update": "2026-01-01"
}'GET/
Edits after after at epoch, or { reset: true } when the file was replaced since (a restore or an upload): reload the state.
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/office/files/{fileId}/collab/updates?epoch=example&after=1' \
-H "Authorization: Bearer $CACTIVE_TOKEN"POST/
Saves a checkpoint now (a Drive version): on leaving, every 10 minutes of editing, or named.
Parameters and answerscurl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/office/files/{fileId}/checkpoint' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"reason": "interval"
}'POST/
A picture into the file: a one-part upload link, then …/complete; GET a one-hour link to it.
curl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/office/files/{fileId}/media' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"name": "Example",
"size": 1,
"mime": "example"
}'POST/
Finishes a picture's upload (after the PUT to the link POST …/media answered).
curl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/office/files/{fileId}/media/{mediaId}/complete' \
-H "Authorization: Bearer $CACTIVE_TOKEN"POST/
A picture pasted from a web page: fetched by the server (SSRF-safe), stored as the file's media.
Parameters and answerscurl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/office/files/{fileId}/media/from-url' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"url": "https://example.com"
}'POST/
A picture pasted from another document (fileId, which the caller can see): its media (mediaId) copied into this file's, under the same id.
curl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/office/files/{fileId}/media/from-file' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"fileId": "<fileId>",
"mediaId": "<mediaId>"
}'GET/
A short-lived link to a picture in the file.
Parameters and answerscurl 'https://api.cactive.com.au/v1/orgs/{orgId}/office/files/{fileId}/media/{mediaId}' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
Versions (Drive's, newest first) with names and pins, whether you may manage them, and how many changes aren't in a version yet (unsaved).
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/office/files/{fileId}/versions' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
An earlier version's state (base64 Yjs) for viewing. Editors only, as in Drive.
Parameters and answerscurl 'https://api.cactive.com.au/v1/orgs/{orgId}/office/files/{fileId}/versions/{versionId}/content' \
-H "Authorization: Bearer $CACTIVE_TOKEN"PATCH/
Names (name, null to clear) or pins (pinned) a version. Pinned versions aren't pruned.
curl -X PATCH 'https://api.cactive.com.au/v1/orgs/{orgId}/office/files/{fileId}/versions/{versionId}' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"name": "Example",
"pinned": true
}'POST/
Makes an earlier version current again (a new version with its content); open editors reload.
Parameters and answerscurl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/office/files/{fileId}/versions/{versionId}/restore' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
Comment threads on the file, with their anchors (text, cell, slide element or point) and authors' names.
Parameters and answerscurl 'https://api.cactive.com.au/v1/orgs/{orgId}/office/files/{fileId}/threads' \
-H "Authorization: Bearer $CACTIVE_TOKEN"POST/
Starts a thread at anchor with body (Markdown; @[Name](usr_…) mentions notify). Commenters and up.
curl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/office/files/{fileId}/threads' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"anchor": {},
"body": "example"
}'POST/
Replies to a thread (and reopens it if it was resolved).
Parameters and answerscurl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/office/files/{fileId}/threads/{threadId}/comments' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"body": "example"
}'PATCH/
Resolves or reopens a thread (resolved). Anyone who can comment.
curl -X PATCH 'https://api.cactive.com.au/v1/orgs/{orgId}/office/files/{fileId}/threads/{threadId}' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"resolved": true
}'PUT/
New Yjs positions for a text thread's same words (an editor's edit wrote them again as new items, and the old positions died).
Parameters and answerscurl -X PUT 'https://api.cactive.com.au/v1/orgs/{orgId}/office/files/{fileId}/threads/{threadId}/anchor' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"anchor": {}
}'DELETE/
Deletes a thread. Its author, or an editor of the file.
Parameters and answerscurl -X DELETE 'https://api.cactive.com.au/v1/orgs/{orgId}/office/files/{fileId}/threads/{threadId}' \
-H "Authorization: Bearer $CACTIVE_TOKEN"PATCH/
Edits your own comment (body).
curl -X PATCH 'https://api.cactive.com.au/v1/orgs/{orgId}/office/files/{fileId}/threads/{threadId}/comments/{commentId}' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"body": "example"
}'DELETE/
Deletes a comment: your own, or any as an editor of the file.
Parameters and answerscurl -X DELETE 'https://api.cactive.com.au/v1/orgs/{orgId}/office/files/{fileId}/threads/{threadId}/comments/{commentId}' \
-H "Authorization: Bearer $CACTIVE_TOKEN"POST/
People @mentioned who can't open the file yet (the commenter is asked to share first).
Parameters and answerscurl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/office/files/{fileId}/mentions' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"userIds": [
"example"
]
}'GET/
Editing locks (Studio: one editor at a time; renew every minute).
Parameters and answerscurl 'https://api.cactive.com.au/v1/orgs/{orgId}/office/files/{fileId}/lock' \
-H "Authorization: Bearer $CACTIVE_TOKEN"POST/
Takes or renews the editing lock for one-at-a-time editing (renew every minute). 423 with who has it when someone else does.
Parameters and answerscurl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/office/files/{fileId}/lock' \
-H "Authorization: Bearer $CACTIVE_TOKEN"DELETE/
Gives up the editing lock.
Parameters and answerscurl -X DELETE 'https://api.cactive.com.au/v1/orgs/{orgId}/office/files/{fileId}/lock' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
A deck's broadcast: who presents it and the slide, build step and screen on show (broadcast, null when nobody does), its version v, and whether you may present (canPresent).
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/office/files/{fileId}/broadcast' \
-H "Authorization: Bearer $CACTIVE_TOKEN"POST/
Starts broadcasting the deck from slideId, step and screen. Editors of the deck. 409 naming the presenter when someone else presents.
curl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/office/files/{fileId}/broadcast' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"slideId": "<slideId>",
"step": 1,
"screen": "slide"
}'PUT/
The presenter's place (slideId, step, screen, and the laser pointer where the platform sends it): followers get it when it changes; the same place renews the broadcast. 409 when you no longer present; 429 with retryAfterMs past the frame rate.
curl -X PUT 'https://api.cactive.com.au/v1/orgs/{orgId}/office/files/{fileId}/broadcast' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"slideId": "<slideId>",
"step": 1,
"screen": "slide"
}'POST/
Hands the broadcast to to, someone who can edit the deck. The presenter only.
curl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/office/files/{fileId}/broadcast/hand-over' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"to": "example"
}'POST/
Takes the broadcast over from from, the presenter you saw. Editors of the deck. 409 naming whoever took over first.
curl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/office/files/{fileId}/broadcast/take-over' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"from": "example"
}'DELETE/
Ends your broadcast; anyone else gets the broadcast as it is.
Parameters and answerscurl -X DELETE 'https://api.cactive.com.au/v1/orgs/{orgId}/office/files/{fileId}/broadcast' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
The template gallery for kind: Blank, the organization's own templates you can read, then the built-ins.
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/office/templates' \
-H "Authorization: Bearer $CACTIVE_TOKEN"POST/
Makes a file (fileId) one of the organization's templates, with an optional name and category. Editors of the file; not in personal spaces.
curl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/office/templates' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"fileId": "<fileId>"
}'DELETE/
Takes a file off the organization's templates (the file stays).
Parameters and answerscurl -X DELETE 'https://api.cactive.com.au/v1/orgs/{orgId}/office/templates/{fileId}' \
-H "Authorization: Bearer $CACTIVE_TOKEN"POST/
Opens a Word, Excel, PowerPoint, OpenDocument, CSV or Markdown file as a native one beside it (a job).
Parameters and answerscurl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/office/imports' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"itemId": "<itemId>"
}'POST/
Downloads a file in another format (a job; ask GET /jobs/:jobId until it's done, then follow result.url; Word, Excel and PowerPoint downloads list what they left out in result.left). save with pdf saves the PDF beside the file instead (result.fileId).
curl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/office/exports' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"fileId": "<fileId>",
"format": "example"
}'GET/
An import or export job: status (queued, running, done, failed) and, when done, the new file or a download link.
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/office/jobs/{jobId}' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
The person's files of a kind: recently opened first (view: recent, shared, starred or all).
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/office/recent?kind=document' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
Files whose content holds every word of q (and that the person can open), with a snippet.
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/office/search?q=example' \
-H "Authorization: Bearer $CACTIVE_TOKEN"POST/
Writing, formula and slide help for the file's editor (a model call; counted per day).
Parameters and answerscurl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/office/assist' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"fileId": "<fileId>",
"task": "example",
"input": "example"
}'POST/
A new document, spreadsheet or presentation (blank, a built-in template or one of the org's), in parentId or My Drive.
curl -X POST 'https://api.cactive.com.au/v1/me/office/files' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"kind": "document"
}'GET/
A document, spreadsheet or presentation: its Drive item, kind, what you may do (rights: edit, comment, share) and where it is.
curl 'https://api.cactive.com.au/v1/me/office/files/{fileId}' \
-H "Authorization: Bearer $CACTIVE_TOKEN"POST/
Makes a copy ("Copy of …", or name) in parentId or beside it, with its pictures; versionId copies an earlier version.
curl -X POST 'https://api.cactive.com.au/v1/me/office/files/{fileId}/copy' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"name": "Example",
"parentId": "<parentId>",
"versionId": "<versionId>"
}'GET/
The shared document with the caller's rights and a socket ticket (ticket=0 without; state=0 for a ticket alone, on reconnects).
curl 'https://api.cactive.com.au/v1/me/office/files/{fileId}/collab' \
-H "Authorization: Bearer $CACTIVE_TOKEN"POST/
Sets up a file nobody has edited yet: the first update (base64 Yjs) on the version base. 409 when it's already set up.
curl -X POST 'https://api.cactive.com.au/v1/me/office/files/{fileId}/collab/seed' \
-H "Authorization: Bearer $CACTIVE_TOKEN"POST/
Sends an edit (update, base64 Yjs) at epoch; answers its seq. For edits too large for the socket (over 90 KB). 409 when the epoch is stale: reload the state.
curl -X POST 'https://api.cactive.com.au/v1/me/office/files/{fileId}/collab/updates' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"epoch": "example",
"update": "2026-01-01"
}'GET/
Edits after after at epoch, or { reset: true } when the file was replaced since (a restore or an upload): reload the state.
curl 'https://api.cactive.com.au/v1/me/office/files/{fileId}/collab/updates?epoch=example&after=1' \
-H "Authorization: Bearer $CACTIVE_TOKEN"POST/
Saves a checkpoint now (a Drive version): on leaving, every 10 minutes of editing, or named.
Parameters and answerscurl -X POST 'https://api.cactive.com.au/v1/me/office/files/{fileId}/checkpoint' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"reason": "interval"
}'POST/
A picture into the file: a one-part upload link, then …/complete; GET a one-hour link to it.
curl -X POST 'https://api.cactive.com.au/v1/me/office/files/{fileId}/media' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"name": "Example",
"size": 1,
"mime": "example"
}'POST/
Finishes a picture's upload (after the PUT to the link POST …/media answered).
curl -X POST 'https://api.cactive.com.au/v1/me/office/files/{fileId}/media/{mediaId}/complete' \
-H "Authorization: Bearer $CACTIVE_TOKEN"POST/
A picture pasted from a web page: fetched by the server (SSRF-safe), stored as the file's media.
Parameters and answerscurl -X POST 'https://api.cactive.com.au/v1/me/office/files/{fileId}/media/from-url' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"url": "https://example.com"
}'POST/
A picture pasted from another document (fileId, which the caller can see): its media (mediaId) copied into this file's, under the same id.
curl -X POST 'https://api.cactive.com.au/v1/me/office/files/{fileId}/media/from-file' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"fileId": "<fileId>",
"mediaId": "<mediaId>"
}'GET/
A short-lived link to a picture in the file.
Parameters and answerscurl 'https://api.cactive.com.au/v1/me/office/files/{fileId}/media/{mediaId}' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
Versions (Drive's, newest first) with names and pins, whether you may manage them, and how many changes aren't in a version yet (unsaved).
curl 'https://api.cactive.com.au/v1/me/office/files/{fileId}/versions' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
An earlier version's state (base64 Yjs) for viewing. Editors only, as in Drive.
Parameters and answerscurl 'https://api.cactive.com.au/v1/me/office/files/{fileId}/versions/{versionId}/content' \
-H "Authorization: Bearer $CACTIVE_TOKEN"PATCH/
Names (name, null to clear) or pins (pinned) a version. Pinned versions aren't pruned.
curl -X PATCH 'https://api.cactive.com.au/v1/me/office/files/{fileId}/versions/{versionId}' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"name": "Example",
"pinned": true
}'POST/
Makes an earlier version current again (a new version with its content); open editors reload.
Parameters and answerscurl -X POST 'https://api.cactive.com.au/v1/me/office/files/{fileId}/versions/{versionId}/restore' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
Comment threads on the file, with their anchors (text, cell, slide element or point) and authors' names.
Parameters and answerscurl 'https://api.cactive.com.au/v1/me/office/files/{fileId}/threads' \
-H "Authorization: Bearer $CACTIVE_TOKEN"POST/
Starts a thread at anchor with body (Markdown; @[Name](usr_…) mentions notify). Commenters and up.
curl -X POST 'https://api.cactive.com.au/v1/me/office/files/{fileId}/threads' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"anchor": {},
"body": "example"
}'POST/
Replies to a thread (and reopens it if it was resolved).
Parameters and answerscurl -X POST 'https://api.cactive.com.au/v1/me/office/files/{fileId}/threads/{threadId}/comments' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"body": "example"
}'PATCH/
Resolves or reopens a thread (resolved). Anyone who can comment.
curl -X PATCH 'https://api.cactive.com.au/v1/me/office/files/{fileId}/threads/{threadId}' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"resolved": true
}'PUT/
New Yjs positions for a text thread's same words (an editor's edit wrote them again as new items, and the old positions died).
Parameters and answerscurl -X PUT 'https://api.cactive.com.au/v1/me/office/files/{fileId}/threads/{threadId}/anchor' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"anchor": {}
}'DELETE/
Deletes a thread. Its author, or an editor of the file.
Parameters and answerscurl -X DELETE 'https://api.cactive.com.au/v1/me/office/files/{fileId}/threads/{threadId}' \
-H "Authorization: Bearer $CACTIVE_TOKEN"PATCH/
Edits your own comment (body).
curl -X PATCH 'https://api.cactive.com.au/v1/me/office/files/{fileId}/threads/{threadId}/comments/{commentId}' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"body": "example"
}'DELETE/
Deletes a comment: your own, or any as an editor of the file.
Parameters and answerscurl -X DELETE 'https://api.cactive.com.au/v1/me/office/files/{fileId}/threads/{threadId}/comments/{commentId}' \
-H "Authorization: Bearer $CACTIVE_TOKEN"POST/
People @mentioned who can't open the file yet (the commenter is asked to share first).
Parameters and answerscurl -X POST 'https://api.cactive.com.au/v1/me/office/files/{fileId}/mentions' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"userIds": [
"example"
]
}'GET/
Editing locks (Studio: one editor at a time; renew every minute).
Parameters and answerscurl 'https://api.cactive.com.au/v1/me/office/files/{fileId}/lock' \
-H "Authorization: Bearer $CACTIVE_TOKEN"POST/
Takes or renews the editing lock for one-at-a-time editing (renew every minute). 423 with who has it when someone else does.
Parameters and answerscurl -X POST 'https://api.cactive.com.au/v1/me/office/files/{fileId}/lock' \
-H "Authorization: Bearer $CACTIVE_TOKEN"DELETE/
Gives up the editing lock.
Parameters and answerscurl -X DELETE 'https://api.cactive.com.au/v1/me/office/files/{fileId}/lock' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
A deck's broadcast: who presents it and the slide, build step and screen on show (broadcast, null when nobody does), its version v, and whether you may present (canPresent).
curl 'https://api.cactive.com.au/v1/me/office/files/{fileId}/broadcast' \
-H "Authorization: Bearer $CACTIVE_TOKEN"POST/
Starts broadcasting the deck from slideId, step and screen. Editors of the deck. 409 naming the presenter when someone else presents.
curl -X POST 'https://api.cactive.com.au/v1/me/office/files/{fileId}/broadcast' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"slideId": "<slideId>",
"step": 1,
"screen": "slide"
}'PUT/
The presenter's place (slideId, step, screen, and the laser pointer where the platform sends it): followers get it when it changes; the same place renews the broadcast. 409 when you no longer present; 429 with retryAfterMs past the frame rate.
curl -X PUT 'https://api.cactive.com.au/v1/me/office/files/{fileId}/broadcast' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"slideId": "<slideId>",
"step": 1,
"screen": "slide"
}'POST/
Hands the broadcast to to, someone who can edit the deck. The presenter only.
curl -X POST 'https://api.cactive.com.au/v1/me/office/files/{fileId}/broadcast/hand-over' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"to": "example"
}'POST/
Takes the broadcast over from from, the presenter you saw. Editors of the deck. 409 naming whoever took over first.
curl -X POST 'https://api.cactive.com.au/v1/me/office/files/{fileId}/broadcast/take-over' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"from": "example"
}'DELETE/
Ends your broadcast; anyone else gets the broadcast as it is.
Parameters and answerscurl -X DELETE 'https://api.cactive.com.au/v1/me/office/files/{fileId}/broadcast' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
The template gallery for kind: Blank, the organization's own templates you can read, then the built-ins.
curl 'https://api.cactive.com.au/v1/me/office/templates' \
-H "Authorization: Bearer $CACTIVE_TOKEN"POST/
Makes a file (fileId) one of the organization's templates, with an optional name and category. Editors of the file; not in personal spaces.
curl -X POST 'https://api.cactive.com.au/v1/me/office/templates' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"fileId": "<fileId>"
}'DELETE/
Takes a file off the organization's templates (the file stays).
Parameters and answerscurl -X DELETE 'https://api.cactive.com.au/v1/me/office/templates/{fileId}' \
-H "Authorization: Bearer $CACTIVE_TOKEN"POST/
Opens a Word, Excel, PowerPoint, OpenDocument, CSV or Markdown file as a native one beside it (a job).
Parameters and answerscurl -X POST 'https://api.cactive.com.au/v1/me/office/imports' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"itemId": "<itemId>"
}'POST/
Downloads a file in another format (a job; ask GET /jobs/:jobId until it's done, then follow result.url; Word, Excel and PowerPoint downloads list what they left out in result.left). save with pdf saves the PDF beside the file instead (result.fileId).
curl -X POST 'https://api.cactive.com.au/v1/me/office/exports' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"fileId": "<fileId>",
"format": "example"
}'GET/
An import or export job: status (queued, running, done, failed) and, when done, the new file or a download link.
curl 'https://api.cactive.com.au/v1/me/office/jobs/{jobId}' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
The person's files of a kind: recently opened first (view: recent, shared, starred or all).
curl 'https://api.cactive.com.au/v1/me/office/recent?kind=document' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
Files whose content holds every word of q (and that the person can open), with a snippet.
curl 'https://api.cactive.com.au/v1/me/office/search?q=example' \
-H "Authorization: Bearer $CACTIVE_TOKEN"POST/
Writing, formula and slide help for the file's editor (a model call; counted per day).
Parameters and answerscurl -X POST 'https://api.cactive.com.au/v1/me/office/assist' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"fileId": "<fileId>",
"task": "example",
"input": "example"
}'GET/
Limits for Documents, Sheets, Slides and Studio, and the download formats each kind offers now.
Parameters and answerscurl 'https://api.cactive.com.au/v1/office/config' \
-H "Authorization: Bearer $CACTIVE_TOKEN"POST/
Read a document's live data
Parameters and answerscurl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/briefings/resolve' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"embeds": [
{
"id": "<id>",
"source": {}
}
]
}'POST/
Freeze live data as a snapshot
Parameters and answerscurl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/briefings/files/{fileId}/freeze' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"embedId": "<embedId>",
"source": {}
}'DELETE/
Make frozen data live again
Parameters and answerscurl -X DELETE 'https://api.cactive.com.au/v1/orgs/{orgId}/briefings/files/{fileId}/freeze/{embedId}' \
-H "Authorization: Bearer $CACTIVE_TOKEN"POST/
Add live data to a document or deck
Parameters and answerscurl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/briefings/files/{fileId}/embeds' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"source": {}
}'POST/
Draft a situation's brief
Parameters and answerscurl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/briefings/drafts' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"type": "example",
"id": "<id>",
"kind": "document"
}'curl 'https://api.cactive.com.au/v1/orgs/{orgId}/reports/files/{fileId}' \
-H "Authorization: Bearer $CACTIVE_TOKEN"POST/
Make a document a report
Parameters and answerscurl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/reports/files/{fileId}' \
-H "Authorization: Bearer $CACTIVE_TOKEN"POST/
Send a report for review
Parameters and answerscurl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/reports/files/{fileId}/submit' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"approvers": [
{
"kind": "user",
"id": "<id>"
}
]
}'POST/
Approve or reject a report
Parameters and answerscurl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/reports/files/{fileId}/decide' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"decision": "approved",
"fingerprint": "example"
}'POST/
Withdraw a report from review
Parameters and answerscurl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/reports/files/{fileId}/withdraw' \
-H "Authorization: Bearer $CACTIVE_TOKEN"POST/
Archive a released report
Parameters and answerscurl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/reports/files/{fileId}/archive' \
-H "Authorization: Bearer $CACTIVE_TOKEN"POST/
Make a redacted copy of a report
Parameters and answerscurl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/reports/files/{fileId}/redact' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"audience": {
"markings": [
"example"
]
}
}'POST/
Quote a passage into a report
Parameters and answerscurl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/reports/files/{fileId}/excerpts' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"document": {
"fileId": "<fileId>",
"text": "example"
},
"property": {
"type": "example",
"id": "<id>",
"property": "example"
},
"label": "Example"
}'GET/
List the documents that mention an object
Parameters and answerscurl 'https://api.cactive.com.au/v1/orgs/{orgId}/reports/objects/{type}/{id}' \
-H "Authorization: Bearer $CACTIVE_TOKEN"