SDK reference

Documents, Sheets and Slides

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

POST/v1/orgs/:orgId/office/files

A new document, spreadsheet or presentation (blank, a built-in template or one of the org's), in parentId or My Drive.

Parameters and answers
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"
  }'
orgOfficeFilesByFileId

GET/v1/orgs/:orgId/office/files/:fileId

A document, spreadsheet or presentation: its Drive item, kind, what you may do (rights: edit, comment, share) and where it is.

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

POST/v1/orgs/:orgId/office/files/:fileId/copy

Makes a copy ("Copy of …", or name) in parentId or beside it, with its pictures; versionId copies an earlier version.

Parameters and answers
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>"
  }'
orgOfficeFilesCollab

GET/v1/orgs/:orgId/office/files/:fileId/collab

The shared document with the caller's rights and a socket ticket (ticket=0 without; state=0 for a ticket alone, on reconnects).

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

POST/v1/orgs/:orgId/office/files/:fileId/collab/seed

Sets up a file nobody has edited yet: the first update (base64 Yjs) on the version base. 409 when it's already set up.

Parameters and answers
curl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/office/files/{fileId}/collab/seed' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
postOrgOfficeFilesCollabUpdates

POST/v1/orgs/:orgId/office/files/:fileId/collab/updates

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.

Parameters and answers
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"
  }'
orgOfficeFilesCollabUpdates

GET/v1/orgs/:orgId/office/files/:fileId/collab/updates

Edits after after at epoch, or { reset: true } when the file was replaced since (a restore or an upload): reload the state.

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

POST/v1/orgs/:orgId/office/files/:fileId/checkpoint

Saves a checkpoint now (a Drive version): on leaving, every 10 minutes of editing, or named.

Parameters and answers
curl -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"
  }'
postOrgOfficeFilesMedia

POST/v1/orgs/:orgId/office/files/:fileId/media

A picture into the file: a one-part upload link, then …/complete; GET a one-hour link to it.

Parameters and answers
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"
  }'
postOrgOfficeFilesMediaComplete

POST/v1/orgs/:orgId/office/files/:fileId/media/:mediaId/complete

Finishes a picture's upload (after the PUT to the link POST …/media answered).

Parameters and answers
curl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/office/files/{fileId}/media/{mediaId}/complete' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
postOrgOfficeFilesMediaFromUrl

POST/v1/orgs/:orgId/office/files/:fileId/media/from-url

A picture pasted from a web page: fetched by the server (SSRF-safe), stored as the file's media.

Parameters and answers
curl -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"
  }'
postOrgOfficeFilesMediaFromFile

POST/v1/orgs/:orgId/office/files/:fileId/media/from-file

A picture pasted from another document (fileId, which the caller can see): its media (mediaId) copied into this file's, under the same id.

Parameters and answers
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>"
  }'
orgOfficeFilesMediaByMediaId

GET/v1/orgs/:orgId/office/files/:fileId/media/:mediaId

A short-lived link to a picture in the file.

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

GET/v1/orgs/:orgId/office/files/:fileId/versions

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).

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

GET/v1/orgs/:orgId/office/files/:fileId/versions/:versionId/content

An earlier version's state (base64 Yjs) for viewing. Editors only, as in Drive.

Parameters and answers
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/office/files/{fileId}/versions/{versionId}/content' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
patchOrgOfficeFilesVersionsByVersionId

PATCH/v1/orgs/:orgId/office/files/:fileId/versions/:versionId

Names (name, null to clear) or pins (pinned) a version. Pinned versions aren't pruned.

Parameters and answers
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
  }'
postOrgOfficeFilesVersionsRestore

POST/v1/orgs/:orgId/office/files/:fileId/versions/:versionId/restore

Makes an earlier version current again (a new version with its content); open editors reload.

Parameters and answers
curl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/office/files/{fileId}/versions/{versionId}/restore' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
orgOfficeFilesThreads

GET/v1/orgs/:orgId/office/files/:fileId/threads

Comment threads on the file, with their anchors (text, cell, slide element or point) and authors' names.

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

POST/v1/orgs/:orgId/office/files/:fileId/threads

Starts a thread at anchor with body (Markdown; @[Name](usr_…) mentions notify). Commenters and up.

Parameters and answers
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"
  }'
postOrgOfficeFilesThreadsComments

POST/v1/orgs/:orgId/office/files/:fileId/threads/:threadId/comments

Replies to a thread (and reopens it if it was resolved).

Parameters and answers
curl -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"
  }'
patchOrgOfficeFilesThreadsByThreadId

PATCH/v1/orgs/:orgId/office/files/:fileId/threads/:threadId

Resolves or reopens a thread (resolved). Anyone who can comment.

Parameters and answers
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
  }'
putOrgOfficeFilesThreadsAnchor

PUT/v1/orgs/:orgId/office/files/:fileId/threads/:threadId/anchor

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 answers
curl -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": {}
  }'
deleteOrgOfficeFilesThreadsByThreadId

DELETE/v1/orgs/:orgId/office/files/:fileId/threads/:threadId

Deletes a thread. Its author, or an editor of the file.

Parameters and answers
curl -X DELETE 'https://api.cactive.com.au/v1/orgs/{orgId}/office/files/{fileId}/threads/{threadId}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
patchOrgOfficeFilesThreadsCommentsByCommentId

PATCH/v1/orgs/:orgId/office/files/:fileId/threads/:threadId/comments/:commentId

Edits your own comment (body).

Parameters and answers
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"
  }'
deleteOrgOfficeFilesThreadsCommentsByCommentId

DELETE/v1/orgs/:orgId/office/files/:fileId/threads/:threadId/comments/:commentId

Deletes a comment: your own, or any as an editor of the file.

Parameters and answers
curl -X DELETE 'https://api.cactive.com.au/v1/orgs/{orgId}/office/files/{fileId}/threads/{threadId}/comments/{commentId}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
postOrgOfficeFilesMentions

POST/v1/orgs/:orgId/office/files/:fileId/mentions

People @mentioned who can't open the file yet (the commenter is asked to share first).

Parameters and answers
curl -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"
    ]
  }'
orgOfficeFilesLock

GET/v1/orgs/:orgId/office/files/:fileId/lock

Editing locks (Studio: one editor at a time; renew every minute).

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

POST/v1/orgs/:orgId/office/files/:fileId/lock

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 answers
curl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/office/files/{fileId}/lock' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
deleteOrgOfficeFilesLock

DELETE/v1/orgs/:orgId/office/files/:fileId/lock

Gives up the editing lock.

Parameters and answers
curl -X DELETE 'https://api.cactive.com.au/v1/orgs/{orgId}/office/files/{fileId}/lock' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
orgOfficeFilesBroadcast

GET/v1/orgs/:orgId/office/files/:fileId/broadcast

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).

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

POST/v1/orgs/:orgId/office/files/:fileId/broadcast

Starts broadcasting the deck from slideId, step and screen. Editors of the deck. 409 naming the presenter when someone else presents.

Parameters and answers
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"
  }'
putOrgOfficeFilesBroadcast

PUT/v1/orgs/:orgId/office/files/:fileId/broadcast

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.

Parameters and answers
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"
  }'
postOrgOfficeFilesBroadcastHandOver

POST/v1/orgs/:orgId/office/files/:fileId/broadcast/hand-over

Hands the broadcast to to, someone who can edit the deck. The presenter only.

Parameters and answers
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"
  }'
postOrgOfficeFilesBroadcastTakeOver

POST/v1/orgs/:orgId/office/files/:fileId/broadcast/take-over

Takes the broadcast over from from, the presenter you saw. Editors of the deck. 409 naming whoever took over first.

Parameters and answers
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"
  }'
deleteOrgOfficeFilesBroadcast

DELETE/v1/orgs/:orgId/office/files/:fileId/broadcast

Ends your broadcast; anyone else gets the broadcast as it is.

Parameters and answers
curl -X DELETE 'https://api.cactive.com.au/v1/orgs/{orgId}/office/files/{fileId}/broadcast' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
orgOfficeTemplates

GET/v1/orgs/:orgId/office/templates

The template gallery for kind: Blank, the organization's own templates you can read, then the built-ins.

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

POST/v1/orgs/:orgId/office/templates

Makes a file (fileId) one of the organization's templates, with an optional name and category. Editors of the file; not in personal spaces.

Parameters and answers
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>"
  }'
deleteOrgOfficeTemplatesByFileId

DELETE/v1/orgs/:orgId/office/templates/:fileId

Takes a file off the organization's templates (the file stays).

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

POST/v1/orgs/:orgId/office/imports

Opens a Word, Excel, PowerPoint, OpenDocument, CSV or Markdown file as a native one beside it (a job).

Parameters and answers
curl -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>"
  }'
postOrgOfficeExports

POST/v1/orgs/:orgId/office/exports

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).

Parameters and answers
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"
  }'
orgOfficeJobsByJobId

GET/v1/orgs/:orgId/office/jobs/:jobId

An import or export job: status (queued, running, done, failed) and, when done, the new file or a download link.

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

GET/v1/orgs/:orgId/office/recent

The person's files of a kind: recently opened first (view: recent, shared, starred or all).

Parameters and answers
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/office/recent?kind=document' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
postOrgOfficeAssist

POST/v1/orgs/:orgId/office/assist

Writing, formula and slide help for the file's editor (a model call; counted per day).

Parameters and answers
curl -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"
  }'
postMeOfficeFiles

POST/v1/me/office/files

A new document, spreadsheet or presentation (blank, a built-in template or one of the org's), in parentId or My Drive.

Parameters and answers
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"
  }'
meOfficeFilesByFileId

GET/v1/me/office/files/:fileId

A document, spreadsheet or presentation: its Drive item, kind, what you may do (rights: edit, comment, share) and where it is.

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

POST/v1/me/office/files/:fileId/copy

Makes a copy ("Copy of …", or name) in parentId or beside it, with its pictures; versionId copies an earlier version.

Parameters and answers
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>"
  }'
meOfficeFilesCollab

GET/v1/me/office/files/:fileId/collab

The shared document with the caller's rights and a socket ticket (ticket=0 without; state=0 for a ticket alone, on reconnects).

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

POST/v1/me/office/files/:fileId/collab/seed

Sets up a file nobody has edited yet: the first update (base64 Yjs) on the version base. 409 when it's already set up.

Parameters and answers
curl -X POST 'https://api.cactive.com.au/v1/me/office/files/{fileId}/collab/seed' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
postMeOfficeFilesCollabUpdates

POST/v1/me/office/files/:fileId/collab/updates

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.

Parameters and answers
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"
  }'
meOfficeFilesCollabUpdates

GET/v1/me/office/files/:fileId/collab/updates

Edits after after at epoch, or { reset: true } when the file was replaced since (a restore or an upload): reload the state.

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

POST/v1/me/office/files/:fileId/checkpoint

Saves a checkpoint now (a Drive version): on leaving, every 10 minutes of editing, or named.

Parameters and answers
curl -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"
  }'
postMeOfficeFilesMedia

POST/v1/me/office/files/:fileId/media

A picture into the file: a one-part upload link, then …/complete; GET a one-hour link to it.

Parameters and answers
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"
  }'
postMeOfficeFilesMediaComplete

POST/v1/me/office/files/:fileId/media/:mediaId/complete

Finishes a picture's upload (after the PUT to the link POST …/media answered).

Parameters and answers
curl -X POST 'https://api.cactive.com.au/v1/me/office/files/{fileId}/media/{mediaId}/complete' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
postMeOfficeFilesMediaFromUrl

POST/v1/me/office/files/:fileId/media/from-url

A picture pasted from a web page: fetched by the server (SSRF-safe), stored as the file's media.

Parameters and answers
curl -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"
  }'
postMeOfficeFilesMediaFromFile

POST/v1/me/office/files/:fileId/media/from-file

A picture pasted from another document (fileId, which the caller can see): its media (mediaId) copied into this file's, under the same id.

Parameters and answers
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>"
  }'
meOfficeFilesMediaByMediaId

GET/v1/me/office/files/:fileId/media/:mediaId

A short-lived link to a picture in the file.

Parameters and answers
curl 'https://api.cactive.com.au/v1/me/office/files/{fileId}/media/{mediaId}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
meOfficeFilesVersions

GET/v1/me/office/files/:fileId/versions

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).

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

GET/v1/me/office/files/:fileId/versions/:versionId/content

An earlier version's state (base64 Yjs) for viewing. Editors only, as in Drive.

Parameters and answers
curl 'https://api.cactive.com.au/v1/me/office/files/{fileId}/versions/{versionId}/content' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
patchMeOfficeFilesVersionsByVersionId

PATCH/v1/me/office/files/:fileId/versions/:versionId

Names (name, null to clear) or pins (pinned) a version. Pinned versions aren't pruned.

Parameters and answers
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
  }'
postMeOfficeFilesVersionsRestore

POST/v1/me/office/files/:fileId/versions/:versionId/restore

Makes an earlier version current again (a new version with its content); open editors reload.

Parameters and answers
curl -X POST 'https://api.cactive.com.au/v1/me/office/files/{fileId}/versions/{versionId}/restore' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
meOfficeFilesThreads

GET/v1/me/office/files/:fileId/threads

Comment threads on the file, with their anchors (text, cell, slide element or point) and authors' names.

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

POST/v1/me/office/files/:fileId/threads

Starts a thread at anchor with body (Markdown; @[Name](usr_…) mentions notify). Commenters and up.

Parameters and answers
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"
  }'
postMeOfficeFilesThreadsComments

POST/v1/me/office/files/:fileId/threads/:threadId/comments

Replies to a thread (and reopens it if it was resolved).

Parameters and answers
curl -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"
  }'
patchMeOfficeFilesThreadsByThreadId

PATCH/v1/me/office/files/:fileId/threads/:threadId

Resolves or reopens a thread (resolved). Anyone who can comment.

Parameters and answers
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
  }'
putMeOfficeFilesThreadsAnchor

PUT/v1/me/office/files/:fileId/threads/:threadId/anchor

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 answers
curl -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": {}
  }'
deleteMeOfficeFilesThreadsByThreadId

DELETE/v1/me/office/files/:fileId/threads/:threadId

Deletes a thread. Its author, or an editor of the file.

Parameters and answers
curl -X DELETE 'https://api.cactive.com.au/v1/me/office/files/{fileId}/threads/{threadId}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
patchMeOfficeFilesThreadsCommentsByCommentId

PATCH/v1/me/office/files/:fileId/threads/:threadId/comments/:commentId

Edits your own comment (body).

Parameters and answers
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"
  }'
deleteMeOfficeFilesThreadsCommentsByCommentId

DELETE/v1/me/office/files/:fileId/threads/:threadId/comments/:commentId

Deletes a comment: your own, or any as an editor of the file.

Parameters and answers
curl -X DELETE 'https://api.cactive.com.au/v1/me/office/files/{fileId}/threads/{threadId}/comments/{commentId}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
postMeOfficeFilesMentions

POST/v1/me/office/files/:fileId/mentions

People @mentioned who can't open the file yet (the commenter is asked to share first).

Parameters and answers
curl -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"
    ]
  }'
meOfficeFilesLock

GET/v1/me/office/files/:fileId/lock

Editing locks (Studio: one editor at a time; renew every minute).

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

POST/v1/me/office/files/:fileId/lock

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 answers
curl -X POST 'https://api.cactive.com.au/v1/me/office/files/{fileId}/lock' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
deleteMeOfficeFilesLock

DELETE/v1/me/office/files/:fileId/lock

Gives up the editing lock.

Parameters and answers
curl -X DELETE 'https://api.cactive.com.au/v1/me/office/files/{fileId}/lock' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
meOfficeFilesBroadcast

GET/v1/me/office/files/:fileId/broadcast

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).

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

POST/v1/me/office/files/:fileId/broadcast

Starts broadcasting the deck from slideId, step and screen. Editors of the deck. 409 naming the presenter when someone else presents.

Parameters and answers
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"
  }'
putMeOfficeFilesBroadcast

PUT/v1/me/office/files/:fileId/broadcast

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.

Parameters and answers
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"
  }'
postMeOfficeFilesBroadcastHandOver

POST/v1/me/office/files/:fileId/broadcast/hand-over

Hands the broadcast to to, someone who can edit the deck. The presenter only.

Parameters and answers
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"
  }'
postMeOfficeFilesBroadcastTakeOver

POST/v1/me/office/files/:fileId/broadcast/take-over

Takes the broadcast over from from, the presenter you saw. Editors of the deck. 409 naming whoever took over first.

Parameters and answers
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"
  }'
deleteMeOfficeFilesBroadcast

DELETE/v1/me/office/files/:fileId/broadcast

Ends your broadcast; anyone else gets the broadcast as it is.

Parameters and answers
curl -X DELETE 'https://api.cactive.com.au/v1/me/office/files/{fileId}/broadcast' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
meOfficeTemplates

GET/v1/me/office/templates

The template gallery for kind: Blank, the organization's own templates you can read, then the built-ins.

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

POST/v1/me/office/templates

Makes a file (fileId) one of the organization's templates, with an optional name and category. Editors of the file; not in personal spaces.

Parameters and answers
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>"
  }'
deleteMeOfficeTemplatesByFileId

DELETE/v1/me/office/templates/:fileId

Takes a file off the organization's templates (the file stays).

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

POST/v1/me/office/imports

Opens a Word, Excel, PowerPoint, OpenDocument, CSV or Markdown file as a native one beside it (a job).

Parameters and answers
curl -X POST 'https://api.cactive.com.au/v1/me/office/imports' \
  -H "Authorization: Bearer $CACTIVE_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
    "itemId": "<itemId>"
  }'
postMeOfficeExports

POST/v1/me/office/exports

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).

Parameters and answers
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"
  }'
meOfficeJobsByJobId

GET/v1/me/office/jobs/:jobId

An import or export job: status (queued, running, done, failed) and, when done, the new file or a download link.

Parameters and answers
curl 'https://api.cactive.com.au/v1/me/office/jobs/{jobId}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
meOfficeRecent

GET/v1/me/office/recent

The person's files of a kind: recently opened first (view: recent, shared, starred or all).

Parameters and answers
curl 'https://api.cactive.com.au/v1/me/office/recent?kind=document' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
postMeOfficeAssist

POST/v1/me/office/assist

Writing, formula and slide help for the file's editor (a model call; counted per day).

Parameters and answers
curl -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"
  }'
officeConfig

GET/v1/office/config

Limits for Documents, Sheets, Slides and Studio, and the download formats each kind offers now.

Parameters and answers
curl 'https://api.cactive.com.au/v1/office/config' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
briefingsLiveResolve

POST/v1/orgs/:orgId/briefings/resolve

Read a document's live data

Parameters and answers
curl -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": {}
      }
    ]
  }'
briefingsSnapshotsFreeze

POST/v1/orgs/:orgId/briefings/files/:fileId/freeze

Freeze live data as a snapshot

Parameters and answers
curl -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": {}
  }'
briefingsSnapshotsDelete

DELETE/v1/orgs/:orgId/briefings/files/:fileId/freeze/:embedId

Make frozen data live again

Parameters and answers
curl -X DELETE 'https://api.cactive.com.au/v1/orgs/{orgId}/briefings/files/{fileId}/freeze/{embedId}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
briefingsEmbedsAdd

POST/v1/orgs/:orgId/briefings/files/:fileId/embeds

Add live data to a document or deck

Parameters and answers
curl -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": {}
  }'
briefingsDraftsCreate

POST/v1/orgs/:orgId/briefings/drafts

Draft a situation's brief

Parameters and answers
curl -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"
  }'
reportsReportGet

GET/v1/orgs/:orgId/reports/files/:fileId

Read a report's state

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

POST/v1/orgs/:orgId/reports/files/:fileId

Make a document a report

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

POST/v1/orgs/:orgId/reports/files/:fileId/submit

Send a report for review

Parameters and answers
curl -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>"
      }
    ]
  }'
reportsReportDecide

POST/v1/orgs/:orgId/reports/files/:fileId/decide

Approve or reject a report

Parameters and answers
curl -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"
  }'
reportsReportWithdraw

POST/v1/orgs/:orgId/reports/files/:fileId/withdraw

Withdraw a report from review

Parameters and answers
curl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/reports/files/{fileId}/withdraw' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
reportsReportArchive

POST/v1/orgs/:orgId/reports/files/:fileId/archive

Archive a released report

Parameters and answers
curl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/reports/files/{fileId}/archive' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
reportsReportRedact

POST/v1/orgs/:orgId/reports/files/:fileId/redact

Make a redacted copy of a report

Parameters and answers
curl -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"
      ]
    }
  }'
reportsExcerptsCreate

POST/v1/orgs/:orgId/reports/files/:fileId/excerpts

Quote a passage into a report

Parameters and answers
curl -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"
  }'
reportsMentionsList

GET/v1/orgs/:orgId/reports/objects/:type/:id

List the documents that mention an object

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