JavaScript SDK: swarmhit.accounts.hostedLinks.get(hostedLinkId)
What became of a link: pending while it is still open (a failed sign-in attempt leaves it open), connected once a sender came out of it (accountId names it), failed when the person cancelled on the page (error.code: cancelled), expired once its window closed. Never returns the link URL or its token.
Authorization
bearerAuth An API key created on the Access tokens page.
In: header
Path Parameters
Response Body
application/json
application/json
application/json
curl -X GET "https://example.com/accounts/hosted-link/string"{ "data": { "id": "string", "status": "pending", "channel": "linkedin", "provider": "google", "providers": [ "google" ], "orderId": "string", "purchase": { "maxMailboxes": 0, "contactProvided": true }, "url": "string", "workspaceId": "string", "accountId": "string", "reconnectAccountId": "string", "externalId": "string", "redirectUrl": "string", "hasProxy": true, "country": "string", "error": { "code": "string", "message": "string" }, "expiresAt": "2019-08-24T14:15:22Z", "openedAt": "2019-08-24T14:15:22Z", "completedAt": "2019-08-24T14:15:22Z", "createdAt": "2019-08-24T14:15:22Z" }}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).
List sender accounts GET
**JavaScript SDK:** [`swarmhit.accounts.list(params?)`](/smart-api/sdk/methods#accounts) Connected LinkedIn accounts, with their health, daily limits and usage, pause state (`paused` / `pausedReason`), invite-limit cooldown (`cooldownUntil`) and InMail credit balance (`inmailCredits`). Credentials are never returned. With `archived=true`, the archived accounts instead, newest first: each is an `ArchivedAccount` (`status: archived`, `archivedAt`, `campaignIds`). Bring one back with POST /accounts/{id}/restore. Archived accounts are kept for 90 days, then deleted permanently.