Skip to content
Docs

Resync an account (Unipile's GET form)

GETdirect.lempile.com/api/v1/accounts/{account_id}/sync

Drops the kept session, reads a fresh one from the account's browser and checks it with LinkedIn (one call). SYNC_DONE also sends the account_status webhook SYNC_SUCCESS. A signed-out account answers 401 errors/disconnected_account.

Authentication

X-API-KEY header·A Lempile Direct key, one per workspace, made in Lempile's dashboard.

Path parameters

  • account_idstringrequired

    The account id.

Responses

200

OK

›

application/json

  • objectstringrequired
    AlwaysAccountResync
  • statusstringrequired
    One ofSYNC_DONESYNC_ERROR
401

errors/missing_credentials: the X-API-KEY header is missing, wrong or revoked. errors/disconnected_account: LinkedIn signed the account out (or asks it for a security check); reconnect it.

›

application/json

  • titlestringrequired

    A short title, e.g. Too many requests.

  • detailstringrequired

    What happened, in plain words. Never an account's data.

  • typestringrequired

    Unipile's error type: errors/<kind>. Branch on this, not on detail.

  • statusintegerrequired

    The HTTP status again.

  • retry_afterinteger

    Seconds to wait before trying this account again. Only on 429; the Retry-After header carries the same value.

404

errors/resource_not_found: an unknown or removed account, an account of another workspace (answered exactly the same), or nothing on LinkedIn with this id.

›

application/json

  • titlestringrequired

    A short title, e.g. Too many requests.

  • detailstringrequired

    What happened, in plain words. Never an account's data.

  • typestringrequired

    Unipile's error type: errors/<kind>. Branch on this, not on detail.

  • statusintegerrequired

    The HTTP status again.

  • retry_afterinteger

    Seconds to wait before trying this account again. Only on 429; the Retry-After header carries the same value.

Was this page helpful?