Skip to main content
GET
/
api
/
calendar
/
accounts
List connected social accounts
curl --request GET \
  --url https://app.puffle.ai/api/calendar/accounts \
  --header 'Authorization: Bearer <token>'
{
  "accounts": [
    {
      "id": "aaaa1111-1111-1111-1111-111111111111",
      "platform": "linkedin",
      "username": "jane-doe",
      "displayName": "Jane Doe",
      "profilePicture": "https://media.licdn.com/…/jane.jpg",
      "profileLabel": "Personal",
      "accountType": "personal"
    },
    {
      "id": "aaaa2222-2222-2222-2222-222222222222",
      "platform": "linkedin",
      "username": "acme-corp",
      "displayName": "Acme Corp",
      "profilePicture": "https://media.licdn.com/…/acme.jpg",
      "profileLabel": "Company",
      "accountType": "organization"
    }
  ]
}

Overview

Returns every social account the caller has connected across all of their Late profiles, in a flat shape optimized for rendering a picker. Accounts appear here only after a successful OAuth connect — see connectLateAccount and lateOauthCallback for the flow that populates this list. Each row is classified by accountType: personal (individual LinkedIn profile) or organization (LinkedIn company page). The profileLabel is a UI-facing label derived from accountType.

AI agent notes

When to call:
  • Immediately after listSocialCalendar when preparing a post composer
  • After a successful OAuth callback to refresh the local picker
  • Before calling createSocialPost if you need account_ids to target specific accounts
Empty array is a valid state — a user with zero connected accounts returns { accounts: [] }. Prompt the human to run through connectLateAccount before attempting to create a post.For full row data (including sync timestamps and raw Late IDs), call listLateAccounts instead. This endpoint returns only the fields needed for a picker.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Response

List of connected accounts ready for posting. May be empty.

accounts
object[]
required

All social accounts connected across every Late profile owned by the caller. Empty array if the user has no profiles or no connected accounts yet.