Evo Voice

<back to all web services

AppGetCallHistory

Requires Authentication
The following routes are available for this service:
GET/portal/call-history
AppGetCallHistory Parameters:
NameParameterData TypeRequiredDescription
AccountIdquerystringNo
CustomerIdquerystringNo
ListRequest<T> Parameters:
NameParameterData TypeRequiredDescription
PageformintNoThe page of data to retrieve
AllformboolNoIf you want all objects to be returned. This should be used with care
CountPerPageformintNoThe number per page to retrieve
SpecificIdsformList<string>NoSpecific IDs
SortFieldformstringNoSpecify a sort field
SortOrderformSortOrdersNoSpecify a sort order
SimplifiedPagingformboolNoDisables total / page counts - improves performance. Returns only data. If there is no more data, Items will be empty array
SortOrders Enum:
Ascend
Descend
SessionInfo Parameters:
NameParameterData TypeRequiredDescription
DialStateformSessionDialStateNoThe state of the session
CallStateformSessionCallStateNoThe call state of the session
QueueStateformSessionQueueStatesNoThe queue state of the session
AccountIdformstringNoThe ID of the account associated with the flow
AccountNameformstringNoThe name of the account associated with the session
CustomerIdformstringNoThe ID of the customer this session is associated with
CustomerBreadcrumbformList<CustomerBreadcrumb>NoThe customer breadcrumb this session is associated with
CustomerNameformstringNoThe name of the customer this session is associated with
EndpointIdformstringNoThe ID of the endpoint associated with this session
EndpointNameformstringNoThe name of the endpoint associated with this session
DateCompletedformstringNoThe date the call completed
DestinationformstringNoThe destination of the session (e.g. what was entered into the Dial box)
ToAddressformstringNoThe to address if any
FromAddressformstringNoThe from address if any
FromNameformstringNoThe from name if any
AnsweredByNameformstringNoAnswered by name (if any)
QueueMemberIdformstringNoThe ID of the queue member assigned to this call
ChannelformFlowChannelsNoThe flow channel
EndedformboolNoHas the session ended
OutcomeformstringNoThe outcome of the call
CallSidformstringNoThe twilio Call SID of this session
ConsoleDataformstringNoAny console data for this session
HoldQueueNameformstringNoThe name of the hold queue for this call
HeldByUserIdformstringNoThe user ID who put this call on hold
HoldReasonformSessionHoldReasonsNoThe reason for the hold
ConferenceSidformstringNoThe SID of the conference if in a conference call
DisplayNameformstringNoThe display name for this session
LogformList<SessionLogInfo>NoThe log entries for this session
MembersformList<SessionMemberInfo>NoThe members of this session
CallbackNumberformstringNoThe callback number (typically used for SIP to User calls)
AnsweredByIdformstringNoThe ID of the endpoint that answered
DirectionformSessionDirectionsNoIs this session incoming or outgoing?
FromPhoneNumberformstringNoThe phone number that this session is coming from (used with SMS chats)
MostRecentParticipantCallSidformstringNoThe Call SID of the most recently added conference participant
WasMissedformboolNoWas this session missed?
RingQueueIdformstringNoThe ring queue that the call is currently in
EntityInfo Parameters:
NameParameterData TypeRequiredDescription
IdformstringNoThe ID of the object
DateCreatedformstringNoThe date the object was created
DateLastModifiedformstringNoThe date the object was last modified
CreatedByformstringNoThe user that created this object
LastModifiedByformstringNoThe user that last modified this object
SessionDialState Enum:
None
Active
SessionCallState Enum:
Disconnected
Ringing
Connected
Hold
Passive
SessionQueueStates Enum:
None
Queued
Ringing
Connected
Hold
Disconnected
CustomerBreadcrumb Parameters:
NameParameterData TypeRequiredDescription
IdformstringNo
NameformstringNo
FlowChannels Enum:
Voice
Chat
Fax
SessionHoldReasons Enum:
None
Transferring
SessionLogInfo Parameters:
NameParameterData TypeRequiredDescription
DateformstringNo
MessageformstringNo
SessionMemberInfo Parameters:
NameParameterData TypeRequiredDescription
IdentityformstringNo
EndpointIdformstringNo
DisplayNameformstringNo
IsOriginalMemberformboolNo
AvatarUrlformstringNo
ApplicationDataformDictionary<string, string>No
CallStateformSessionMemberCallStateNo
RoleformSessionMemberRolesNo
CallSidformstringNo
MutedformboolNo
SessionMemberCallState Enum:
None
Ringing
Connected
Hold
SessionMemberRoles Enum:
None
Caller
Agent
Transfer
SessionDirections Enum:
Incoming
Outgoing
ListResponse<AccountInfo> Parameters:
NameParameterData TypeRequiredDescription
ItemsformList<AccountInfo>NoThe items
TotalCountformintNoThe total number of items
TotalPagesformintNoThe total number of pages
HasMorePagesformboolNoAre there more pages of items? Used with simplified paging
AccountInfo Parameters:
NameParameterData TypeRequiredDescription
NameformstringNoThe name of this account
ParentAccountIdformstringNoThe ID of this account's parent
TwilioAccountSidformstringNoThe twilio account SID
AncestorIdsformList<string>NoThe ancestors of this account. Useful for breadcrumbs
MaxPhoneNumbersformintNoThe max number of phone numbers this account can have
IsBYOAformboolNoThis account is BYOA
TrustHubProfileSidformstringNoTrustHub Profile Sid
LogoIdformstringNoThe ID of the logo file
LogoUriformstringNoThe URI of the logo file
BillingSettingsformBillingSettingsNoThe billing settings for this account
BillingSettings Parameters:
NameParameterData TypeRequiredDescription
BaseformBillingItemNo
LocalNumbersformBillingItemNo
TollFreeNumbersformBillingItemNo
InboundVoiceCallsformBillingItemNo
OutboundVoiceCallsformBillingItemNo
InboundFaxesformBillingItemNo
OutboundFaxesformBillingItemNo
InboundSmsMessagesformBillingItemNo
OutboundSmsMessagesformBillingItemNo
BillingItem Parameters:
NameParameterData TypeRequiredDescription
BaseCostformdoubleNo
RawUnitMultiplierformdoubleNo
UnitCostformdoubleNo
AllowanceformintNo

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

HTTP + JSV

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

GET /portal/call-history HTTP/1.1 
Host: evovoice.io 
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	items: 
	[
		{
			dialState: None,
			callState: Disconnected,
			queueState: None,
			accountId: String,
			accountName: String,
			customerId: String,
			customerBreadcrumb: 
			[
				{
					id: String,
					name: String
				}
			],
			customerName: String,
			endpointId: String,
			endpointName: String,
			dateCompleted: String,
			destination: String,
			toAddress: String,
			fromAddress: String,
			fromName: String,
			answeredByName: String,
			queueMemberId: String,
			channel: Voice,
			ended: False,
			outcome: String,
			callSid: String,
			consoleData: String,
			holdQueueName: String,
			heldByUserId: String,
			holdReason: None,
			conferenceSid: String,
			displayName: String,
			log: 
			[
				{
					date: String,
					message: String
				}
			],
			members: 
			[
				{
					identity: String,
					endpointId: String,
					displayName: String,
					isOriginalMember: False,
					avatarUrl: String,
					applicationData: 
					{
						String: String
					},
					callState: None,
					role: None,
					callSid: String,
					muted: False
				}
			],
			callbackNumber: String,
			answeredById: String,
			direction: Incoming,
			fromPhoneNumber: String,
			mostRecentParticipantCallSid: String,
			wasMissed: False,
			ringQueueId: String,
			id: String,
			dateCreated: String,
			dateLastModified: String,
			createdBy: String,
			lastModifiedBy: String
		}
	],
	totalCount: 0,
	totalPages: 0,
	hasMorePages: False
}