Retrieve an account
direct.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_idstringrequiredThe account id.
Responses
200OK
›
application/json
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.One ofOKCONNECTINGCREDENTIALSERROR
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.
404errors/resource_not_found: an unknown or removed account, an account of another workspace (answered exactly the same), or nothing on LinkedIn with this id.
›
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
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.
Was this page helpful?