> ## Documentation Index
> Fetch the complete documentation index at: https://deepline.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Unipile: List Accounts

> List all connected messaging accounts (LinkedIn, WhatsApp, Instagram, Telegram, etc.). Includes inputs, outputs, SDK V2 examples, and Deepline cost.

List all connected messaging accounts (LinkedIn, WhatsApp, Instagram, Telegram, etc.).

> [!NOTE]
>
> Tool ID: `unipile_list_accounts`

## Run this action

Use the TypeScript SDK for one call. Use `ctx.tools.execute(...)` inside a Play for durable calls, scheduled calls, or CSV processing.

```ts theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
import { Deepline } from 'deepline';

const deepline = await Deepline.connect();
const result = await deepline.tools.execute(
  'unipile_list_accounts',
  {
    "limit": 123,
    "cursor": "cursor_123"
  },
);

console.log(result.toolResponse.raw);
```

### CLI

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline tools execute unipile_list_accounts --input '{
  "limit": 123,
  "cursor": "cursor_123"
}' --json
```

## Example response

The SDK returns this shape at `result.toolResponse.raw`. The example values illustrate the response.

```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
{
  "data": {
    "items": [
      {
        "object": "Account",
        "id": "id_123",
        "type": "example"
      }
    ],
    "cursor": "cursor_123",
    "object": "AccountList"
  }
}
```

Use `deepline describe unipile_list_accounts --json` for the latest machine-readable contract.

## Input reference

Retrieve all connected accounts

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `payload.limit` | `integer` | No | — | Page size, 1-250. Minimum: 1. Maximum: 250. |
| `payload.cursor` | `string` | No | — | Cursor from the previous page. |

<details>
  <summary>Show raw input schema</summary>

  ### Input JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "Retrieve all connected accounts",
    "properties": {
      "limit": {
        "type": "integer",
        "description": "Page size, 1-250.",
        "minimum": 1,
        "maximum": 250
      },
      "cursor": {
        "type": "string",
        "description": "Cursor from the previous page."
      }
    },
    "required": [],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

Standard tool result payload.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `result.data` | `object` | Yes | — | Provider response payload. |
| `result.data.items` | `array` | No | — | — |
| `result.data.items[].object` | `"Account"` | No | — | Allowed: `Account`. |
| `result.data.items[].id` | `string` | No | — | Unipile account ID |
| `result.data.items[].type` | `string` | No | — | Channel, e.g. LINKEDIN, WHATSAPP, INSTAGRAM, TELEGRAM, MESSENGER, TWITTER, MAIL, GOOGLE\_OAUTH, OUTLOOK |
| `result.data.items[].name` | `string` | No | — | Account display name |
| `result.data.items[].created_at` | `string` | No | — | Account connection timestamp (ISO 8601) Format: `date-time`. |
| `result.data.items[].connection_params` | `record` | No | — | Channel-specific connection details |
| `result.data.items[].sources` | `array` | No | — | — |
| `result.data.items[].sources[].id` | `string` | No | — | — |
| `result.data.items[].sources[].status` | `"OK" \| "STOPPED" \| "ERROR" \| "CREDENTIALS" \| "PERMISSIONS" \| "CONNECTING"` | No | — | Allowed: `OK`, `STOPPED`, `ERROR`, `CREDENTIALS`, `PERMISSIONS`, `CONNECTING`. |
| `result.data.cursor` | `string \| null` | No | — | Next page cursor, null if no more results |
| `result.data.object` | `"AccountList"` | No | — | Allowed: `AccountList`. |
| `result.meta` | `object` | No | — | Additional response metadata (status, paging). |

<details>
  <summary>Show raw output schema</summary>

  ### Output JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "Standard tool result payload.",
    "properties": {
      "data": {
        "type": "object",
        "description": "Provider response payload.",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "object": {
                  "type": "string",
                  "enum": [
                    "Account"
                  ]
                },
                "id": {
                  "type": "string",
                  "description": "Unipile account ID"
                },
                "type": {
                  "type": "string",
                  "description": "Channel, e.g. LINKEDIN, WHATSAPP, INSTAGRAM, TELEGRAM, MESSENGER, TWITTER, MAIL, GOOGLE_OAUTH, OUTLOOK"
                },
                "name": {
                  "type": "string",
                  "description": "Account display name"
                },
                "created_at": {
                  "type": "string",
                  "description": "Account connection timestamp (ISO 8601)",
                  "format": "date-time"
                },
                "connection_params": {
                  "type": "object",
                  "description": "Channel-specific connection details",
                  "additionalProperties": true
                },
                "sources": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "status": {
                        "type": "string",
                        "enum": [
                          "OK",
                          "STOPPED",
                          "ERROR",
                          "CREDENTIALS",
                          "PERMISSIONS",
                          "CONNECTING"
                        ]
                      }
                    },
                    "additionalProperties": false
                  }
                }
              },
              "additionalProperties": false
            }
          },
          "cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Next page cursor, null if no more results"
          },
          "object": {
            "type": "string",
            "enum": [
              "AccountList"
            ]
          }
        },
        "additionalProperties": false
      },
      "meta": {
        "type": "object",
        "description": "Additional response metadata (status, paging).",
        "additionalProperties": true
      }
    },
    "required": [
      "data"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Deepline cost

* Pricing model: `fixed` (per call).
* Estimated Deepline credits: `0` per pricing unit.
* Provider-native pricing may still exist outside Deepline credit billing.

## Related documentation

* [Unipile provider guide](/docs/providers/unipile/guide.md)
* [SDK V2 quickstart](/docs/sdk-v2/quickstart.md)
* [SDK reference](/docs/sdk-v2/sdk-reference.md)
* [Run tools across a CSV](/docs/sdk-v2/batch-csv.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.