API referenceAccounts
POST
/accounts/{id}/checkpoint/resend

JavaScript SDK: swarmhit.accounts.checkpoint.resend(accountId)

Ask LinkedIn to send the pending challenge again — a fresh emailed or texted code, or a new approval push to the mobile app, and restarts the five-minute window. 400 with checkpoint_no_resend when the pending type has nothing to re-send (a captcha, a phone step), or checkpoint_expired when the five-minute window already closed.

Authorization

bearerAuth
AuthorizationBearer <token>

An API key created on the Access tokens page.

In: header

Path Parameters

id*string

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/accounts/string/checkpoint/resend"
{  "data": {    "ok": true  },  "checkpoint": {    "type": "2FA",    "input": "code",    "requestedAt": "2019-08-24T14:15:22Z",    "expiresAt": "2019-08-24T14:15:22Z",    "expired": true,    "canResend": true,    "canTryAnotherWay": true,    "liveView": true  }}

Rename an account or set its sender PATCH

**JavaScript SDK:** [`swarmhit.accounts.update(accountId, params)`](/smart-api/sdk/methods#accounts) Sets the account's `label` (`null` or an empty string clears it) and its `senderId` (`null` unlinks it), whichever are given. A sender has one LinkedIn account at most: a sender that already has another is refused with `400`, `code: sender-has-linkedin`.

Restore an archived account POST

**JavaScript SDK:** [`swarmhit.accounts.restore(accountId, params?)`](/smart-api/sdk/methods#accounts) Bring an archived account back under the same id, with its conversations, settings (limits, warm-up) and history, within 90 days of `archivedAt`: after that it is deleted permanently. It takes a seat, with the same check as connecting a sender (400 `seat-limit-reached` or `no-plan` when there is none), and comes back disconnected (`status: error`). Its login secrets were not kept, so reconnect it before it sends again: POST /accounts/{id}/reconnect with its `password` (and `totpSecret`), or with a fresh `liAt` for a browser-session (`cookie`) account, or a hosted connect link for it (POST /accounts/hosted-link with `accountId`). When the same LinkedIn account was connected again in the workspace after it was archived, it can't be restored next to it: 400 `already-connected`, as connecting it twice gives. It rejoins its old campaigns only with `{"campaigns": true}`: then the campaigns it was in that still exist take it back, and its own leads there go on once it is reconnected. `account.restored` is sent to the endpoints subscribed to it.