Skip to main content

Activity API

"Activities" are utilized to record data from various CRM actions, encompassing feedback, tickets, emails, meetings, and calls etc. These activities can be associated with an entity extension.

Terminology

Activity types

Each activity object includes an essential attribute called activityType, which defines the specific type of activity it represents. While all activities share some basic properties, each activity type will also possess its own set of unique properties. The Activity API currently supports the following activity types:

NameeatyIdDescription
WebChat2ITX Web chat
Call4Phone call
Note8Note
Email11Email
Facebook chat13Facebook chat
WeChat14WeChat
Ticket15Ticket
SMS17SMS
Screen share24Screen share
Lipscore question25Lipscore question
Instagram chat27Instagram chat
Lipscore review28Lipscore review
WhatsApp29WhatsApp chat

NOTE: Activities are used internally by ITX, so you may come across with activity types other than those listed here.

Activity members

The members list comprises all individuals, including both users and external contacts, who are or have been actively involved with the activity. Each member's role is specified in the role field, providing insights into their respective functions. For instance, a role value of 20 usually indicate a contact person. For example, within the members list, you can find a complete list of users who have participated in a specific phone call, along with their respective activity durations.

The startTs and endTs fields play a crucial role in distinguishing between active and past members in the system. Specifically, startTs indicates the initiation of their involvement, while endTs denotes the conclusion of their participation in a particular activity. Furthermore, each member is assigned a creationTs, which is automatically set upon their creation. This timestamp represents the moment when the member becomes part of the system.

If a member is missing a startTs, it suggests that they may have never actively participated in the activity. For instance, in the case of an unanswered phone call, we would set the creationTs to the start of the call, but startTs would remain unset since the call was not answered.

Members marked as anon is considered to be external members, and should generally not be connected to any user. anon members are however often linked to a contact person (entity extension).

Role nameIDRelevant for activity type
Default0All
Case assigned1Case
Case follower2Case
Contact20All
Salesprocess owner21Salesprocess
Salesprocess booker22Salesprocess
Email from23Email
Email to24Email
Email CC25Email
Email reply to27Email
Rating member30All
Meeting contact35Meeting
External organizer36Meeting
Internal organizer37Meeting

NOTE: Roles are also used internally by ITX, so you may come across activity members with roles other than those listed here.

Conversations

Conversation based activity types are identified by a startTs, endTs, and a queue. These activities encompass all chats and phone calls. This includes activity types WebChat, Call, Facebook chat, WeChat, Lipscore question, Instagram chat and Lipscore review. The underlying principle governing conversations is that they are placed in a queue and then assigned to any logged-in and available agent within that queue. While a conversation is active, it can only be assigned to a single agent at a time. However, it can be attempted to be assigned to different agents or manually transferred to another agent and/or queue.

You can find relevant information about the conversation's progress either in the members or logs list.

Retrieve activities

Used to retrieve all activities from ITX REST API. This is a generic endpoint, therefore newer specific endpoints should be used when possible. Check OpenAPI specification for updated information

GET /rest/itxems/activities

Supported attributes:

AttributeTypeRequiredDescription
eatyIdStringNoComma separated list of activity type ID's
getMembersBooleanNoSet to true to retrieve all activity members
fromTsDatetimeNoFilter activities created after this timestamp
toTsDatetimeNoFilter activities created before this timestamp
limitFromIntegerNoPagination offsett
limitToIntegerNoPagination page size (max 1000)
getTotalActivityCountBooleanNoIf true, return total hits (without agination) as HTTP-Header ITX-Total-Found

Example request all phone calls:

curl \
--url "https://<endpoint>/rest/itxems/activities?eatyId=4&getMembers=true&getTotalActivityCount=true&limitFrom=0&limitTo=50"