API referenceDirect actions
GET
/accounts/{id}/actions

JavaScript SDK: swarmhit.accounts.actions.list(accountId, params?)

The direct actions (connection requests, messages, InMails, profile views, follows, post likes and post comments) taken from this sender account, newest first. A request that failed returned its error and was not logged, so the list only holds actions that went out.

Authorization

bearerAuth
AuthorizationBearer <token>

An API key created on the Access tokens page.

In: header

Path Parameters

id*string

Query Parameters

type?string

Value in

  • "invitation"
  • "message"
  • "inmail"
  • "profile_view"
  • "follow"
  • "post_like"
  • "post_comment"
status?string

Value in

  • "pending"
  • "sent"
  • "accepted"
  • "withdrawn"
limit?integer

Page size, 1–100.

Range1 <= value <= 100
Default50
offset?integer

Number of records to skip.

Range0 <= value
Default0

Response Body

application/json

application/json

application/json

curl -X GET "https://example.com/accounts/string/actions"
{  "data": [    {      "id": "string",      "accountId": "string",      "type": "invitation",      "status": "pending",      "profileUrl": "string",      "publicIdentifier": "string",      "postUrl": "string",      "replyTo": "string",      "reactionType": "like",      "leadId": "string",      "note": "string",      "error": "string",      "sentAt": "2019-08-24T14:15:22Z",      "acceptedAt": "2019-08-24T14:15:22Z",      "withdrawnAt": "2019-08-24T14:15:22Z",      "createdAt": "2019-08-24T14:15:22Z"    }  ],  "paging": {    "limit": 0,    "offset": 0  }}