HostedSuite

<back to all web services

ListCallRecordsRequest

Retrieves call records for the specified client and date range

The following routes are available for this service:
POST/api/calls
ListCallRecordsRequest Parameters:
NameParameterData TypeRequiredDescription
StartDatebodystringNoThe start of the date range to list forms for
EndDatebodystringNoThe end of the date range to list forms for
ClientIdbodystringNoThe ID of the client whose call records you want to list
CenterIdbodystringNoThe ID of the center whose call records you want to list
CallRecordIdbodystringNoThe ID of the call record you wish to retrieve
MinCallDurationbodydoubleNoThe minimum duration of the call in seconds (talk time only)
MaxCallDurationbodydoubleNoThe maximum duration of the call in seconds (talk time only)
CallTypebodyReceptionCallTypesApi?NoFilter by call type (do not specify or use null to include both incoming and outgoing)
PagedRequestBase<TITemType> Parameters:
NameParameterData TypeRequiredDescription
PageformintNo
ItemsPerPageformintNo
DisableStatsformboolNo
SortFieldformstringNo
SortDirformSortDirNo
RequestBase<TResponse> Parameters:
NameParameterData TypeRequiredDescription
CustomerNameformstringYesThe HostedSuite Customer Name
UserNameformstringYesThe HostedSuite User Name. Data visibility and security is based on this user's permissions.
PasswordformstringYesThe HostedSuite User's Password
SortDir Enum:
Asc
Desc
CallRecordInfo Parameters:
NameParameterData TypeRequiredDescription
IdformstringNo
ClientIdformstringNo
ClientNameformstringNo
CenterIdformstringNo
StartTimeformstringNo
CallerNameformstringNo
CallerNumberformstringNo
TransferToNameformstringNo
TransferToNumberformstringNo
NotesformstringNo
DurationInSecondsformdoubleNo
RingTimeInSecondsformdoubleNo
HoldTimeInSecondsformdoubleNo
HoldCountformintNo
InteractionsformIList<CallRecordInteractionInfo>No
AnsweredByformstringNo
ServerformstringNo
TalkTimeInSecondsformdoubleNo
TransferTimeInSecondsformdoubleNo
ScreenPopformstringNo
CompletedFormIdsformIList<string>No
FlaggedformboolNo
FlagNotesformstringNo
TypeformstringNo
WorkTimeInSecondsformdoubleNo
CallRecordInteractionInfo Parameters:
NameParameterData TypeRequiredDescription
StartTimeformstringNo
TypeformstringNo
DescriptionformstringNo
ReceptionCallTypesApi Enum:
Incoming
Outgoing
PagedResponseBase<TItemType> Parameters:
NameParameterData TypeRequiredDescription
ItemsformList<TItemType>No
PageformintNo
TotalCountformlongNo
TotalPagesformintNo

To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv

HTTP + CSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /api/calls HTTP/1.1 
Host: evo.hostedsuite.com 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"StartDate":"String","EndDate":"String","ClientId":"String","CenterId":"String","CallRecordId":"String","MinCallDuration":0,"MaxCallDuration":0,"CallType":"Incoming","Page":0,"ItemsPerPage":0,"DisableStats":false,"SortField":"String","SortDir":"Asc","CustomerName":"String","UserName":"String","Password":"String"}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"Items":[{"Id":"String","ClientId":"String","ClientName":"String","CenterId":"String","StartTime":"String","CallerName":"String","CallerNumber":"String","TransferToName":"String","TransferToNumber":"String","Notes":"String","DurationInSeconds":0,"RingTimeInSeconds":0,"HoldTimeInSeconds":0,"HoldCount":0,"AnsweredBy":"String","Server":"String","TalkTimeInSeconds":0,"TransferTimeInSeconds":0,"ScreenPop":"String","Flagged":false,"FlagNotes":"String","Type":"String","WorkTimeInSeconds":0}],"Page":0,"TotalCount":0,"TotalPages":0}