Skip to content
Docs

List accounts

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

GETapi.lempile.com/api/v1/accounts

The workspace's connected accounts, every network together. An Instagram account has provider: "instagram"; one Instagram restricted shows restriction (why, and since when). Read from Lempile's database: no browser opens.

Scope: accounts.read.

Authentication

X-API-KEY header·A Lempile API key, made in the dashboard under Access tokens.

Responses

200

The accounts.

›

application/json

  • objectany
    Alwayslist
  • countinteger
  • itemsarray of object
    ›Show fields
    • idstring
    • providerstring
    • display_namestring
    • public_identifierstring
    • statusstring
    • restrictionobject | null

      Why Instagram restricted the account, and since when.

    • connected_atstring
    • created_atstring
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

Was this page helpful?