JavaScript SDK: swarmhit.emailAccounts.emails.list(emailAccountId, params?)
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.
Authorization
bearerAuth An API key created on the Access tokens page.
In: header
Path Parameters
Query Parameters
Value in
- "sent"
- "bounced"
- "failed"
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/email-accounts/string/emails"{ "data": [ { "id": "string", "accountId": "string", "status": "sent", "to": "string", "subject": "string", "messageId": "string", "chatId": "string", "leadId": "string", "error": "string", "sentAt": "2019-08-24T14:15:22Z", "createdAt": "2019-08-24T14:15:22Z" } ], "paging": { "limit": 0, "offset": 0 }}Like a post POST
**JavaScript SDK:** [`swarmhit.accounts.posts.like(accountId, params)`](/smart-api/sdk/methods#accounts.posts) Like a LinkedIn post from this account, or leave another reaction on it. Pass exactly one of `postUrl` (that post) or `profileUrl` (the lead's most recent post). Counts against the account's daily post-like cap, whatever the reaction. Returns 422 when the lead has no recent post, and 422 with `code: post_not_found` when `postUrl` is not a post's link (checked before anything else) or this account can't see the post. A post given by its link isn't tied to a lead: no lead is created, and the action's `profileUrl` is the post's author when that is a person.
List direct actions GET
**JavaScript SDK:** [`swarmhit.accounts.actions.list(accountId, params?)`](/smart-api/sdk/methods#accounts.actions) 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.