Retrieve an account
Early access. Tell us what you're building and we'll set you up. Contact us
api.lempile.com/api/v1/accounts/{account_id}One account, in Unipile's Account. sources[].status is OK (signed in and ready), CONNECTING (signing in), CREDENTIALS (Instagram signed it out: connect it again) or ERROR (Lempile can't reach its browser or IP right now). No browser opens.
Scope: accounts.read.
Authentication
X-API-KEY header·A Lempile API key, made in the dashboard under Access tokens.Path parameters
account_idstringrequiredLempile id, Instagram user id or username.
Responses
200The account.
›
application/json
objectanyAlwaysAccounttypeanyAlwaysINSTAGRAMidstringnamestringcreated_atstring · date-timesourcesarray of object›Show fieldsHide fields
idstringstatusstringOne ofOKCONNECTINGCREDENTIALSERROR
401A missing or invalid API key answers { "error": "unauthorized", "message" }. errors/disconnected_account (problem JSON): Instagram signed the account out; connect it again.
›
{ "error": "unauthorized", "message" }. errors/disconnected_account (problem JSON): Instagram signed the account out; connect it again.application/json
errorstringrequiredmessagestring
402subscription_required (in error): the workspace has no active trial or subscription.
›
subscription_required (in error): the workspace has no active trial or subscription.application/json
errorstringrequiredmessagestring
404errors/resource_not_found: no such account in this workspace, or no such chat, message, person or post.
›
errors/resource_not_found: no such account in this workspace, or no such chat, message, person or post.application/problem+json
typestringrequiredtitlestringstatusintegerrequireddetailstringWhat happened, in words, and whether anything was done.
codestringOn a
429:too_fast,daily_limitorhourly_limit.retry_afterintegerSeconds to wait.
retry_atstring · date-time
Was this page helpful?