AI Transcription
Creates an AI transcription record.
The source is identified by the res_id and item_type provided in the request body.
This endpoint can be called multiple times. If a previous transcription attempt has failed (status indicates failure),
calling this endpoint again will retry the transcription process.
The response may contain multiple IDs because a single call can include multiple recording files.
ID from a /voicemails or /recordings item used to create the transcription.
Type of the source item. Allowed values are CALL_RECORD_ITEM or VOICE_MAIL_ITEM.
Successfully created
List of created transcription IDs.
Invalid parameters
Internal server error
POST /api/transcription HTTP/1.1
Host: HOSTNAME:8887
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 63
{
"res_id": "1017757975109963776",
"item_type": "CALL_RECORD_ITEM"
}{
"ids": [
1017758181150949400
]
}Retrieve all AI transcription records associated with a specific resource ID (id).
The id comes from the id field of an item in either the /recordings or /voicemails list.
A single resource may have multiple transcription or analysis results, so the response is returned as an array of transcription detail objects.
The resource ID from /recordings or /voicemails to retrieve transcription records for.
Transcription details retrieved successfully
The unique ID of the transcription record.
The item ID of the original recording.
The file ID associated with the transcription.
The relative path to file url for file downloading.
/api/blobs/WexWdABcd5D4PDgzTKV3gAAAEu00WcKNzAwNTUxOTA5NzczMTQ4MTYwType of the source item. Allowed values are CALL_RECORD_ITEM or VOICE_MAIL_ITEM.
The caller number of the call.
The callee number of the call.
The unique ID of the transcription.
The unique ID of the analysis result.
AI transcription status.
- TranscriptionNotStarted
- TranscriptionQuotaLimited
- TranscriptionRunning
- TranscriptionFailed
- TranscriptionSucceeded
- AnalyzeRunning
- AnalyzeFailed
- AnalyzeSucceeded
- TranscriptionUploadFailed
- TranscriptionOtherFailed
AI transcription status description.
Display version of the AI transcription in JSON format.
AI-generated summary of the transcription.
AI transcription sentiment.
SENTIMENT_POSITIVE: positiveSENTIMENT_NEUTRAL: neutralSENTIMENT_NEGATIVE: negative
Time at which the transcription record was created.
Transcription not found
GET /api/transcription/{id} HTTP/1.1
Host: HOSTNAME:8887
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
[
{
"id": "1015828562055266304",
"item_id": "1015826629533896704",
"file_id": "1015826629588418560",
"session_id": "1015826576371093504",
"type": "CALL_RECORD_ITEM",
"transcription_id": "c40f915e-1fd0-4488-9afa-ad82c456449e",
"analyze_id": "4968fe37-490f-4e03-b337-562ea5c02e5d",
"status": "ANALYZE_SUCCEEDED",
"status_description": "",
"transcription_display": "{\n \"transcript\": \"Welcome to the voicemail service. Please enter your password then press #.\",\n \"audio_segments\": [\n {\n \"transcript\": \"Welcome to the voicemail service.\",\n \"start_time\": 0.52,\n \"end_time\": 2.44,\n \"speaker\": \"spk_0\"\n },\n {\n \"transcript\": \"Please enter your password then press #.\",\n \"start_time\": 3.16,\n \"end_time\": 5.56,\n \"speaker\": \"spk_0\"\n }\n ]\n}\n",
"intelligent_summary": "{\n \"analyze\": [\n \"Welcome to the voicemail service.\",\n \"Please enter your password then press #.\"\n ]\n}\n",
"sentiment": "SENTIMENT_POSITIVE",
"created_at": "2020-01-01T00:00:00Z",
"caller": "0001",
"callee": "777",
"file_url": "/api/blobs/R1AW1C0XTpzJ5Bdh1jz4mQAAAALw8BgO"
}
]Update transcription information for a specific transcription record.
The id parameter refers to the primary key of the transcription.
The primary key ID of the transcription record to update.
Transcription display content (JSON string).
Intelligent summary content.
AI transcription sentiment.
SENTIMENT_POSITIVE: positiveSENTIMENT_NEUTRAL: neutralSENTIMENT_NEGATIVE: negative
Transcription updated successfully
No content
POST /api/transcription/{id} HTTP/1.1
Host: HOSTNAME:8887
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 1096
{
"transcription_display": "{\n \"transcript\": \"Thanks for calling. If you know the extension of the person you would like to reach, you may dial it at anytime.\",\n \"audio_segments\": [\n {\n \"transcript\": \"Thanks for calling.\",\n \"start_time\": 0.04,\n \"end_time\": 1.04,\n \"speaker\": \"spk_0\"\n },\n {\n \"transcript\": \"If you know the extension of the person you would like to reach, you may dial it at anytime.\",\n \"start_time\": 1.24,\n \"end_time\": 5.48,\n \"speaker\": \"spk_0\"\n }\n ]\n}\n",
"intelligent_summary": "AnalyzeText Result : - {\"transcript\":\"Thanks for calling. - If you know the extension of the person you would like to reach, you may dial it at anytime.\", \"audio_segments\":[\n {\"transcript\":\"Thanks for calling.\",\"start_time\":0.04,\"end_time\":1.04,\"speaker\":\"spk_0\"},\n {\"transcript\":\"If you know the extension of the person you would like to reach, you may dial it at anytime.\",\"start_time\":1.24,\"end_time\":5.48,\"speaker\":\"spk_0\"}\n]}\n",
"sentiment": "SENTIMENT_POSITIVE"
}Transcription updated successfully
No content
Last updated
Was this helpful?