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.One ofOKCONNECTINGCREDENTIALSERROR
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.
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.
Was this page helpful?