For the complete documentation index, see llms.txt. This page is also available as Markdown.

AI Transcription

Create AI Transcription

post

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.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
res_idstringRequired

ID from a /voicemails or /recordings item used to create the transcription.

item_typestring · enumRequired

Type of the source item. Allowed values are CALL_RECORD_ITEM or VOICE_MAIL_ITEM.

Possible values:
Responses
200

Successfully created

application/json
idsinteger[]Optional

List of created transcription IDs.

post/transcription
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
  ]
}

Get AI Transcription Details

get

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.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
idstringRequired

The resource ID from /recordings or /voicemails to retrieve transcription records for.

Responses
200

Transcription details retrieved successfully

application/json
idstringRead-onlyOptional

The unique ID of the transcription record.

item_idstringOptional

The item ID of the original recording.

file_idstringOptional

The file ID associated with the transcription.

file_urlstringRead-onlyOptional

The relative path to file url for file downloading.

Example: /api/blobs/WexWdABcd5D4PDgzTKV3gAAAEu00WcK
session_idstringOptionalExample: NzAwNTUxOTA5NzczMTQ4MTYw
typestring · enumOptional

Type of the source item. Allowed values are CALL_RECORD_ITEM or VOICE_MAIL_ITEM.

Possible values:
callerstring · max: 256Optional

The caller number of the call.

calleestring · max: 256Optional

The callee number of the call.

transcription_idstringOptional

The unique ID of the transcription.

analyze_idstringOptional

The unique ID of the analysis result.

statusstring · enumOptional

AI transcription status.

  • TranscriptionNotStarted
  • TranscriptionQuotaLimited
  • TranscriptionRunning
  • TranscriptionFailed
  • TranscriptionSucceeded
  • AnalyzeRunning
  • AnalyzeFailed
  • AnalyzeSucceeded
  • TranscriptionUploadFailed
  • TranscriptionOtherFailed
Possible values:
status_descriptionstringOptional

AI transcription status description.

transcription_displaystringOptional

Display version of the AI transcription in JSON format.

intelligent_summarystringOptional

AI-generated summary of the transcription.

sentimentstring · enumOptional

AI transcription sentiment.

  • SENTIMENT_POSITIVE: positive
  • SENTIMENT_NEUTRAL: neutral
  • SENTIMENT_NEGATIVE: negative
Possible values:
created_atstring · date-timeOptional

Time at which the transcription record was created.

get/transcription/{id}
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 AI Transcription

post

Update transcription information for a specific transcription record. The id parameter refers to the primary key of the transcription.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
idstringRequired

The primary key ID of the transcription record to update.

Body
transcription_displaystringOptional

Transcription display content (JSON string).

intelligent_summarystringOptional

Intelligent summary content.

sentimentstring · enumOptional

AI transcription sentiment.

  • SENTIMENT_POSITIVE: positive
  • SENTIMENT_NEUTRAL: neutral
  • SENTIMENT_NEGATIVE: negative
Possible values:
Responses
200

Transcription updated successfully

No content

post/transcription/{id}
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"
}
200

Transcription updated successfully

No content

Last updated

Was this helpful?