Accounts

The connected accounts in the key’s workspace, plus the workspaces you belong to. Call accounts first — publishing needs each account’s id, and tokens are never returned.

GET/accountsaccounts:read

List the connected social accounts in the key’s workspace.

responsejson
{
  "accounts": [
    {
      "id": "a1b2c3d4-…",
      "platform": "instagram",
      "platform_username": "myhandle",
      "platform_account_id": "1789…",
      "is_connected": true,
      "requires_reauth": false,
      "profile_image_url": "https://…",
      "connected_at": "2026-06-01T10:00:00Z"
    }
  ]
}
GET/workspacesaccounts:read

List the workspaces you belong to. A key is bound to one; active:true marks the one this key acts in.

responsejson
{
  "workspaces": [
    { "id": "w1x2…", "name": "Personal", "isPersonal": true,  "role": "owner",  "active": true },
    { "id": "a9b8…", "name": "Acme",     "isPersonal": false, "role": "member", "active": false }
  ]
}