SDK reference

Video

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

GET/v1/orgs/:orgId/video/files/:fileId/proxies

The project's finished proxies: each one's media item (mediaRef), name, type and size. Read a proxy through Office's GET …/office/files/:fileId/media/:mediaId.

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

POST/v1/orgs/:orgId/video/files/:fileId/proxies

Starts an upload into the project in parts: a proxy of a media item (mediaRef, MP4 or WebM, up to video.proxyMb) or, with purpose: "audio", the mixdown to transcribe. Answers mediaId, partSize, partCount and links for the first parts. Editors only.

Parameters and answers
curl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/video/files/{fileId}/proxies' \
  -H "Authorization: Bearer $CACTIVE_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
    "name": "Example",
    "size": 1,
    "mime": "example"
  }'
postOrgVideoFilesProxiesParts

POST/v1/orgs/:orgId/video/files/:fileId/proxies/:mediaId/parts

Links for more parts (parts, 1 to 100 part numbers).

Parameters and answers
curl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/video/files/{fileId}/proxies/{mediaId}/parts' \
  -H "Authorization: Bearer $CACTIVE_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
    "parts": [
      1
    ]
  }'
postOrgVideoFilesProxiesComplete

POST/v1/orgs/:orgId/video/files/:fileId/proxies/:mediaId/complete

Finishes the upload once every part is in; it then counts against the space's storage.

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

DELETE/v1/orgs/:orgId/video/files/:fileId/proxies/:mediaId

Deletes a proxy, a mixdown or an unfinished upload of one, giving its storage back (when its media item leaves the project, or to make it again). Editors only.

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

PUT/v1/orgs/:orgId/video/files/:fileId/poster

Saves the project's poster frame (the body: a WebP or JPEG of at most 1 MB). Drive's thumbnail of the project follows. Editors only.

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

POST/v1/orgs/:orgId/video/files/:fileId/transcriptions

Captions from speech: the uploaded mixdown (audioMediaId, duration in flicks) or one media item (source: "media", mediaId) into a new caption track of sequenceId from from, in language (or auto), with up to speakers voices told apart. 202 with the job; the track arrives in the project when it's done. Counts against your daily transcription minutes.

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

GET/v1/orgs/:orgId/video/files/:fileId/transcriptions/:transcriptionId

A transcription job: status (running, done, failed), the caption track it made (trackId) and its cue count, or why it failed.

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

GET/v1/me/video/files/:fileId/proxies

The project's finished proxies: each one's media item (mediaRef), name, type and size. Read a proxy through Office's GET …/office/files/:fileId/media/:mediaId.

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

POST/v1/me/video/files/:fileId/proxies

Starts an upload into the project in parts: a proxy of a media item (mediaRef, MP4 or WebM, up to video.proxyMb) or, with purpose: "audio", the mixdown to transcribe. Answers mediaId, partSize, partCount and links for the first parts. Editors only.

Parameters and answers
curl -X POST 'https://api.cactive.com.au/v1/me/video/files/{fileId}/proxies' \
  -H "Authorization: Bearer $CACTIVE_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
    "name": "Example",
    "size": 1,
    "mime": "example"
  }'
postMeVideoFilesProxiesParts

POST/v1/me/video/files/:fileId/proxies/:mediaId/parts

Links for more parts (parts, 1 to 100 part numbers).

Parameters and answers
curl -X POST 'https://api.cactive.com.au/v1/me/video/files/{fileId}/proxies/{mediaId}/parts' \
  -H "Authorization: Bearer $CACTIVE_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
    "parts": [
      1
    ]
  }'
postMeVideoFilesProxiesComplete

POST/v1/me/video/files/:fileId/proxies/:mediaId/complete

Finishes the upload once every part is in; it then counts against the space's storage.

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

DELETE/v1/me/video/files/:fileId/proxies/:mediaId

Deletes a proxy, a mixdown or an unfinished upload of one, giving its storage back (when its media item leaves the project, or to make it again). Editors only.

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

PUT/v1/me/video/files/:fileId/poster

Saves the project's poster frame (the body: a WebP or JPEG of at most 1 MB). Drive's thumbnail of the project follows. Editors only.

Parameters and answers
curl -X PUT 'https://api.cactive.com.au/v1/me/video/files/{fileId}/poster' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
postMeVideoFilesTranscriptions

POST/v1/me/video/files/:fileId/transcriptions

Captions from speech: the uploaded mixdown (audioMediaId, duration in flicks) or one media item (source: "media", mediaId) into a new caption track of sequenceId from from, in language (or auto), with up to speakers voices told apart. 202 with the job; the track arrives in the project when it's done. Counts against your daily transcription minutes.

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

GET/v1/me/video/files/:fileId/transcriptions/:transcriptionId

A transcription job: status (running, done, failed), the caption track it made (trackId) and its cue count, or why it failed.

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

GET/v1/video/config

Video's limits (limits, the platform's), the export presets (presets, with the platform's changes) and what Transcribe offers (transcribe: whether it's on, its languages and the minutes allowed). People only.

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