Skip to content
Docs

Retrieve an account

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

The account and its status. A status older than 10 minutes (15 while failing) is checked first: one /voyager/api/me through the account's own session.

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
    AlwaysAccount
  • typestringrequired
    AlwaysLINKEDIN
  • idstringrequired

    The account id: a Lempile account id. Every other route names it as account_id.

  • namestringrequired

    The member's name on LinkedIn (empty until the first check).

  • created_atstringrequired

    When Direct started serving the account.

  • connection_paramsobjectrequired
    ›Show fields
    • imobjectrequired
      ›Show fields
      • idstringrequired

        The member's LinkedIn provider id (ACo…).

      • publicIdentifierstringrequired

        The member's public identifier (the /in/<…> part).

      • usernamestringrequired

        The member's name.

      • premiumIdnullrequired
      • premiumContractIdnullrequired
      • premiumFeaturesarray of stringrequired

        ["premium"] for a Premium member, else [].

      • organizationsarray of objectrequired

        Always [].

  • groupsarray of objectrequired

    Always [].

  • sourcesarray of objectrequired

    One source, as Unipile's LinkedIn accounts have.

    ›Show fields
    • idstringrequired

      <account id>_MESSAGING.

    • statusstringrequired

      OK: LinkedIn answered the account's last call. CREDENTIALS: LinkedIn refused its session (signed out, a security check). ERROR: the account's browser or proxy gave no working session twice over 10 minutes. CONNECTING: not checked yet. A restricted account (restriction below) says CREDENTIALS while it's restricted, whatever its session.

      One ofOKCONNECTINGCREDENTIALSERROR
  • restrictionobject

    Lempile's own field, only on an account LinkedIn restricted: until a person clears the restriction in Lempile, every other route answers 403 errors/account_restricted and Direct makes no LinkedIn call for it. As api.lempile.com shows it.

    ›Show fields
    • reasonstringrequired

      A code: account_restricted, id_verification_required…

    • sincestring | nullrequired

      When LinkedIn restricted it, or when Lempile first saw it.

    • sourcestring | nullrequired

      Where it was seen: direct, signin, runner, reader, api, admin.

  • holdobject

    Lempile's own field, only on an account held after LinkedIn signed it out or asked for a security check (since Nov 27 2026): until a person reconnects it (hosted auth, type: reconnect) or releases it in Lempile, every other route answers 401 errors/disconnected_account and Lempile makes no LinkedIn call for it, but one check of its session an hour after. sources[].status stays CREDENTIALS even when that check finds the session working.

    ›Show fields
    • reasonstringrequired

      signed_out, or checkpoint (a security check).

      One ofsigned_outcheckpoint
    • sincestring | nullrequired

      When the hold began.

    • session_works_atstring | nullrequired

      When its one check found the session working (still held, for its person to look first); null otherwise.

  • lifecycleobject

    Lempile's own field, as api.lempile.com answers it: the account's state in Unipile's newer words (running, degraded, errored, disconnected, connecting), why, since when, and its automatic recovery. sources[].status keeps Unipile's v1 words.

    ›Show fields
    • statusstringrequired

      running: it works. degraded: a call failed on Lempile's side (the account's proxy, the browser server, a timeout) and nothing worked since; it's still used, and sources[].status stays OK. errored (ERROR): that lasted; Lempile checks it again by itself, nothing to do on your side. disconnected (CREDENTIALS): LinkedIn signed it out, asks for a security check, or restricted it; its person reconnects the same account (hosted auth, type: reconnect). connecting (CONNECTING): not checked yet.

      One ofrunningdegradederroreddisconnectedconnecting
    • reasonstringrequired

      running: connected, reconnected (its person reconnected it), recovered (it came back by itself). degraded, errored: proxy_unavailable, browser_unavailable, timeout, lempile_error. disconnected: signed_out, checkpoint (a security check), restricted. connecting: signing_in.

    • sincestring | nullrequired

      When the account entered this status.

    • recoveryobject | nullrequired

      Lempile's automatic checks, never a sign-in with a password. An errored account is checked again 5, 10, 15, 20 and 30 minutes later, then every 30 minutes, its proxy first (checks_max: null). A disconnected account LinkedIn signed out (signed_out, never checkpoint or restricted) is held for its person (hold) and gets one check of its session an hour after the sign-out (checks_max: 1); one that works leaves it disconnected and held (state: held) until its person reconnects or releases it. null when no check is planned or done.

      ›Show fields
      • statestringrequired

        active: checks go on. recovered: one worked (an errored account). held: the check after a sign-out found the session working; the account stays held for its person. exhausted: the last check failed; the account waits for its person. cancelled: LinkedIn asked for a security check or restricted the account meanwhile, or a person ended the hold.

        One ofactiverecoveredheldexhaustedcancelled
      • checks_doneintegerrequired
      • checks_maxinteger | nullrequired

        1 after a sign-out; null (no limit) for an errored account.

      • next_check_atstring | nullrequired

        When the next check is due, while active.

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.

  • account_statusstring

    Lempile's own field, on a problem about the account's state (401 errors/disconnected_account, 403 errors/account_restricted, 503 or 422 errors/network_down, 504 errors/request_timeout): the account's lifecycle.status (see Account). The type and HTTP status stay Unipile's.

    One ofrunningdegradederroreddisconnectedconnecting
  • reasonstring

    With account_status: why, as lifecycle.reason (signed_out, checkpoint, restricted, proxy_unavailable, browser_unavailable, timeout, lempile_error).

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.

  • account_statusstring

    Lempile's own field, on a problem about the account's state (401 errors/disconnected_account, 403 errors/account_restricted, 503 or 422 errors/network_down, 504 errors/request_timeout): the account's lifecycle.status (see Account). The type and HTTP status stay Unipile's.

    One ofrunningdegradederroreddisconnectedconnecting
  • reasonstring

    With account_status: why, as lifecycle.reason (signed_out, checkpoint, restricted, proxy_unavailable, browser_unavailable, timeout, lempile_error).

Was this page helpful?