Fetch Transcripts
This API helps to fetch the transcripts for the given system generated contact ID. After successful authentication, this API sends the transcript of the corresponding given contact ID as the response.
Endpoint
Method: GET
URL: http://host:port/transcripts/<contactId>
Header Parameter
Authorization - Bearer <Token>
Path parameter
Parameter name | Mandatory/ Optional | Type | Description |
---|---|---|---|
| Mandatory | String | Internally system-generated unique identification number |
Example Request
curl --location --request GET 'http://host:port/transcripts/<contactId>'\ --header 'Authorization: Bearer 1234567890'
Example Response
{ "_id": "5f04c7d9e141961401830c16", "sessionId": "58035", "lang": "en-us", "searchLang": "en", "startTime": 1592384238000, "metadata": { "agentId": "353", "organizationId": "2", "tenantId": "1", "customerId": "205", "contactId": "4d15c7ed-049e-4038-aa2e-00648e85cf43", "categoryId": "73", "type": "batch", "contactType": "voice", "convId": "NTEStereo00103-ca", "isDiarized": true, "contactDuration": 131291 }, "turns": [ { "startOffset": 300, "endOffset": 0, "order": 1, "speaker": "Agent", "words": [ { "text": "afternoon", "confidence": 0.97, "startOffset": 300, "endOffset": 640, "pii": "B-DATE_TIME" }, { "text": "welcome", "confidence": 0.89, "startOffset": 680, "endOffset": 980 }, { "text": "new", "confidence": 0.59, "startOffset": 1000, "endOffset": 1020 }, { "text": "AE", "confidence": 0.56, "startOffset": 1100, "endOffset": 1180 }, { "text": "insurance", "confidence": 0.88, "startOffset": 1620, "endOffset": 2320 }, { "text": "my", "confidence": 0.98, "startOffset": 2220, "endOffset": 2400 }, { "text": ".", "confidence": 0.94, "startOffset": 2320, "endOffset": 2480 }, { "text": "name", "confidence": 0.98, "startOffset": 2400, "endOffset": 2560 }, { "text": "is", "confidence": 0.9, "startOffset": 2560, "endOffset": 2640 }, { "text": "John", "confidence": 0.97, "startOffset": 2640, "endOffset": 3040, "pii": "B-PERSON" }, { "text": "how", "confidence": 0.8, "startOffset": 3180, "endOffset": 3380 }, { "text": "can", "confidence": 0.96, "startOffset": 3380, "endOffset": 3500 }, { "text": "I", "confidence": 0.98, "startOffset": 3500, "endOffset": 3600 }, { "text": "help", "confidence": 0.98, "startOffset": 3600, "endOffset": 3820 }, { "text": "you", "confidence": 0.98, "startOffset": 3820, "endOffset": 4040 }, { "text": ".", "confidence": 0.94, "startOffset": 4080, "endOffset": 4240 } ] } ], "wsText": [ "afternoon welcome new AE insurance my . name is John how can I help you . ", "hi pranesh this is the fourth time I've called regarding my medical claim . not getting a clear answer on when my claim will be processed . I want somebody who can fix this . ", "I'm extremely sorry for the inconvenience . our sincere apologies and I will do my best to help you resolve this now . may I please have your claim ID please . " ], "isChunk": false, "isLastChunk": true, "externalMetadata": { "1": "77f71662-03e4-4cd3-bdaa-6344ab4f8507", "108765293": "108765293-meta", "134277311": "134277311-meta", "193901769": "193901769-meta", "205666709": "205666709-meta", "244496775": "244496775-meta" }, "__ts": 1594148864181 }
Response and Error Codes
Code | Response |
---|---|
200 | OK – The request was successful. |
401 | {“reason”:”Authorization failed”} |
500 | {“error”:”Something went wrong. Please try again later.”} |