Skip to content
Docs

Retrieve an account

Early access. Tell us what you're building and we'll set you up. Contact us

GETapi.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_idstringrequired

    Lempile id, Instagram user id or username.

Responses

200

The account.

›

application/json

  • objectany
    AlwaysAccount
  • typeany
    AlwaysINSTAGRAM
  • idstring
  • namestring
  • created_atstring · date-time
  • sourcesarray of object
    ›Show fields
    • idstring
    • statusstring
      One ofOKCONNECTINGCREDENTIALSERROR
401

A missing or invalid API key answers { "error": "unauthorized", "message" }. errors/disconnected_account (problem JSON): Instagram signed the account out; connect it again.

›

application/json

  • errorstringrequired
  • messagestring
402

subscription_required (in error): the workspace has no active trial or subscription.

›

application/json

  • errorstringrequired
  • messagestring
404

errors/resource_not_found: no such account in this workspace, or no such chat, message, person or post.

›

application/problem+json

  • typestringrequired
  • titlestring
  • statusintegerrequired
  • detailstring

    What happened, in words, and whether anything was done.

  • codestring

    On a 429: too_fast, daily_limit or hourly_limit.

  • retry_afterinteger

    Seconds to wait.

  • retry_atstring · date-time

Was this page helpful?