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 An API key created on the Access tokens page.
In: header
Path Parameters
Query Parameters
Value in
- "invitation"
- "message"
- "inmail"
- "profile_view"
- "follow"
- "post_like"
- "post_comment"
Value in
- "pending"
- "sent"
- "accepted"
- "withdrawn"
Page size, 1–100.
1 <= value <= 10050Number of records to skip.
0 <= value0Response 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 }}List emails sent through the API GET
**JavaScript SDK:** [`swarmhit.emailAccounts.emails.list(emailAccountId, params?)`](/smart-api/sdk/methods#emailAccounts.emails) The emails this mailbox sent with POST /email-accounts/{id}/emails, newest first. Campaign emails and inbox replies are not listed. A request that failed returned its error and was not logged.
List a post's comments GET
**JavaScript SDK:** [`swarmhit.accounts.posts.listComments(accountId, params)`](/smart-api/sdk/methods#accounts.posts) The comments on a LinkedIn post, most recent first, as this account sees them, so you can pick one to reply to: pass its `id` as `commentId` to POST /accounts/{id}/post-comments. Replies to a comment are not listed; `replyCount` says how many it has. A silent read: no cap is used and nothing is logged as an action. Paginate by passing the returned `nextCursor` back as `cursor`. Returns 422 with `code: post_not_found` when `postUrl` is not a post's link or this account can't see the post.