This API allows users to search for activities based on various criteria. If no activities match the search criteria, the server will respond with 204 success code and an empty body. This API only supports exact match searches; partial matches are not supported. For example, if a client searches for activities where customer ID is 1080, then only activities with customer ID 1080 will be returned. Activities associated with customer ID 10801 will not be returned.
Method | URL | Description |
---|---|---|
GET | /ws/v12/interaction/activity?customer={ID} | Retrieve activities for one customer ID: {ID} |
GET | /ws/v12/interaction/activity?case={ID} | Retrieve activities for one case ID: {ID} |
GET | /ws/v12/interaction/activity?status={VAL} | Retrieve activities having status <name> with value: {VAL} |
GET | /ws/v12/interaction/activity?mode={VAL} | Retrieve activities having mode with value: {VAL} |
GET | /ws/v12/interaction/activity?assignedTo={ID} | Retrieve activities assigned to a user with ID: {ID} |
GET | /ws/v12/interaction/activity?queue={ID} | Retrieve activities for one queue ID: {ID} |
GET | /ws/v12/interaction/activity?createdDate={RANGE} | Retrieve activities for a range of creation dates with value : {RANGE} |
GET | /ws/v12/interaction/activity?lastModifiedDate={RANGE} | Retrieve activities for a range of last modification date with value: {RANGE} |
GET | /ws/v12/interaction/activity?custom.<name>={VAL} | Retrieve activities having custom attribute <name> with value: {VAL} |
GET | /ws/v12/interaction/activity?assignedUserName={VAL} | Retrieve activities assigned to a user with name: {VAL} |
GET | /ws/v12/interaction/activity?type={VAL} | Retrieve activities of type {VAL}. Note that at least one more parameter must be provided along with 'type' for filtering the activities. |
NOTE: You can mix and match one or more filter criteria listed above in any order. If more than one filter criteria are used, then response will only contain activities that satisfy all filter criteria.
Authentication is required. The client must be logged in to call this API. Each API request must contain X-egain-session request header returned by Login API.
All of the following are required:
The logged in user must have the following licenses:
Name | Description | Allowed values | Default value |
---|---|---|---|
X-egain-session | Session ID obtained from Login API response header | N/A | N/A |
Accept | Content type accepted by client | application/xml or application/json | N/A |
Accept-Language | Language locale accepted by client (used for locale specific fields in resource representation and in error responses) | Supported 'Accept-Language' header codes | default system language |
One or more query parameters listed below can be supplied per API call:
Refer to Supported Common Query Parameters in ECE REST API page for detailed description of each common parameter listed below.
Name | Description | Possible values |
---|---|---|
X-egain-session | Session ID of the current user session | N/A |
Content-Type | Media type of response body | application/xml or application/json |
Summary attributes of Activity Resource
Server can be prompted to return additional attributes of resource representation using $attribute
common query parameter.
See Values of $attribute common parameter supported by Activity Resource for the list of allowed attribute names.
200 - OK
204 - No Content
400 - Bad Request
401 - Unauthorized
403 - Forbidden
406 - Not Acceptable
500 - Internal server error
Example 1 - Search for activities by customer
Example 2 - Search for activities by case with pagination parameters
Example 3 - Search for activities by custom attribute with range parameters
Example 4 - Search for activities by status and last modified date
Example 5 - Search for activities by assigned user with sorting on last modified date
Example 6 - Search for activities by queue and when created date
Example 7 - Search for activities by mode and last modified date
Example 8 - Search for activities by status, assigned user name and last modified date
Example 9 - Search for activities by queue and type