Skip to content

Commit 1ed2ee0

Browse files
committed
More updates to Activity docs
GET users
1 parent f374378 commit 1ed2ee0

File tree

3 files changed

+71
-5
lines changed

3 files changed

+71
-5
lines changed

source/includes/_activity.md

Lines changed: 67 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,67 +9,133 @@ Our API is organised into two sections; Get and Post requests. Get requests allo
99
You will need an API token to access your Activity data. Tokens are managed within the Settings area of the Hub, and require Manager permissions to access and manage. All requests require an API token to authenticate you.
1010

1111
## GET Users
12-
Request: https://api.lexer.io/v1/users
12+
13+
Retrieve a list of users that have access to your Lexer account. You can use these user details to filter any of the Activity queries for agent specific metrics. Here we'll describe how you request and interpret this information.
14+
15+
**Request**
16+
```text
17+
curl -H "Content-Type: application/json" -H "Auth-Api-Token: 12345678-1234-1234-1234-123456789" -X GET https://api.lexer.io/v1/users
18+
```
19+
Simply call this endpoint `https://api.lexer.io/v1/users` using your API token and you will retrieve a list of active users in your team.
20+
21+
```json
22+
[
23+
{
24+
"id": 12345,
25+
"email": "jane@business.io",
26+
"first_name": "Jane",
27+
"last_name": "Remington",
28+
"timezone": "Australia/Sydney",
29+
"gmtoffset": 10,
30+
"sign_in_count": 76,
31+
"last_sign_in_at": "2018-03-21T06:09:01Z",
32+
"archived": false,
33+
"groups": [
34+
123,
35+
456,
36+
789,
37+
]
38+
}
39+
```
40+
41+
**Response**
42+
43+
Property | Description | Type |
44+
---------|-------------|------|
45+
id | user id | integer
46+
email | email account used to login | string
47+
first_name | first name of the user | string
48+
last_name | last name of the user | string
49+
timezone | timezone location of user | string
50+
gmtoffset | timezone offset of user | integer
51+
sign_in_count | count of logins | integer
52+
last_sign_in_at | date time of the users last login | string
53+
archived | archived flag for user | boolean
54+
groups | group id's the user is a member of | array
1355

1456

1557
## GET Groups
58+
1659
Request: https://api.lexer.io/v1/groups
1760

1861

1962
## GET Forms
63+
2064
Request: https://api.lexer.io/v1/forms
2165

2266

2367
## Summary
2468

2569
**Summary Metrics**
70+
2671
Description: count of objects handled, count of objects responded to, average response time, longest response time, count of objects that exceeded the SLA period.
72+
2773
Request: summary
2874

2975
**Summary Volume**
76+
3077
Description: daily volume of objects in each workflow state.
78+
3179
Request: states_volume
3280

3381
**Classifications (Objects)**
82+
3483
Description: classifications and their associated count of objects.
84+
3585
Request: classifications
3686

3787
**Response Time**
88+
3889
Description: daily average response time.
90+
3991
Request: response_volume
4092

4193
## Team
4294

4395
**Agent Volume**
96+
4497
Description: count of states for objects currently assigned to individual agents.
98+
4599
Request: user_volume
46100

47101
**Agent Summary**
102+
48103
Description: count of states for objects currently assigned to individual agents.
104+
49105
Request: user_summary
50106

51107
## Cases
52108

53109
**Case Summary**
110+
54111
Description:
112+
55113
Request:
56114

57115
**Case Volume**
116+
58117
Description:
118+
59119
Request:
60120

61121
**Case Classifications**
122+
62123
Description:
124+
63125
Request:
64126

65127
## NPS
66128

67129
**NPS Summary**
130+
68131
Description:
132+
69133
Request:
70134

71135
**NPS Volume**
136+
72137
Description:
138+
73139
Request:
74140

75141

source/includes/_content.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ The summary bar displays the headline metrics for your saved dive. Each of the i
102102
}
103103
}
104104
```
105-
The Live Stream Volume chart will return a data object for each filter presented in the chart. In this example we're just looking at the Nintendo filter. Within this object are the count of mentions for each time interval.
105+
The Live Stream Volume chart will return a data object for each filter presented in the chart. In this example we're just looking at the Nintendo filter. This object contains the corresponding count of mentions for each time interval.
106106

107107
Also included in this response is the total number of mentions and various other information to render this in the chart interface.
108108

source/index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ toc_footers:
1111

1212
includes:
1313
- content
14+
- activity
1415
- chatbot
15-
- activity
1616
- identities
1717

1818
search: true
@@ -26,9 +26,9 @@ We currently offer the following APIs to our clients:
2626

2727
- **Content**: read social and news content.
2828

29-
- **Chatbot**: integrate your chatbot into Engage.
29+
- **Activity**: read customer service team performance metrics.
3030

31-
- **Activity**: read customer service team performance metrics (Coming Soon).
31+
- **Chatbot**: integrate your chatbot into Engage.
3232

3333
- **Identity**: read and write Identity data.
3434

0 commit comments

Comments
 (0)