List accounts
direct.lempile.com/api/v1/accountsThe LinkedIn accounts of this key's workspace, with their status (total_count and status_counts count those only). An account Direct never checked is checked once (one LinkedIn call).
Authentication
X-API-KEY header·A Lempile Direct key, one per workspace, made in Lempile's dashboard.Query parameters
limitintegerItems per page: 1 to 250 (default 100).
Default100≥ 1 · ≤ 250cursorstringA cursor a previous page gave.
Responses
200OK
›
application/json
objectstringrequiredAlwaysAccountListitemsarray of Accountrequired›Show fieldsHide fields
objectstringrequiredAlwaysAccounttypestringrequiredAlwaysLINKEDINidstringrequiredThe account id: a Lempile account id. Every other route names it as
account_id.namestringrequiredThe member's name on LinkedIn (empty until the first check).
created_atstringrequiredWhen Direct started serving the account.
connection_paramsobjectrequired›Show fieldsHide fields
imobjectrequired›Show fieldsHide fields
idstringrequiredThe member's LinkedIn provider id (
ACo…).publicIdentifierstringrequiredThe member's public identifier (the
/in/<…>part).usernamestringrequiredThe member's name.
premiumIdnullrequiredpremiumContractIdnullrequiredpremiumFeaturesarray of stringrequired["premium"]for a Premium member, else[].organizationsarray of objectrequiredAlways
[].
groupsarray of objectrequiredAlways
[].sourcesarray of objectrequiredOne source, as Unipile's LinkedIn accounts have.
›Show fieldsHide fields
idstringrequired<account id>_MESSAGING.statusstringrequiredOK: 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 (restrictionbelow) saysCREDENTIALSwhile it's restricted, whatever its session.One ofOKCONNECTINGCREDENTIALSERROR
restrictionobjectLempile's own field, only on an account LinkedIn restricted: until a person clears the restriction in Lempile, every other route answers 403
errors/account_restrictedand Direct makes no LinkedIn call for it. As api.lempile.com shows it.›Show fieldsHide fields
reasonstringrequiredA code:
account_restricted,id_verification_required…sincestring | nullrequiredWhen LinkedIn restricted it, or when Lempile first saw it.
sourcestring | nullrequiredWhere it was seen:
direct,signin,runner,reader,api,admin.
holdobjectLempile'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 401errors/disconnected_accountand Lempile makes no LinkedIn call for it, but one check of its session an hour after.sources[].statusstaysCREDENTIALSeven when that check finds the session working.›Show fieldsHide fields
reasonstringrequiredsigned_out, orcheckpoint(a security check).One ofsigned_outcheckpointsincestring | nullrequiredWhen the hold began.
session_works_atstring | nullrequiredWhen its one check found the session working (still held, for its person to look first);
nullotherwise.
lifecycleobjectLempile'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[].statuskeeps Unipile's v1 words.›Show fieldsHide fields
statusstringrequiredrunning: 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, andsources[].statusstaysOK.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 ofrunningdegradederroreddisconnectedconnectingreasonstringrequiredrunning:
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 | nullrequiredWhen the account entered this status.
recoveryobject | nullrequiredLempile's automatic checks, never a sign-in with a password. An
erroredaccount is checked again 5, 10, 15, 20 and 30 minutes later, then every 30 minutes, its proxy first (checks_max: null). Adisconnectedaccount LinkedIn signed out (signed_out, nevercheckpointorrestricted) 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 itdisconnectedand held (state: held) until its person reconnects or releases it.nullwhen no check is planned or done.›Show fieldsHide fields
statestringrequiredactive: checks go on.recovered: one worked (anerroredaccount).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 ofactiverecoveredheldexhaustedcancelledchecks_doneintegerrequiredchecks_maxinteger | nullrequired1 after a sign-out;
null(no limit) for anerroredaccount.next_check_atstring | nullrequiredWhen the next check is due, while
active.
cursorstring | nullrequiredThe next page's cursor, or
nullon the last page. Opaque: send it back ascursor.total_countintegerrequiredHow many accounts this key sees.
status_countsobjectrequiredAccounts by status (
STOPPEDis always 0).›Show fieldsHide fields
OKintegerrequiredCONNECTINGintegerrequiredCREDENTIALSintegerrequiredSTOPPEDintegerrequiredERRORintegerrequired
400A required parameter missing (errors/missing_parameters), or one that isn't valid (errors/invalid_parameters, errors/invalid_url, errors/content_too_large).
›
errors/missing_parameters), or one that isn't valid (errors/invalid_parameters, errors/invalid_url, errors/content_too_large).application/json
titlestringrequiredA short title, e.g.
Too many requests.detailstringrequiredWhat happened, in plain words. Never an account's data.
typestringrequiredUnipile's error type:
errors/<kind>. Branch on this, not ondetail.statusintegerrequiredThe HTTP status again.
retry_afterintegerSeconds to wait before trying this account again. Only on 429; the
Retry-Afterheader carries the same value.account_statusstringLempile's own field, on a problem about the account's state (401
errors/disconnected_account, 403errors/account_restricted, 503 or 422errors/network_down, 504errors/request_timeout): the account'slifecycle.status(see Account). Thetypeand HTTP status stay Unipile's.One ofrunningdegradederroreddisconnectedconnectingreasonstringWith
account_status: why, aslifecycle.reason(signed_out,checkpoint,restricted,proxy_unavailable,browser_unavailable,timeout,lempile_error).
401errors/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.
›
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
titlestringrequiredA short title, e.g.
Too many requests.detailstringrequiredWhat happened, in plain words. Never an account's data.
typestringrequiredUnipile's error type:
errors/<kind>. Branch on this, not ondetail.statusintegerrequiredThe HTTP status again.
retry_afterintegerSeconds to wait before trying this account again. Only on 429; the
Retry-Afterheader carries the same value.account_statusstringLempile's own field, on a problem about the account's state (401
errors/disconnected_account, 403errors/account_restricted, 503 or 422errors/network_down, 504errors/request_timeout): the account'slifecycle.status(see Account). Thetypeand HTTP status stay Unipile's.One ofrunningdegradederroreddisconnectedconnectingreasonstringWith
account_status: why, aslifecycle.reason(signed_out,checkpoint,restricted,proxy_unavailable,browser_unavailable,timeout,lempile_error).
Was this page helpful?