JavaScript SDK: swarmhit.accounts.checkpoint.get(accountId)
The verification step this sender is waiting on, or null when there is none. type is 2FA, OTP, IN_APP_VALIDATION, PHONE_REGISTER or CAPTCHA (UNKNOWN for a step Swarmhit does not recognise); input says what answers it (code, phone, or none for a step completed outside the API: approved in the LinkedIn mobile app, or a captcha cleared on LinkedIn's own page); expiresAt is when LinkedIn drops the attempt, five minutes after it asked.
IN_APP_VALIDATION and CAPTCHA are completed outside the API, so poll this endpoint (or listen for account.connected, which fires when the sender comes up) — it re-reads the live session and clears the challenge as soon as the sender is up.
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/string/checkpoint"{ "data": { "type": "2FA", "input": "code", "requestedAt": "2019-08-24T14:15:22Z", "expiresAt": "2019-08-24T14:15:22Z", "expired": true, "canResend": true, "canTryAnotherWay": true, "liveView": true }, "resolved": true, "account": { "id": "string", "label": "string", "senderId": "string", "fullName": "string", "firstName": "string", "lastName": "string", "headline": "string", "publicIdentifier": "string", "profileUrl": "string", "profilePicture": "string", "connectionMethod": "cookie", "connectedVia": "app", "hostedLinkId": "string", "status": "active", "connectionStatus": "string", "isVerified": true, "isPremium": true, "linkedinPlan": "classic", "error": "string", "limits": {}, "usage": {}, "paused": true, "pausedReason": "user", "pausedAt": "2019-08-24T14:15:22Z", "cooldownUntil": "2019-08-24T14:15:22Z", "cooldownReason": "invite_daily_limit", "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 }, "inmailCredits": { "balance": 0, "syncedAt": "2019-08-24T14:15:22Z" }, "ssi": { "score": 0, "brand": 0, "people": 0, "insights": 0, "relationships": 0, "industryTop": 0, "networkTop": 0, "industryAverage": 0, "networkAverage": 0, "industryName": "string", "unavailable": true, "syncedAt": "2019-08-24T14:15:22Z" }, "country": "string", "stoppedReason": "proxy_drift", "connection": { "country": "string", "isp": "string", "changedAt": "2019-08-24T14:15:22Z" }, "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z" }}Get a sender account GET
**JavaScript SDK:** [`swarmhit.accounts.get(accountId)`](/smart-api/sdk/methods#accounts)
Get a sender's limits GET
**JavaScript SDK:** [`swarmhit.accounts.limits.get(accountId)`](/smart-api/sdk/methods#accounts.limits) Every cap on this sender, by the same keys as `limits` on GET /accounts/{id}/stats: the value in force (`limit`), how much of it is used (`used`), and the range it can be set within on the sender's LinkedIn plan (`default`, `min`, `max`). `tier` names that plan, and the ranges are the ones Swarmhit currently applies to it. Daily caps count today and reset at 00:00 UTC. Of the rolling caps, `connectionRequestsPerWeek` counts the invitations sent in the last `weeklyWindowDays` days and `pendingInvitationsMax` the invitations still awaiting a reply. Change the caps with PATCH on this path. `warmup` is its LinkedIn warm-up: whether it is on (`status`), its own setting (`mode`), the ramp it follows and, while it warms up, its `day`, the day's lower caps (`today`) and when it reaches full speed (`fullSpeedAt`). While it warms up, `warmup.today` holds the caps that bind each day, for campaigns and direct actions alike, not `limit`: `limit` keeps the account's own cap, so writing it back never saves a warm-up value.