Alvaria Cloud Reporting REST API v2.0.0
Scroll down for code samples, example requests and responses. Select a language for code samples from the tabs above or the mobile navigation menu.
The Alvaria™ Cloud Omni Reporting Real-Time Data Query API (query API) provides a RESTFUL approach to extract data from the Alvaria™ Cloud Real-Time Reporting platform. Each query (REST endpoint) is a representation of a specific view of the data within the real-time reporting platform. When accessed by the client, the results provide a snapshot of the data being requested, at that point in time. In order to utilize the Reporting APIs the reportingapi scope is required.
Base URLs:
License: License: Creative Commons Attribution 4.0 International Public License
Authentication
-
oAuth2 authentication.
- Flow: client crendentials
- Authorization URL = https://myaspect.{region}.id.aspect-cloud.net/tokenservice/oauth2/access_token
| Scope | Scope Description |
|---|---|
| reportingapi | request the reporting resource |
Data
Get ListActivity
Code samples
# You can also use wget
curl -X GET https://orgId.via.aspect-cloud.net/via/v2/organizations/{orgId}/reporting/queries/listActivity/data?contactList=string \
-H 'Accept: application/json' \
-H 'Authorization: string' \
-H 'x-api-key: string'
const fetch = require('node-fetch');
const headers = {
'Accept':'application/json',
'Authorization':'string',
'x-api-key':'string'
};
fetch('https://orgId.via.aspect-cloud.net/via/v2/organizations/{orgId}/reporting/queries/listActivity/data?contactList=string',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
GET https://orgId.via.aspect-cloud.net/via/v2/organizations/{orgId}/reporting/queries/listActivity/data?contactList=string HTTP/1.1
Host: orgid.via.aspect-cloud.net
Accept: application/json
Authorization: string
x-api-key: string
GET /via/v2/organizations/{orgId}/reporting/queries/listActivity/data
This operation returns the following List Activity Statistics:- recordsAvailable - Records available to dial - recordsAttempted - Records that were dialled at least once - recordsInActive - Records that are with the dialler - callsBusy - Records that must be re-attempted - listPenetration - Percentage of records that have been dialed at least once. - listSaturation - Saturation is the number of contact attempts divided by the number of records attempted (as a percentage) - passcountPenetration - Percentage of records that have been dialed at least once for the dynamic list - passcountSaturation - Saturation is the number of contact attempts divided by the number of records attempted (as a percentage) for the dynamic lists
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| orgId | path | string | true | Name of a customer organization |
| contactList | query | string | true | Name of a contact list on which to report. To find the contact list name, a GET /campaign/lists call must be made to retrieve a contactList collection. Within this collection, contactLists[x].name, is the name of the contact list. |
| Authorization | header | string | true | Authentication token with the value: 'Bearer {accessToken}', where {accessToken} was returned from a call to the authorization endpoint |
| x-api-key | header | string | true | Alvaria™ provided value used to track API endpoint usage |
Example responses
200 Response
{
"kind": "via#listActivity",
"contactList": "ContactList1",
"recordsAvailable": 100,
"recordsAttempted": 100,
"recordsInActive": 100,
"callsBusy": 25,
"passcountPenetration": 30,
"passcountSaturation": 70,
"listPenetration": 70,
"listSaturation": 40
}
Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Successful response | CollectionListActivityResponse |
| 400 | Bad Request | Bad Request | ErrorResponse |
| 401 | Unauthorized | Unauthorized | ErrorResponse |
| 404 | Not Found | No ListActivity exists for the provided entity Id | ErrorResponse |
| 405 | Method Not Allowed | Method Not Allowed | ErrorResponse |
| 408 | Request Timeout | Request Timeout | ErrorResponse |
| 429 | Too Many Requests | Throttled | ErrorResponse |
| 500 | Internal Server Error | Internal server error | ErrorResponse |
Get teamActivity
Code samples
# You can also use wget
curl -X GET https://orgId.via.aspect-cloud.net/via/v2/organizations/{orgId}/reporting/queries/teamActivity/data?teamId=string \
-H 'Accept: application/json' \
-H 'Authorization: string' \
-H 'x-api-key: string'
const fetch = require('node-fetch');
const headers = {
'Accept':'application/json',
'Authorization':'string',
'x-api-key':'string'
};
fetch('https://orgId.via.aspect-cloud.net/via/v2/organizations/{orgId}/reporting/queries/teamActivity/data?teamId=string',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
GET https://orgId.via.aspect-cloud.net/via/v2/organizations/{orgId}/reporting/queries/teamActivity/data?teamId=string HTTP/1.1
Host: orgid.via.aspect-cloud.net
Accept: application/json
Authorization: string
x-api-key: string
GET /via/v2/organizations/{orgId}/reporting/queries/teamActivity/data
Gets the current snapshot of activity metrics for the team instance that was requested. Note: If you see any success response with 0 rows, it might be team manager/owner not in the requested team.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| orgId | path | string | true | Name of a customer organization |
| teamId | query | string | true | Alvaria™ generated unique identifier for the team instance. The ID can be determined through the GET /via/v2/organizations/{orgId}/provisioning/teams endpoint. |
| Authorization | header | string | true | Authentication token with the value: 'Bearer {accessToken}', where {accessToken} was returned from a call to the authorization endpoint. |
| x-api-key | header | string | true | Alvaria™ provided value used to track API endpoint usage |
Example responses
200 Response
{
"kind": "via#queryDataList",
"totalItems": 2,
"rows": [
{
"teamId": "salesTeam",
"teamName": "Sales Team",
"notReadyCount": 0,
"parkCount": 0,
"parkWarningCount": 0,
"idleCount": 1,
"pendingActiveCount": 0,
"activeCount": 0,
"wrapCount": 0,
"wrapWarningCount": 0,
"multiLineCount": 0,
"holdCount": 0,
"previewCount": 0
}
]
}
Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Successful response | teamActivity |
| 400 | Bad Request | Bad Request | ErrorResponse |
| 401 | Unauthorized | Unauthorized | ErrorResponse |
| 404 | Not Found | Not Found | ErrorResponse |
| 405 | Method Not Allowed | Method Not Allowed | ErrorResponse |
| 408 | Request Timeout | Request Timeout | ErrorResponse |
| 429 | Too Many Requests | Throttled | ErrorResponse |
| 500 | Internal Server Error | Internal server error | ErrorResponse |
Get userActivity
Code samples
# You can also use wget
curl -X GET https://orgId.via.aspect-cloud.net/via/v2/organizations/{orgId}/reporting/queries/userActivity/data?teamId=string \
-H 'Accept: application/json' \
-H 'Authorization: string' \
-H 'x-api-key: string'
const fetch = require('node-fetch');
const headers = {
'Accept':'application/json',
'Authorization':'string',
'x-api-key':'string'
};
fetch('https://orgId.via.aspect-cloud.net/via/v2/organizations/{orgId}/reporting/queries/userActivity/data?teamId=string',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
GET https://orgId.via.aspect-cloud.net/via/v2/organizations/{orgId}/reporting/queries/userActivity/data?teamId=string HTTP/1.1
Host: orgid.via.aspect-cloud.net
Accept: application/json
Authorization: string
x-api-key: string
GET /via/v2/organizations/{orgId}/reporting/queries/userActivity/data
Gets the current snapshot of user activity metrics for the team instance that was requested. Note: If you see any success response with 0 rows, it might be team manager/owner not in the requested team.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| orgId | path | string | true | Name of a customer organization |
| teamId | query | string | true | Alvaria™ generated unique identifier for the team instance. The ID can be determined through the GET /via/v2/organizations/{orgId}/provisioning/teams endpoint. |
| Authorization | header | string | true | Authentication token with the value: 'Bearer {accessToken}', where {accessToken} was returned from a call to the authorization endpoint. |
| tzOffset | query | string | false | The timezone offset, from UTC, to be applied (using ISO-8601 notation). Examples: '+01:00','+02','-00:30'. This string can potentially contain special chars (ex: '+'), so it's advisable to encode the value being passed in. Accepted formats are : 'Z- for UTC', '+h', '+hh', '+hh:mm', '-hh:mm', '+hhmm', '-hhmm', '-hhmm', '+hh:mm:ss', '-hh:mm:ss', '+hhmmss', '-hhmmss' |
| x-api-key | header | string | true | Alvaria™ provided value used to track API endpoint usage |
Example responses
200 Response
{
"kind": "via#queryDataList",
"totalItems": 2,
"rows": [
{
"userId": "Keran123",
"teamId": "salseTeam",
"preferredName": "Keran Bloggs",
"teamName": "Sales team",
"signOnTime": "2018-02-07T11:29:46Z",
"stateId": "active",
"stateName": "Active",
"stateStartTime": "2018-02-07T11:29:46Z",
"reasonId": "break",
"reasonName": "",
"interactionCount": 1,
"signOnTimeLocal": "2018-02-07T11:29:46-07:00",
"stateStartTimeLocal": "2018-02-07T11:29:46-07:00",
"stateDur": 5,
"signOnDur": 664
}
]
}
Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Successful response | userActivity |
| 400 | Bad Request | Bad Request | ErrorResponse |
| 401 | Unauthorized | Unauthorized | ErrorResponse |
| 404 | Not Found | No ListActivity exists for the provided entity Id | ErrorResponse |
| 405 | Method Not Allowed | Method Not Allowed | ErrorResponse |
| 408 | Request Timeout | Request Timeout | ErrorResponse |
| 429 | Too Many Requests | Throttled | ErrorResponse |
| 500 | Internal Server Error | Internal server error | ErrorResponse |
Get channelActivity
Code samples
# You can also use wget
curl -X GET https://orgId.via.aspect-cloud.net/via/v2/organizations/{orgId}/reporting/queries/channelActivity/data?workTypeId=string \
-H 'Accept: application/json' \
-H 'Authorization: string' \
-H 'x-api-key: string'
const fetch = require('node-fetch');
const headers = {
'Accept':'application/json',
'Authorization':'string',
'x-api-key':'string'
};
fetch('https://orgId.via.aspect-cloud.net/via/v2/organizations/{orgId}/reporting/queries/channelActivity/data?workTypeId=string',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
GET https://orgId.via.aspect-cloud.net/via/v2/organizations/{orgId}/reporting/queries/channelActivity/data?workTypeId=string HTTP/1.1
Host: orgid.via.aspect-cloud.net
Accept: application/json
Authorization: string
x-api-key: string
GET /via/v2/organizations/{orgId}/reporting/queries/channelActivity/data
Gets the current snapshot of channel activity metrics for the Worktype instance that was requested.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| orgId | path | string | true | Name of a customer organization |
| workTypeId | query | string | true | Alvaria™ generated unique identifier for the Worktype instance. The ID can be determined through the GET /via/v2/organizations/{orgId}/provisioning/workTypes endpoint. |
| Authorization | header | string | true | Authentication token with the value: 'Bearer {accessToken}', where {accessToken} was returned from a call to the authorization endpoint. |
| x-api-key | header | string | true | Alvaria™ provided value used to track API endpoint usage |
Example responses
200 Response
{
"kind": "via#queryDataList",
"totalItems": 2,
"rows": [
{
"interactionTypeId": "InboundEmail",
"channelTypeId": "email",
"workTypeId": "worktype30_id",
"interactionTypeName": "Inbound Email",
"channelTypeName": "Email",
"workTypeName": "workType30",
"dialCount": 0,
"activeCount": 0,
"queueCount": 0,
"selfServiceCount": 0,
"previewCount": 0,
"holdCount": 0,
"inactiveCount": 0,
"wrapCount": 0,
"ringCount": 0,
"longestWaitingQueueTime": "2018-02-07T11:29:46Z",
"selfServiceDur": 5,
"queueDur": 5,
"activeDur": 0,
"previewDur": 0,
"maxQueueDur": 0
}
]
}
Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Successful response | channelActivity |
| 400 | Bad Request | Bad Request | ErrorResponse |
| 401 | Unauthorized | Unauthorized | ErrorResponse |
| 404 | Not Found | No ListActivity exists for the provided entity Id | ErrorResponse |
| 405 | Method Not Allowed | Method Not Allowed | ErrorResponse |
| 408 | Request Timeout | Request Timeout | ErrorResponse |
| 429 | Too Many Requests | Throttled | ErrorResponse |
| 500 | Internal Server Error | Internal server error | ErrorResponse |
Get usersList
Code samples
# You can also use wget
curl -X GET https://orgId.via.aspect-cloud.net/via/v2/organizations/{orgId}/reporting/presence/users/data?state=LoggedOn \
-H 'Accept: application/json' \
-H 'Authorization: string' \
-H 'x-api-key: string'
const fetch = require('node-fetch');
const headers = {
'Accept':'application/json',
'Authorization':'string',
'x-api-key':'string'
};
fetch('https://orgId.via.aspect-cloud.net/via/v2/organizations/{orgId}/reporting/presence/users/data?state=LoggedOn',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
GET https://orgId.via.aspect-cloud.net/via/v2/organizations/{orgId}/reporting/presence/users/data?state=LoggedOn HTTP/1.1
Host: orgid.via.aspect-cloud.net
Accept: application/json
Authorization: string
x-api-key: string
GET /via/v2/organizations/{orgId}/reporting/presence/users/data
Used to get a list of logged in users associated with a workType and also used to get the list of logged in users regardless of workType.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| state | query | string | true | Logged state of the agent, LoggedOn -1 |
| workTypeId | query | string | false | 'Alvaria™ generated unique ID for a work type.example: shortname.104.' |
| orgId | path | string | true | Name of a customer organization. |
| Authorization | header | string | true | Authentication token with the value: 'Bearer {accessToken}', where {accessToken} was returned from a call to the authorization endpoint |
| x-api-key | header | string | true | Alvaria™ provided value used to track API endpoint usage. |
Enumerated Values
| Parameter | Value |
|---|---|
| state | LoggedOn |
Example responses
200 Response
{
"kind": "via#presenceDataList",
"users": [
{
"userId": "Keran123",
"firstName": "Mahesh",
"lastName": "Kumar",
"ehubSessionId": 2323,
"emailAddress": "agent@alvaria.com"
}
],
"totalItems": 1
}
Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Success - OK | UsersCollection |
| 400 | Bad Request | Client Error - Bad Request | ErrorResponse |
| 401 | Unauthorized | Client Error - Unauthorized | None |
| 404 | Not Found | Client Error - Not Found | ErrorResponse |
| 405 | Method Not Allowed | Client Error - Method Not Allowed | ErrorResponse |
| 429 | Too Many Requests | Client Error - Too Many Requests | ErrorResponse |
| 500 | Internal Server Error | Server Error - Internal Server Error | ErrorResponse |
| 503 | Service Unavailable | Server Error - Service Unavailable | ErrorResponse |
Response Headers
| Status | Header | Type | Format | Description |
|---|---|---|---|---|
| 200 | Access-Control-Allow-Origin | string | none |
Schemas
CollectionListActivityResponse
{
"kind": "via#listActivity",
"contactList": "ContactList1",
"recordsAvailable": 100,
"recordsAttempted": 100,
"recordsInActive": 100,
"callsBusy": 25,
"passcountPenetration": 30,
"passcountSaturation": 70,
"listPenetration": 70,
"listSaturation": 40
}
Properties
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| kind | string | false | none | Identifier used by Alvaria™ Cloud components to serialize the payload of the results |
| contactList | string | false | none | Name of a contact list. This is used to get records associated with the specified contact list name. |
| recordsAvailable | integer | false | none | Records available to dial for the dynamic list |
| recordsAttempted | integer | false | none | Records that were dialed at least once |
| recordsInActive | integer | false | none | Records that are with the dialer |
| callsBusy | integer | false | none | Records that must be re-attempted |
| passcountPenetration | integer | false | none | Percentage of records that have been dialed at least once for the dynamic lists |
| passcountSaturation | integer | false | none | Saturation is the number of contact attempts divided by the number of records attempted (as a percentage) for the dynamic lists |
| listPenetration | integer | false | none | Percentage of records that have been dialed at least once for the static list |
| listSaturation | integer | false | none | Saturation is the number of contact attempts divided by the number of records attempted (as a percentage) for the static list |
teamActivity
{
"kind": "via#queryDataList",
"totalItems": 2,
"rows": [
{
"teamId": "salesTeam",
"teamName": "Sales Team",
"notReadyCount": 0,
"parkCount": 0,
"parkWarningCount": 0,
"idleCount": 1,
"pendingActiveCount": 0,
"activeCount": 0,
"wrapCount": 0,
"wrapWarningCount": 0,
"multiLineCount": 0,
"holdCount": 0,
"previewCount": 0
}
]
}
Properties
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| kind | string | false | none | Identifier used by Alvaria™ Cloud components to serialize the payload of the results |
| totalItems | integer | false | none | The total number of rows of data in the return response. |
| rows | [teamActivityRows] | false | none | none |
teamActivityRows
{
"teamId": "salesTeam",
"teamName": "Sales Team",
"notReadyCount": 0,
"parkCount": 0,
"parkWarningCount": 0,
"idleCount": 1,
"pendingActiveCount": 0,
"activeCount": 0,
"wrapCount": 0,
"wrapWarningCount": 0,
"multiLineCount": 0,
"holdCount": 0,
"previewCount": 0
}
Properties
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| teamId | string | false | none | Alvaria™ generated unique identifier for the team instance. The ID can be determined through the GET /via/v2/organizations/{orgId}/provisioning/teams endpoint. |
| teamName | string | false | none | A user friendly name of the Team. |
| notReadyCount | integer | false | none | Number of users that are currently in the ’not ready’ state. |
| parkCount | integer | false | none | Number of users that are currently in the ‘park’ state. |
| parkWarningCount | integer | false | none | Number of users that are currently in the ‘park warning’ state. |
| idleCount | integer | false | none | Number of users that are currently in the ‘idle’ state. |
| pendingActiveCount | integer | false | none | Number of users that are currently in the ‘pendingActive’ state. |
| activeCount | integer | false | none | Number of users that are currently in the ‘active’ state and are handling an interaction. |
| wrapCount | integer | false | none | Number of users that are currently in the ‘wrap’ state. |
| wrapWarningCount | integer | false | none | Number of users that are currently in the ‘wrapwarning’ state. |
| multiLineCount | integer | false | none | Number of users that are currently handling more than one interaction. |
| holdCount | integer | false | none | Number of users that are currently in the 'hold' state. |
| previewCount | integer | false | none | Number of users that are currently in the 'preview' state. |
userActivity
{
"kind": "via#queryDataList",
"totalItems": 2,
"rows": [
{
"userId": "Keran123",
"teamId": "salseTeam",
"preferredName": "Keran Bloggs",
"teamName": "Sales team",
"signOnTime": "2018-02-07T11:29:46Z",
"stateId": "active",
"stateName": "Active",
"stateStartTime": "2018-02-07T11:29:46Z",
"reasonId": "break",
"reasonName": "",
"interactionCount": 1,
"signOnTimeLocal": "2018-02-07T11:29:46-07:00",
"stateStartTimeLocal": "2018-02-07T11:29:46-07:00",
"stateDur": 5,
"signOnDur": 664
}
]
}
Properties
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| kind | string | false | none | Identifier used by Alvaria™ Cloud components to serialize the payload of the results |
| totalItems | integer | false | none | The total number of rows of data in the return response. |
| rows | [userActivityRow] | false | none | none |
userActivityRow
{
"userId": "Keran123",
"teamId": "salseTeam",
"preferredName": "Keran Bloggs",
"teamName": "Sales team",
"signOnTime": "2018-02-07T11:29:46Z",
"stateId": "active",
"stateName": "Active",
"stateStartTime": "2018-02-07T11:29:46Z",
"reasonId": "break",
"reasonName": "",
"interactionCount": 1,
"signOnTimeLocal": "2018-02-07T11:29:46-07:00",
"stateStartTimeLocal": "2018-02-07T11:29:46-07:00",
"stateDur": 5,
"signOnDur": 664
}
Properties
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| userId | string | false | none | Alvaria™ generated unique identifier for the user instance. The ID can be determined through the GET /via/v2/organizations/{orgId}/provisioning/users endpoint. |
| teamId | string | false | none | Alvaria™ generated unique identifier for the team instance. The ID can be determined through the GET /via/v2/organizations/{orgId}/provisioning/teams endpoint. |
| preferredName | string | false | none | The name of the user in the following format 'FirstName LastName'. |
| teamName | string | false | none | A user friendly name of the Team. |
| signOnTime | string(date-time) | false | none | Date and time the user signed on, in UTC, specified in the ISO 8601 format (yyyy-MM-ddTHH:mm:ssZ). |
| stateId | string | false | none | An Alvaria™ internal identifier for the current state that the user is in. This value may change in future versions. This value may change in future versions so do not store persistently. |
| stateName | string | false | none | A user friendly static name for the current state that the user is in. This value may change in future versions so do not store persistently. |
| stateStartTime | string(date-time) | false | none | Date and time that the last change in state occurred, in UTC time, specified in the ISO-8601 format (yyyy-MM-ddTHH:mm:ssZ).If the user is handling multiple interactions, this field will reflect the date and time that the last state change event was received. |
| reasonId | string | false | none | The reason code identifier for the reason that the user is in a particular state. Reason codes are supported for the 'notready', 'park' and 'loggedout' states. This value may change in future versions so do not store persistently. |
| reasonName | string | false | none | A user friendly name for the reason that the user is in a particular state. |
| interactionCount | integer | false | none | The number of interactions the user is currently handling. |
| signOnTimeLocal | string(date-time) | false | none | Date and time that the the user signed on, with the offset that was specified in tzOffset applied, specified in the ISO-8601 format (yyyy-MM-ddTHH:mm:ssTZD). |
| stateStartTimeLocal | string(date-time) | false | none | Date and time that the last change in state occurred, with the offset that was specified in tzOffset applied, specified in the ISO-8601 format (yyyy-MM-ddTHH:mm:ssTZD). If the user is handling multiple interactions, this field will reflect the date and time that the last state change event was received. |
| stateDur | integer | false | none | Duration in seconds that the interaction has been in the current state. |
| signOnDur | integer | false | none | Duration in seconds since the user signed on into Alvaria™ Cloud |
Enumerated Values
| Property | Value |
|---|---|
| stateId | uninitialized |
| stateId | active |
| stateId | exception |
| stateId | held |
| stateId | idle |
| stateId | loggedoff |
| stateId | loggedon |
| stateId | multiline |
| stateId | notready |
| stateId | park |
| stateId | parkwarning |
| stateId | pendingactive |
| stateId | preview |
| stateId | reserved |
| stateId | wrap |
| stateId | wrapwarning |
| stateId | usercleared |
| stateName | Uninitialized |
| stateName | Active |
| stateName | Exception |
| stateName | Held |
| stateName | Idle |
| stateName | Logged Off |
| stateName | Logged On |
| stateName | Multiline |
| stateName | Not Ready |
| stateName | Park |
| stateName | Park Warning |
| stateName | Pending Active |
| stateName | Preview |
| stateName | Reserved |
| stateName | Wrap |
| stateName | Wrap Warning |
| stateName | User Cleared |
channelActivity
{
"kind": "via#queryDataList",
"totalItems": 2,
"rows": [
{
"interactionTypeId": "InboundEmail",
"channelTypeId": "email",
"workTypeId": "worktype30_id",
"interactionTypeName": "Inbound Email",
"channelTypeName": "Email",
"workTypeName": "workType30",
"dialCount": 0,
"activeCount": 0,
"queueCount": 0,
"selfServiceCount": 0,
"previewCount": 0,
"holdCount": 0,
"inactiveCount": 0,
"wrapCount": 0,
"ringCount": 0,
"longestWaitingQueueTime": "2018-02-07T11:29:46Z",
"selfServiceDur": 5,
"queueDur": 5,
"activeDur": 0,
"previewDur": 0,
"maxQueueDur": 0
}
]
}
Properties
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| kind | string | false | none | Identifier used by Alvaria™ Cloud components to serialize the payload of the results |
| totalItems | integer | false | none | The total number of rows of data in the return response. |
| rows | [channelActivityRow] | false | none | none |
channelActivityRow
{
"interactionTypeId": "InboundEmail",
"channelTypeId": "email",
"workTypeId": "worktype30_id",
"interactionTypeName": "Inbound Email",
"channelTypeName": "Email",
"workTypeName": "workType30",
"dialCount": 0,
"activeCount": 0,
"queueCount": 0,
"selfServiceCount": 0,
"previewCount": 0,
"holdCount": 0,
"inactiveCount": 0,
"wrapCount": 0,
"ringCount": 0,
"longestWaitingQueueTime": "2018-02-07T11:29:46Z",
"selfServiceDur": 5,
"queueDur": 5,
"activeDur": 0,
"previewDur": 0,
"maxQueueDur": 0
}
Properties
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| interactionTypeId | string | false | none | An Alvaria™ internal identifier for the interaction type that interactions are associated with. This value may change in future versions. |
| channelTypeId | string | false | none | An Alvaria™ internal identifier for the channel (media) type that interactions are associated with. This value may change in future versions. |
| workTypeId | string | false | none | An Alvaria™ internal identifier for the worktype entity instance. This value may change in future versions. |
| interactionTypeName | string | false | none | A static predefined user friendly name for the interaction type. |
| channelTypeName | string | false | none | A static predefined name for the channel type. This value may change in future versions so do not store persistently. |
| workTypeName | string | false | none | A user friendly name for the worktype. |
| dialCount | integer | false | none | Number of interactions associated with this worktype that are currently dialing. |
| activeCount | integer | false | none | Number of interactions associated with this worktype that are currently active. |
| queueCount | integer | false | none | Number of interactions associated with this worktype that are currently queued. |
| selfServiceCount | integer | false | none | Number of interactions associated with this worktype that are currently in the self service subsystem. |
| previewCount | integer | false | none | Number of users that are currently previewing information before initiating a call to the customer |
| holdCount | integer | false | none | Number of interactions associated with this worktype that are currently on hold. |
| inactiveCount | integer | false | none | Number of interactions associated with this worktype that are currently inactive. |
| wrapCount | integer | false | none | Number of interactions associated with this worktype that are currently in wrap. |
| ringCount | integer | false | none | Number of interactions being offered to an user/ringing |
| longestWaitingQueueTime | string(date-time) | false | none | Date and time of the interaction with the longest queue time (currently), of all the interactions in the queue, in UTC and specified in ISO 8601 format (yyyy-MM-ddTHH:mm:ssZ) |
| selfServiceDur | integer | false | none | Duration in seconds that denotes the total duration of all the interactions currently in self service. |
| queueDur | integer | false | none | Duration in seconds that denotes the total duration of all the interactions currently in queue. |
| activeDur | integer | false | none | Duration in seconds that denotes the total duration of all the interactions currently active. |
| previewDur | integer | false | none | Duration in seconds that denotes the total duration of all the interactions currently in preview. |
| maxQueueDur | integer | false | none | The interaction with the longest queue time (currently), of all the interactions in the queue. |
Enumerated Values
| Property | Value |
|---|---|
| interactionTypeId | inboundacd |
| interactionTypeId | inbounddid |
| interactionTypeId | inboundconsultation |
| interactionTypeId | inboundinternal |
| interactionTypeId | inboundivr |
| interactionTypeId | outboundaod |
| interactionTypeId | outboundconsultation |
| interactionTypeId | outboundconsultationtransfer |
| interactionTypeId | outboundmakecall |
| interactionTypeId | conference |
| interactionTypeId | inboundipniq |
| interactionTypeId | inboundworkflow |
| interactionTypeId | inboundchat |
| interactionTypeId | inboundim |
| interactionTypeId | inboundemail |
| interactionTypeId | inboundcti |
| interactionTypeId | inboundsms |
| interactionTypeId | manualoutboundemail |
| channelTypeId | chat |
| channelTypeId | |
| channelTypeId | sms |
| channelTypeId | voice |
| interactionTypeName | Inbound Acd |
| interactionTypeName | Inbound Did |
| interactionTypeName | Inbound Consultation |
| interactionTypeName | Inbound Internal |
| interactionTypeName | Inbound Ivr |
| interactionTypeName | Outbound Aod |
| interactionTypeName | Outbound Consultation |
| interactionTypeName | Outbound Consultation Transfer |
| interactionTypeName | Outbound Makecall |
| interactionTypeName | Conference |
| interactionTypeName | Inbound Ipniq |
| interactionTypeName | Inbound Workflow |
| interactionTypeName | Inbound Chat |
| interactionTypeName | Inbound IM |
| interactionTypeName | Inbound Email |
| interactionTypeName | Inbound CTI |
| interactionTypeName | Inbound SMS |
| interactionTypeName | Manual Outbound Email |
| channelTypeName | Chat |
| channelTypeName | |
| channelTypeName | Sms |
| channelTypeName | Voice |
ErrorResponse
{
"error": "Bad Request"
}
Properties
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| error | string | false | none | none |
ErrorResponseObj
{
"code": 404,
"message": "Not Found",
"errors": "errors"
}
Properties
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| code | integer | false | none | Error code |
| message | string | false | none | Error message |
| errors | [ErrorResponseItem] | false | none | none |
ErrorResponseItem
{
"scope": "scope",
"reason": "reason",
"message": "message"
}
Properties
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| scope | string | false | none | Scope of the error |
| reason | string | false | none | Reason for the error |
| message | string | false | none | Error message |
UsersCollection
{
"kind": "via#presenceDataList",
"users": [
{
"userId": "Keran123",
"firstName": "Mahesh",
"lastName": "Kumar",
"ehubSessionId": 2323,
"emailAddress": "agent@alvaria.com"
}
],
"totalItems": 1
}
Properties
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| kind | string | true | none | Identifier used by Alvaria™ Cloud components to serialize the payload of the results. |
| users | [userRow] | true | none | none |
| totalItems | integer | true | none | The total number of Entity instances existing in the system. |
userRow
{
"userId": "Keran123",
"firstName": "Mahesh",
"lastName": "Kumar",
"ehubSessionId": 2323,
"emailAddress": "agent@alvaria.com"
}
userRow
Properties
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| userId | string | true | none | Alvaria™ generated unique identifier for the user instance. |
| firstName | string | true | none | First name of the user instance from the user’s My Account profile. |
| lastName | string | true | none | Last name of the user instance from the user’s My Account profile. |
| ehubSessionId | string | true | none | Alvaria™ generated unique identifier for the session with the Alvaria™ Cloud system. |
| emailAddress | string | false | none | Email address of the user instance from the user’s My Account profile. |