Lead Activity
List and delete lead activities, the social interactions Oktopost associates with a specific person.
Lead activities are social interactions (reactions, shares, clicks, comments, mentions, and so on) that Oktopost was able to associate with a specific person. For the full list of social activities, see Social Activities.
List Lead Activities
Retrieve lead activities, optionally for a single lead.
GET /v2/lead-activity
Each activity includes a top-level PostlogId when it is associated with a published post. The value is null when no association exists, for example, for certain mention types or when the activity was recorded before the corresponding post record was created, particularly for posts published natively.
Parameters
Prop
Type
Example Request
curl -X GET "https://api.oktopost.com/v2/lead-activity" \
-u ACCOUNT_ID:API_KEYExample Response
{
"Result": true,
"Items": [
{
"Id": "act000000000001",
"ContactId": "0ld000000000001",
"ActivityDate": "2020-01-10 08:30:00",
"AccountId": "001000000000001",
"Type": "click",
"Network": "Twitter",
"ProfileId": "003-001000000000001-123456",
"PostlogId": "007000000000001",
"Data": {}
},
{
"Id": "act000000000002",
"ContactId": "0ld000000000002",
"ActivityDate": "2020-01-10 08:30:00",
"AccountId": "001000000000001",
"Type": "comment",
"Network": "Facebook",
"ProfileId": "003-001000000000001-123456",
"PostlogId": null,
"Data": {}
}
]
}Prop
Type
Delete Lead Activity
Delete a lead activity.
DELETE /v2/lead-activity/:activityId
Parameters
Prop
Type
Example Request
curl -X DELETE "https://api.oktopost.com/v2/lead-activity/act000000000001?leadId=0ld000000000001" \
-u ACCOUNT_ID:API_KEY