Evo Voice

<back to all web services

ListSessions

Retrieve a list of sessions

Requires Authentication
The following routes are available for this service:
GET/sessions
ListSessions Parameters:
NameParameterData TypeRequiredDescription
AccountIdsqueryList<string>NoThe account IDs for the sessions to retrieve
SearchArchivequeryboolNoWhether to search live or archived sessions
StartDatequerystringNoThe start date to retrieve usage records for (YYYY-MM-DD)
EndDatequerystringNoThe end date to retrieve usage records for (YYYY-MM-DD)
CustomerIdsqueryList<string>NoThe IDs of the customers whose sessions you want to retrieve
EndpointIdsqueryList<string>NoThe IDs of the endpoints whose sessions you want to retrieve
FromquerystringNoFilter by the from (this is a contains search)
ToquerystringNoFilter by the to (this is a contains search)
LogquerystringNoFilter by text in the log
ParentSessionIdquerystringNoFilter by parent session ID
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 .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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

GET /sessions HTTP/1.1 
Host: evovoice.io 
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
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}