Oktopost
Leads

Lead Activity

Lead activities are social interactions (reactions, shares, clicks, comments, mentions, etc.) that the platform was able to associate with a specific person. This endpoint can be used to list and delete lead activities.

List Lead Activities

Lead activities are social interactions that Oktopost was able to associate with a specific person. For a complete list of all the social activities see this article.

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.

Example Request

curl -i https://api.oktopost.com/v2/lead-activity

Parameters

ParameterTypeRequiredDescription
leadIdStringNoGet all the activities for a particular lead.

Example Result

{
  "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": "007000000000000",
      "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": {}
    }
  ]
}

Response Fields

FieldTypeDescription
IdStringActivity ID.
ContactIdStringLead ID associated with the activity.
ActivityDateStringTimestamp of the activity (YYYY-MM-DD HH:MM:SS).
AccountIdStringAccount ID.
TypeStringActivity type (for example, click, comment, reaction).
NetworkStringSocial network where the activity occurred.
ProfileIdString | nullSocial profile ID related to the activity, when available.
PostlogIdString | nullID of the published post associated with the activity. null when the activity is not linked to a post.
DataObjectActivity-type-specific payload.

Delete Lead Activity

Example Request

curl -i https://api.oktopost.com/v2/lead-activity/act000000000001?leadId=0ld000000000001 -X DELETE