---
title: "List connected LinkedIn accounts"
method: POST
path: "/v1/actions/list_linkedin_accounts"
tags: ["Account"]
---

# List connected LinkedIn accounts

`POST /v1/actions/list_linkedin_accounts`

## Request

- Base URL: `https://api.heyreagent.com`
- URL: `https://api.heyreagent.com/v1/actions/list_linkedin_accounts`
- Auth: HTTP bearer

List your connected LinkedIn accounts and whether each one works.

accounts[].id is the connectionId every other action takes.

Accounts that do not work are listed too. A action refuses the id of one whose connectionStatus is not "connected".

Docs: https://heyreagent.com/docs/actions/list_linkedin_accounts

## Request body

- object
  - `includeAllSetups` boolean: If true, return every LinkedIn account. Default returns accounts scoped to active setup.

## Response `200`

It worked. Inside result: total, alwaysOnReadyCount, needsAttentionCount, maxAllowed, accounts.

- Worked
  - `ok` true, required
  - `result` object, required: What was asked for. A field that does not apply is left out, or is null.

## Other responses

- `default`: It did not work. The message says why, in plain English.

---

[API](https://skmtc.dev/heyreagent/apis/heyreagent-api.md) · [All operations](https://skmtc.dev/heyreagent/apis/heyreagent-api/llms.txt) · [OpenAPI document](https://skmtc.dev/heyreagent/apis/heyreagent-api/revisions/917360c5f841?raw)
