Skip to content

Get Call Analysis

Request

This call returns information about a single call record, including transcription details if it is enabled.

Server Response

KeyDescription
wait_timeWait duration before answering in seconds (integer).
talk_timeTalk duration in seconds (integer).
webMediumMedium through which user landed.
webSourceSource used to find client website.
first_time_callerWhether this call was the first time the inbound caller had initiated a call to this bnum
outboundHow many outbound calls have previously been made to this number from this bnum
inboundHow many inbound calls have previously been made from this number to this bnum
transcriptionA grouping of transcription details if the bnum has it enabled and the transcription is complete
statusThe status of the transcription (one of wait, pending, transcribing, done, error)
summaryInformation about the whole call, including an outline, keywords and an overview
action_itemsA short list of predicted actions that should be taken as a result of the call
sentencesThe individual section of the transcription, split by speaker with details about timing and sentiment
Security
HTTP_BASIC or sessionToken
Query
call_idstringrequired

The ID of the CDR to fetch details about.

Examples:
audio
call_id=34560626
analysis
call_id=123456789
tokenstringrequired

Token received from Phase 2 of Authentication. Required only for token-based authentication.

Example:token=bzNDGPOMUu4pmGZZ0yyzvTlQZZNPnQPP
curl -i -X GET \
  -u '<username>:<password>' \
  'https://api.avanser.com/JSON?action=callAnalysis?call_id=34560626&token=bzNDGPOMUu4pmGZZ0yyzvTlQZZNPnQPP'

Responses

This call returns information about a single call record, including transcription details if it is enabled.

Bodyapplication/json
wait_timestring
talk_timestring
webMediumany
webSourceany
web_mediumstring
web_sourcestring
first_time_callerstring
outboundstring
inboundstring
transcriptionobject(Transcription)
Response
{ "wait_time": "6", "talk_time": "207", "web_medium": "cpc", "web_source": "google", "first_time_caller": "Yes", "outbound": "0", "inbound": "0", "transcription": { "status": "done", "summary": { … }, "action_items": null, "sentences": [ … ] } }