Skip to main content

CRUD Operations

This page covers how to create ✏️, update 🔄, and remove 🗑️ transcription documents using the Scriptix API. All document operations are currently in BETA and may change without notice.


✏️ Create a New Document

info

Documents are currently in BETA and the API interface may change when this is deemed necessary.

Create a new document from a TranscriptSession result.

Use Correct API Token

Only the token linked to the TranscriptSession can be used for document creation.

Endpoint

POST https://api.scriptix.io/api/v3/speech-to-text/session/${sessionId}/document/


Request Headers

ParameterValueDescription
X-Zoom-S2T-KeyScriptix Batch API TokenAPI key belonging to the TranscriptSession

Request Path Arguments

ArgumentDescription
sessionIdScriptix Transcript Session ID from a Batch Session
Realtime sessions

Realtime sessions do not store results, so documents cannot be created for them.

JSON Body Schema

KeyType / EnumDescription
document_type"caption" | "document"Document type. See Document Types.
filenamestring[200]Name for the document.
max_line_lengthinteger / nullMax characters per line (caption only).
max_line_wordsinteger / nullMax words per line (caption only).
max_segment_durationinteger / nullMax segment duration in ms (caption only).
max_segment_linesinteger / nullMax lines per segment (caption only).
max_segment_wordsinteger / nullMax words per segment (caption only).
max_silence_between_wordsinteger / nullMax silence between words in ms (caption only).
min_segment_gapintegerMin gap between segments in ms (caption only).
webhook_headersstring[]Extra callback headers. Requires webhook_url.
webhook_methodPOST | PUTCallback HTTP method. Defaults to POST.
webhook_urlstringCallback URL after processing.

Response Codes

StatusDescription
201Document created
400Bad request
401Unauthorized
403Forbidden
404Session not found or invalid token

🔄 Update a Document

info

Documents are currently in BETA and the API interface may change when this is deemed necessary.

Update an existing document with corrected transcripts from your own editor. This can be used for custom model enhancement.

Use Correct API Token

Only the token linked to the TranscriptSession can be used for document updates.

Endpoint

PUT https://api.scriptix.io/api/v3/speech-to-text/session/${sessionId}/document/${documentId}


Request Headers

ParameterValueDescription
X-Zoom-S2T-KeyScriptix Batch API TokenAPI key belonging to the TranscriptSession

Request Path Arguments

ArgumentDescription
sessionIdScriptix Transcript Session ID from a Batch Session
documentIdScriptix Document ID returned when creating the document

JSON Body Schema

KeyTypeDescription
document_typeDocumentSegment[]Updated document content
filenamestring[200]New document name

Response Codes

StatusDescription
201Document updated
400Bad request
401Unauthorized
403Forbidden
404Session not found or invalid token

Example Response

{
"result": {
"id": "12780b54-5575-44e4-bbca-0a410b432183",
"created": "2021-01-25T10:31:46.960411+00:00",
"last_modified": "2021-01-25T16:31:46.960411+00:00",
"filename": "Example document",
"type": "caption"
}
}

🗑️ Remove a Document

info

Documents are currently in BETA and the API interface may change when this is deemed necessary.

Removes a document file from our systems. Note: This does not delete the transcript session.


Use Correct API Token

Only the token used for creating and uploading the document can be used for removal.


Endpoint

DELETE

https://api.scriptix.io/api/v3/speech-to-text/session/${sessionId}/document/${documentId}

Request Headers

ParameterValueDescription
X-Zoom-S2T-KeyScriptix Batch API TokenAPI key belonging to the TranscriptSession

Response Codes

Status CodeDescription
204Document removed
400Bad request
401Unauthorized, no valid authentication
403Forbidden, access not allowed
404Transcript session not found or does not belong to provided API token