This API allows a user to retrieve one or more activities identified by activity IDs. To provide multiple IDs, a comma separated string must be passed in the request URI. A maximum of 75 IDs are allowed per request. Neither pagination nor range query parameters are supported by this API.
| Method | URL | Description | 
|---|---|---|
| GET | /ws/v12/interaction/activity/{IDs} | Retrieve activities by their IDs. {IDs}: a comma separated string of activity IDs. | 
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/xmlorapplication/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 | 
| Name | Description | Allowed values | Default value | 
|---|---|---|---|
| payloadVersion | This is required only to get the internal version of chat activity transcript. The internal version includes: 
 | 
 | N/A | 
| embedInlineAttachment | The only allowed value for this parameter is "yes". If provided, the inline attachments will be embedded in the body of the email, in a base64 encoded format. Note that this is applicable only for email activities, and only when a single email activity is requested. | 
 | N/A | 
| transcriptDatetimeFormat | Date and time format used for transcript date and messages. Note that this is applicable only for chat activities, and only when a single chat activity is requested. | 
 | h:mm a (dd MMM yyyy) | 
| timeOffset | The time offset of the chat messages. Note that this is applicable only for chat activities, and only when a single chat activity is requested. | Between -720 and 720 | 0 | 
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/xmlorapplication/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 
 
400 - Bad Request
$order, unsupported $attribute value etc.) $order provided without $sort 401 - Unauthorized
403 - Forbidden
404 - Not Found
406 - Not Acceptable
500 - Internal server error
Example 1 - Get all attributes for an email activity 
 Example 2 - Get all attributes for a chat activity 
 v12-interaction-activity-getbyid-example3 
 Example 4 - Get all attributes for a call track activity 
 v12-interaction-activity-getbyid-example5 
 Example 6 - Get an additional attribute for multiple activities sorted on department name 
 Example 7 - Get an additional custom attribute for a single activity 
 Example 8 - Get summary attributes and payload for activities of all types 
 Example 9 - Get internal version of a chat activity transcript 
 Example 10 - Get email content with inline embedded attachment content