JavaScript SDK: swarmhit.accounts.getStats(accountId, params?)
How this sender has performed over the last days: connection requests, acceptances, messages, replies and interested leads with period-over-period deltas, a daily activity series, all-time totals and rates, the per-campaign split, direct (non-campaign) action counts, and how much headroom is left against its daily and rolling-weekly caps.
Campaign sends and direct API sends are both counted. Daily series buckets are calendar days on the server's clock; the daily caps themselves reset at 00:00 UTC.
Authorization
bearerAuth An API key created on the Access tokens page.
In: header
Path Parameters
Query Parameters
Size of the reporting window, clamped to 7-90 days.
7 <= value <= 9030Response Body
application/json
application/json
application/json
curl -X GET "https://example.com/accounts/string/stats"{ "data": { "generatedAt": "2019-08-24T14:15:22Z", "days": 0, "cards": { "property1": { "value": 0, "deltaPct": 0, "base": 0, "baseLabel": "string" }, "property2": { "value": 0, "deltaPct": 0, "base": 0, "baseLabel": "string" } }, "series": [ { "date": "string", "invites": 0, "accepted": 0, "messages": 0, "replies": 0 } ], "lifetime": { "leads": 0, "invitesSent": 0, "invitesAccepted": 0, "messagesSent": 0, "replies": 0, "failed": 0, "stalled": 0 }, "rates": { "acceptance": 0, "reply": 0 }, "interest": { "interested": 0, "not_interested": 0, "untagged": 0 }, "byCampaign": [ { "campaignId": "string", "name": "string", "status": "string", "leads": 0, "invitesSent": 0, "accepted": 0, "messagesSent": 0, "replied": 0 } ], "poolCampaigns": [ { "_id": "string", "name": "string", "status": "string" } ], "actions": [ { "type": "invitation", "label": "string", "count": 0 } ], "limits": { "daily": [ { "key": "string", "label": "string", "used": 0, "limit": 0, "todayLimit": 0 } ], "rolling": [ { "key": "connectionRequestsPerWeek", "label": "string", "used": 0, "limit": 0 } ], "weeklyWindowDays": 0 } }}Social Selling Index GET
**JavaScript SDK:** [`swarmhit.accounts.getSsi(accountId, params?)`](/smart-api/sdk/methods#accounts) LinkedIn's Social Selling Index for this sender: a 0-100 score built from four 0-25 pillars (professional brand, finding the right people, engaging with insights, building relationships), plus where the profile ranks against its industry and its network. The score is cached on the account and refetched once it is more than 12 hours old (LinkedIn recomputes it daily at most). Pass `refresh=true` to force a live read; that call fails with 400 when LinkedIn cannot be reached at that moment. `unavailable: true` means LinkedIn does not expose a score for this account's session, which is a state rather than an error.
Get the LinkedIn warm-up settings GET
**JavaScript SDK:** [`swarmhit.accounts.warmup.get()`](/smart-api/sdk/methods#accounts.warmup) The LinkedIn warm-up settings the workspace's LinkedIn accounts follow. With a warm-up, an account starts at `ramp.start` connection requests a day and adds `ramp.step` every `ramp.everyDays` days until it reaches its own cap (or its plan's default, when that is higher); its other daily caps (messages, InMails, profile views, follows, likes and comments) get the same share of their own value. Search imports, the weekly limits and the plan's ranges are not changed. An organization key without the `X-Swarmhit-Workspace` header reads the organization's settings, which cover its own accounts and every workspace inside it that has no settings of its own; with the header, that workspace's. `source` says where the values come from: the workspace itself (`workspace`), its organization (`organization`), or nothing set anywhere (`default`, which is off: accounts run as they always have).