API referenceLeads
JavaScript SDK: swarmhit.leads.getActivity(leadId)
The lead's campaign timeline across every campaign it is in, newest first and capped at 200 events: step results and events such as invite_sent (with result.noteDropped when it went without its note), invite_note_sent (that note sent as a message once they accepted), invite_accepted, reply_received, paused, interest_changed (a label that changes interest) or label_changed (one that leaves it as it was). Inbox messages are not part of it; read them through the inbox endpoints.
Authorization
bearerAuth AuthorizationBearer <token>
An API key created on the Access tokens page.
In: header
Path Parameters
id*string
Response Body
application/json
application/json
application/json
curl -X GET "https://example.com/leads/string/activity"{ "data": [ { "kind": "step", "at": "2019-08-24T14:15:22Z", "campaignId": "string", "campaignLeadId": "string", "stepType": "string", "ok": true, "branch": "string", "error": "string", "result": {} } ]}