User Activity represents every activity the users in the organization have done. All the activities can be queried to get all the activities or filter by specific user or activity type.
There are many types of activity available described below. Each type of activity has different data for the object.
Add Members
Activity when adding a list of users to multiple groups
In the request to show only these activities use activity_type=add_members
{
"created_at": "2019-12-16T11:49:01Z",
"group_id": 19730,
"members_count": 1,
"type": "added_members",
"group_name": "User group"
}
Comment
Activity when a user writes a comment on the post
In the request to show only these activities use activity_type=comment
{
"type": "comment",
"comment_type": "comment",
"created_at": "2019-12-15T12:55:26Z",
"content": "Great.",
"post_id": 151014,
"group_id": 22173,
"receiver_id": 22173,
"post_type": "quickpost",
"feed_type": "lounge",
"post_name": "New post."
}
Comment Reply
Activity when a user replies to comment
In the request to show only these activities use activity_type=comment_reply
{
"type": "comment",
"comment_type": "reply",
"created_at": "2019-12-15T12:40:47Z",
"content": "<p>Interesting</p>",
"post_id": 151168,
"post_type": "quickpost",
"feed_type": "lounge",
"target": {
"id": 17774,
"type": "group"
},
"post_name": "New post"
}
Conversation
Activity when a user sends a message to a private conversation
In the request to show only these activities use activity_type=conversation
{
"created_at": "2019-12-15T12:51:28Z",
"type": "conversation",
"conversation_id": "5df554ba3e3f1e1a9900ae35",
"initiator" : {
"id": 1168642,
"name": "Rafał Palka"
},
"participant": {
"name": "Kamil Nosal",
"id": 1168728
},
"participants_count": 2,
"participants": [1168642, 1168728]
}
Join Group
Activity when a user has joined the group
In the request to show only these activities use activity_type=join_group
{
"created_at": "2019-12-16T11:49:01Z",
"group_id": 19730,
"group_name": "User group",
"type": "joined_group"
}
Mention
Activity when a user has been mentioned in the post or comment messages
In the request to show only these activities use activity_type=mention
{
"type": "mention",
"mention_object": "Post",
"created_at": "2019-12-15T11:19:18Z",
"content": "<p>Read from here</p>",
"mentioned": "John Miller",
"post_id": 151167,
"group_id": 19314,
"receiver_id": 19314,
"post_type": "quickpost",
"feed_type": "lounge",
"post_name": "Interesting Post"
}
Pending Applicant
Activity when a new user has been added to the group but it is still pending for confirmation
In the request to show only these activities use activity_type=pending_applicant
{
"created_at": "2019-12-12T17:33:27Z",
"group_id": 20273,
"group_name": "Simple Group",
"type": "pending_applicant"
}
Pending Post
Activity created when a new pending post has been created
In the request to show only these activities use activity_type=pending_post
{
"created_at": "2019-07-29T09:24:45Z",
"post_id": 4,
"group_id": 1,
"receiver_id": 1,
"type": "pending_post",
"post_type": "post",
"feed_type": "lounge",
"post_name": "New Post",
"target": {
"id": 1,
"name": "New community",
"type": "group"
}
}
Post
This activity shows details about the new posts being created.
In the request to show only these activities use activity_type=post
{
"created_at": "2019-07-29T09:24:45Z",
"post_id": 4,
"group_id": 1,
"receiver_id": 1,
"type": "post",
"post_type": "post",
"feed_type": "lounge",
"post_name": "New Post",
"target": {
"id": 1,
"name": "New community",
"type": "group"
}
}
Post Approved
Activity created when a group administrator approves a pending post
In the request to show only these activities use activity_type=post_approved
{
"created_at"=>"2019-07-21T09:42:48Z",
"post_id"=>145870,
"group_id"=>4776,
"receiver_id"=>4776,
"type"=>"post_approved",
"post_type"=>"post",
"feed_type"=>"lounge",
"post_name"=>"Random Post",
"target"=>{
"id"=>4776,
"name"=>"Community Group",
"type"=>"group"
}
}
Post Message
Activity when a user has responded to a private reply on a post.
In the request to show only these activities use activity_type=post_message
{
"type": "comment",
"comment_type": "message",
"created_at": "2019-12-15T12:38:19Z",
"content": "I agree.",
"post_id": 151168,
"receiver_id": 17774,
"group_id": 17774,
"post_type": "quickpost",
"feed_type": "lounge",
"target": {
"id": 17774,
"type": "group"
},
"post_name": "New post"
}
Reaction
User has reacted to post by liking the post
In the request to show only these activities use activity_type=reaction
{
"type": "add_reaction",
"created_at": "2019-12-15T12:39:37Z",
"content": "👍",
"post_id": 151168,
"feed_type": "lounge",
"group_id": 17774,
"post_type": "quickpost",
"receiver_id": 17774,
"post_name": "New post"
}
RSVP
When a user replies to RSVP to a specific event it creates an activity
In the request to show only these activities use activity_type=rsvp
{
"created_at": "2019-12-14T18:00:35Z",
"group_id": 19414,
"event_id": 21388,
"post_id": 150428,
"post_type": "event",
"feed_type": "lounge",
"type": "rsvp",
"status": "yes",
"event_name": "New Year Meetup",
"group_name": "Updates community",
"target": {
"id": 19414,
"type": "group"
}
}
SMS Reply
Activity when a user replies to SMS post from outreach
In the request to show only these activities use activity_type=sms_reply
{
"type": "sms_reply",
"comment_type": "reply",
"created_at": "2017-12-24T05:13:55Z",
"content": "I know",
"post_id": 134795,
"post_type": "smspost",
"feed_type": "outreach",
"target": {
"id": 17773,
"type": "group"
},
"post_name": null
}
View
When a user views specific content it logs the views
In the request to show only these activities use activity_type=view
{
"created_at": "2019-12-15T15:41:20Z",
"receiver_id": 19332,
"group_id": 19332,
"post_id": 141574,
"post_type": "quickpost",
"feed_type": "lounge",
"type": "view",
"post_name": "Sweet Recipes",
"group_name": "Cookies group",
"target": {
"id": 19332,
"type": "group"
}
}
Vote
It logs every user voting in the polls
In the request to show only these activities use activity_type=vote
{
"created_at": "2019-12-15T11:45:55Z",
"type": "vote",
"post_id": 149559,
"post_type": "poll",
"feed_type": "lounge",
"poll_name": "Do you support new marketing strategy",
"group_id": 21163,
"receiver_type": "group",
"receiver_id": 21163
}