JavaScript SDK: swarmhit.stats.get()
Campaign, lead-progress and sender-account counts broken down by status (plus a paused-sender count), plus outreach totals.
Authorization
bearerAuth An API key created on the Access tokens page.
In: header
Response Body
application/json
application/json
curl -X GET "https://example.com/stats"{ "data": { "campaigns": { "total": 0, "byStatus": { "property1": 0, "property2": 0 } }, "campaignProgress": { "total": 0, "byStatus": { "property1": 0, "property2": 0 } }, "accounts": { "total": 0, "byStatus": { "property1": 0, "property2": 0 }, "paused": 0 }, "totals": { "invitesSent": 0, "invitesAccepted": 0, "replies": 0 } }}Service health GET
**JavaScript SDK:** [`swarmhit.health()`](/smart-api/sdk/methods#client) Public service health check. This is the only endpoint that does not require an API key, so uptime monitors get a real status code instead of the `401` every other path returns without one. Returns `200` when the API is serving and its database is reachable, and `503` when it is not. The body carries no workspace or account data. Intended for external monitoring, not for polling before each request. Results are cached briefly, so a burst of calls returns the same verdict.
Get an inbox chat GET
**JavaScript SDK:** [`swarmhit.inbox.chats.get(chatId)`](/smart-api/sdk/methods#inbox.chats)