Skip to content

Request CDR

Request

Retrieve a list of call detail records.

  • Returns 1000 entries by default and a maximum of 10,000 entries.
  • Default for date from and date to is today.
  • Features could be any additional routing configured on the backend. Could be call outcome, IVR, call survey, selected Post Code for PCP...etc.
  • If any of the additional parameters are ommitted from the call, the default value is considered.
  • stt feature requires your Account to be enabled for Speech To Text, Please contact AVANSER Support for more informations about speech to text.
  • subclient feature requires your Account to be enabled for Divisions & SubClients access, Please contact AVANSER Support for more informations about Division Configuration.
  • sentiment feature displays the sentiment analysis.

Server Response

KeyDescription
idUnique call identification number (integer 11 digits).
dateYYYY-MM-DD HH:MM:SS (AEST/AEDT).
durationCall duration in seconds (integer).
answer_numberAnswer Point Number in international format (Integer 8-15 digits).
answer_nameAnswer Point Name (50 alphanumeric).
answer_folderA unique identifier for the answerpoint.
target_numberCall Tracking Number (integer 8-15 digits).
target_nameAd Source Name (50 alphanumeric).
caller_numberOriginating Caller ID in international format (integer 8-15 digits).
countryCountry code of the originating caller (2 characters).
stateOriginating caller state/territory (5 alphanumeric).
locationLocation of originating caller (50 alphanumeric).
status_code2 digits (see Call Completion Codes table).
status_name20 alphanumeric (see Call Completion Codes table).
audioMessage/Recording – audio file type.
audioURLURL to the audio file.
spooler_idUnique ID for extra referrer parameters that can be obtained by calling the getC2C method (set to 0 if no extra parameters exist).
evaluation_xxAnswers to the evaluation question, XX is the ID of the evaluation question (refer to action Evaluation Details for more details).
feature01 - feature09Features as configured.
feature10AVANSER reserved field.
audioUrlurl of call recording.
webReferrerReferring website URL.
webURLClient website URL.
webLandingLanding page URL on client website.
webConversionOnline ad campaign where call was generated.
webKeywordKeywords(s) typed in by user to find campaign.
webMediumMedium through which user landed.
webSourceSource used to find client website.
IPIP address of the user.
IPlocationIP location of the user.
connection_timeYYYY-MM-DD HH:MM:SS (AEST Time).
connection_durationSeconds passed between call landing and call connection.
date_stopCall stop date and time.
wpcidAdSource's wpcid.
masterIdAdSource's masterId.
call_notesArray containing all call notes.
cdr_labelLabel associated with the CDR
cdr_tagTag associated with the CDR
custom_idCustomers can set this field on a tracking number for their internal system reference (only provided when show_custom = 'yes')
custom_groupCustomers can set this field on a tracking number for their internal tracking (only provided when show_custom = 'yes')
memoCustomers can set this field on a tracking number for their own notes (only provided when show_custom = 'yes')
dealerCodeDealer Code associated with the CDR, for ARTIC calls this is going to be the Agent Code
subclientCan be either a subclient available in your Division or keyword all to fetch all configured subclients.
sttSpeech To Text is set to 'yes' fetches transcribed data, if available.
sentiment_scoreOverall score for the call.
sentiment_agentSingle sentiment score for the the agent.
sentiment_callerSingle sentiment score for the caller.
sentiment_talkmostagent, caller, balanced based on who spoke the most.
sentiment_communicationQuality of communication.
sentiment_conductAgent conduct.
sentiment_politenessAssesses the politeness of the agent. The agent is scored based on their use of phrases associated with politeness.
sentiment_highriskFlags if the call was High Risk.
sentiment_badattitudeAssesses the attitude of the agent. The agent is scored based on their use of phrases that either indicate an unwillingness to help or intention to insult the caller.
sentiment_slangAssesses whether the agent used colloquial language in the call. The agent is scored based on their use of slang phrases.
sentiment_profanityAssesses whether the agent used profanities in the call. The agent is scored based on their use of profane phrases.
Security
HTTP_BASIC or sessionToken
Query
account_idstringrequired

Provided by AVANSER. Required only for token-based authentication.

Example:account_id=example.user
tokenstringrequired

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

Example:token=bzNDGPOMUu4pmGZZ0yyzvTlQZZNPnQPP
date_fromstring

Start Date.

Example:date_from=2017-10-27
date_tostring

End Date.

Example:date_to=2017-10-28
last_idstring

Call ID of the last CDR result – Sends records for call IDs higher than the one specified.

Example:last_id=34560626
limitnumber

Maximum number of CDRs in reply (max 10,000).

Default:1000
bnumstring

If provided, will restrict response to calls to that specific number. Number to be provided in the following format: +CC-NNNNNNNN where CC is country code (e.g. 61, 64, 65 etc), -NNNNNNNN is telephone number including area code.

Example:bnum=+61-0290081234 (Australia landline) | +65-66641234 (Singapore landline)
evaluationsstring

Include the answers to the call evaluations.

Default:"no"
Enum:"yes""no"
featuresstring

Include additional routing feature values. Please note that feature configurations vary from client to client. Contact Support for more information.

Default:"no"
Enum:"yes""no"
wavstring

Returns the url of the call recording.

Default:"no"
Enum:"yes""no"
webstring

Returns extra web log details.

Default:"no"
Enum:"yes""no"
detailedstring

Returns all call details, without needing to specify the parameters: features, wav, web, stt, localtime, and sentiment.

Default:"no"
Enum:"yes""no"
localtimestring

Returns all dates and times as Answer Point time zone is configured on the system.

Default:"no"
Enum:"yes""no"
cdr_labelstring

If provided, will restrict response to calls to that specific label

cdr_tagstring

If provided, will restrict response to calls to that specific tag

dealerCodestring

If provided, will restrict response to calls to that specific dealerCode

sttstring

If set, returns call transcribed. When this feature is enabled json response will include additional speech to text results.

Default:"no"
Enum:"yes""no"
subclientstring

If provided, will fetch records for all your subclients. When this feature is enabled json response will include additional fields "subclient_name" and "subclient_id"

sentimentstring

If set, returns call sentiment. When this feature is enabled json response will include additional sentiment results. Using only flag will display calls that only have a sentiment analysis.

Default:"no"
Enum:"yes""only""no"
call_statusnumber

If provided, will restrict calls to that specific status.

Enum:0123456
adtagstring

If provided, will restrict calls to adsources with that specific tag

orderstring

If set, reverses the sorting of the records

Default:"first"
Enum:"first""last"
client_idnumber

When using Http Basic Authentication over SSL this parameter allows the user to select what client the request is for.

show_customstring

If provided, will return the additional customer defined fields. This includes custom id, custom group and memo fields.

Default:"no"
Enum:"yes""no"
curl -i -X GET \
  -u '<username>:<password>' \
  'https://api.avanser.com/JSON?action=getCDR?account_id=example.user&token=bzNDGPOMUu4pmGZZ0yyzvTlQZZNPnQPP&date_from=2017-10-27&date_to=2017-10-28&last_id=34560626&limit=1000&bnum=%2B61-0290081234%20(Australia%20landline)%20%7C%20%2B65-66641234%20(Singapore%20landline)&evaluations=yes&features=yes&wav=yes&web=yes&detailed=yes&localtime=yes&cdr_label=string&cdr_tag=string&dealerCode=string&stt=yes&subclient=string&sentiment=yes&call_status=0&adtag=string&order=first&client_id=0&show_custom=yes'

Responses

Retrieve a list of call detail records.

Body
resultsinteger
Example:1
callsArray of objects(CallDetailRecord)
Response
{ "results": 1, "calls": [ { … } ] }