> ## 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.

# Zernio: List Accounts

> List the social accounts connected to your Zernio workspace (LinkedIn, Instagram, X, TikTok and more), with account IDs, platform, username and connection.

List the social accounts connected to your Zernio workspace (LinkedIn, Instagram, X, TikTok and more), with account IDs, platform, username and connection.

> [!NOTE]
>
> Tool ID: `zernio_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(
  'zernio_list_accounts',
  {
    "profileId": "profile_123",
    "platform": "example",
    "status": "connected"
  },
);

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

### CLI

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline run zernio_list_accounts --input '{
  "profileId": "profile_123",
  "platform": "example",
  "status": "connected"
}'
```

## 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": {
    "accounts": [
      {
        "_id": "_123",
        "platform": "tiktok",
        "profileId": "profile_123",
        "isActive": true
      }
    ],
    "hasAnalyticsAccess": true
  }
}
```

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

## Input reference

Returns connected accounts. Only includes accounts within the plan limit by default. Follower data requires analytics access. ### Pagination Server-side pagination is optional. When omitted, the dashboard gets every account, while an API key or OAuth app gets at most 500: the first cursor page, ordered by account id. When that cap cuts the list, the response carries `warning` and `pagination.nextCursor`, plus the `X-Result-Truncated: true` and `X-Result-Limit: 500` headers. Pass `nextCursor` back as `cursor` (with `limit`) to list the rest. - Cursor paging: send `limit` alone for the first page, then pass `pagination.nextCursor` back as `cursor` until it is null. Pages are ordered by account id, so accounts added or removed between calls never shift a page. Cannot be combined with `page`, `sort` or `perProfile`. - Offset paging: send `page` and `limit` together. Out-of-range page/limit See the live schema below for the complete notes.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `payload.profileId` | `string` | No | — | Filter accounts by profile ID. Must be a valid ObjectId. |
| `payload.platform` | `string` | No | — | Filter accounts by platform (e.g. "instagram", "twitter"). |
| `payload.status` | `"connected" \| "disconnected"` | No | — | Filter accounts by connection status. `connected` returns healthy accounts. `disconnected` returns accounts that need reconnection (per the same reconnection check surfaced in the dashboard). Omit to return accounts in any status. When combined with page/limit, pagination totals reflect the filtered result set. Allowed: `connected`, `disconnected`. |
| `payload.search` | `string` | No | — | Case-insensitive match on the account username, display name or platform user id. A 24-character hexadecimal value is read as an account id and matches only that exact account. Combine with page/limit to paginate the matches. Minimum length: 1. Maximum length: 100. |
| `payload.category` | `"social" \| "ads" \| "communication" \| "blogs" \| "crm" \| "analytics"` | No | — | Only accounts of this kind. ads = ad accounts (Meta, Google, LinkedIn, Pinterest, TikTok, X, OpenAI, Reddit, Microsoft), communication = WhatsApp, Telegram, Discord, Slack, iMessage, LINE and WeChat, blogs = Shopify and WordPress, crm = HubSpot and Salesforce, analytics = Google Analytics, Search Console, Stripe, Tag Manager and Axon, social = every other platform. Allowed: `social`, `ads`, `communication`, `blogs`, `crm`, `analytics`. |
| `payload.sort` | `"account" \| "platform" \| "profile" \| "status" \| "connected"` | No | — | Sort an offset-paginated listing (page and limit) by account name, platform, profile name, status (accounts needing a reconnect first when ascending) or connection date. Ties keep the default order: platform, then newest first. Allowed: `account`, `platform`, `profile`, `status`, `connected`. |
| `payload.order` | `"asc" \| "desc"` | No | `"asc"` | Direction for `sort`. Allowed: `asc`, `desc`. |
| `payload.includeOverLimit` | `boolean` | No | `false` | When true, includes accounts from over-limit profiles. |
| `payload.excludeHidden` | `boolean` | No | `false` | When true, leaves out accounts the dashboard does not show as connections: - posting accounts with `enabled: false` (ads accounts are always kept, whatever their `enabled` value). - the internal `sms` and `phone` accounts behind each phone number. Applied before pagination, so page totals and `statusCounts` count only the remaining accounts. Sandbox accounts added by `includeSandbox` are appended after this filter. Accepts `true` or `false` in any letter case. any other value returns 400. |
| `payload.platforms` | `string` | No | — | Comma-separated platforms (up to 50) to list together, the several-platform form of `platform`. Applied before pagination. |
| `payload.adAccountRows` | `boolean` | No | `false` | When true, lists every ads account row, one per ad account. By default an API key or OAuth app sees each ads login once per profile and platform, as the single ads connection it had before rows per ad account: its oldest row. Only changes the result once ads are connected as one row per ad account. until then the two shapes are the same. Applied before pagination. Accepts `true` or `false` in any letter case. any other value returns 400. |
| `payload.includeCreatorAccounts` | `boolean` | No | `false` | When true, also lists the accounts creators connected to your creator campaigns. They sit on creator profiles, which `GET /v1/profiles` does not list, and are left out by default. Asking for one creator profile by `profileId` lists its accounts either way. Applied before pagination. Accepts `true` or `false` in any letter case. any other value returns 400. |
| `payload.includeSandbox` | `boolean` | No | `false` | When true, appends the shared WhatsApp sandbox account and the iMessage sandbox account to the list when they are active, honouring `platform` but no other filter. Ignored on a paginated request (page, limit or cursor) and together with `perProfile`. Accepts `true` or `false` in any letter case. any other value returns 400. |
| `payload.includeStatusCounts` | `boolean` | No | `false` | When true, the response carries `statusCounts`: how many accounts match every other filter of the request (with `status` lifted) in total and how many of those need a reconnection. Accepts `true` or `false` in any letter case. any other value returns 400. |
| `payload.page` | `integer` | No | — | Page number (1-based) for offset paging. Requires limit. omit page, limit and cursor for an unpaged listing (at most 500 accounts for an API key or OAuth app). Minimum: 1. |
| `payload.limit` | `integer` | No | — | Page size. With page, an offset page. alone or with cursor, a cursor page. Minimum: 1. Maximum: 500. |
| `payload.cursor` | `string` | No | — | Opaque cursor from a previous response's `pagination.nextCursor`. Returns the next page of `limit` accounts (500 when limit is omitted). A cursor we cannot parse returns 400. Cannot be combined with page. |
| `payload.profileIds` | `string` | No | — | Comma-separated profile IDs (up to 50) to preview, together with perProfile. The response then also carries `profileTotals`. |
| `payload.perProfile` | `integer` | No | — | Return a preview of each profile in profileIds: the newest account of every platform it has, topped up to at least N. Requires profileIds. cannot be combined with page, limit or cursor. Minimum: 1. Maximum: 24. |

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

  ### Input JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "Returns connected accounts. Only includes accounts within the plan limit by default. Follower data requires analytics access. ### Pagination Server-side pagination is optional. When omitted, the dashboard gets every account, while an API key or OAuth app gets at most 500: the first cursor page, ordered by account id. When that cap cuts the list, the response carries `warning` and `pagination.nextCursor`, plus the `X-Result-Truncated: true` and `X-Result-Limit: 500` headers. Pass `nextCursor` back as `cursor` (with `limit`) to list the rest. - Cursor paging: send `limit` alone for the first page, then pass `pagination.nextCursor` back as `cursor` until it is null. Pages are ordered by account id, so accounts added or removed between calls never shift a page. Cannot be combined with `page`, `sort` or `perProfile`. - Offset paging: send `page` and `limit` together. Out-of-range page/limit values are rejected with 400 rather than silently clamped.",
    "properties": {
      "profileId": {
        "type": "string",
        "description": "Filter accounts by profile ID. Must be a valid ObjectId."
      },
      "platform": {
        "type": "string",
        "description": "Filter accounts by platform (e.g. \"instagram\", \"twitter\")."
      },
      "status": {
        "type": "string",
        "description": "Filter accounts by connection status. `connected` returns healthy accounts; `disconnected` returns accounts that need reconnection (per the same reconnection check surfaced in the dashboard). Omit to return accounts in any status. When combined with page/limit, pagination totals reflect the filtered result set.",
        "enum": [
          "connected",
          "disconnected"
        ]
      },
      "search": {
        "type": "string",
        "description": "Case-insensitive match on the account username, display name or platform user id. A 24-character hexadecimal value is read as an account id and matches only that exact account. Combine with page/limit to paginate the matches.",
        "minLength": 1,
        "maxLength": 100
      },
      "category": {
        "type": "string",
        "description": "Only accounts of this kind. ads = ad accounts (Meta, Google, LinkedIn, Pinterest, TikTok, X, OpenAI, Reddit, Microsoft), communication = WhatsApp, Telegram, Discord, Slack, iMessage, LINE and WeChat, blogs = Shopify and WordPress, crm = HubSpot and Salesforce, analytics = Google Analytics, Search Console, Stripe, Tag Manager and Axon, social = every other platform.",
        "enum": [
          "social",
          "ads",
          "communication",
          "blogs",
          "crm",
          "analytics"
        ]
      },
      "sort": {
        "type": "string",
        "description": "Sort an offset-paginated listing (page and limit) by account name, platform, profile name, status (accounts needing a reconnect first when ascending) or connection date. Ties keep the default order: platform, then newest first.",
        "enum": [
          "account",
          "platform",
          "profile",
          "status",
          "connected"
        ]
      },
      "order": {
        "type": "string",
        "description": "Direction for `sort`.",
        "default": "asc",
        "enum": [
          "asc",
          "desc"
        ]
      },
      "includeOverLimit": {
        "type": "boolean",
        "description": "When true, includes accounts from over-limit profiles.",
        "default": false
      },
      "excludeHidden": {
        "type": "boolean",
        "description": "When true, leaves out accounts the dashboard does not show as connections: - posting accounts with `enabled: false` (ads accounts are always kept, whatever their `enabled` value); - the internal `sms` and `phone` accounts behind each phone number. Applied before pagination, so page totals and `statusCounts` count only the remaining accounts. Sandbox accounts added by `includeSandbox` are appended after this filter. Accepts `true` or `false` in any letter case; any other value returns 400.",
        "default": false
      },
      "platforms": {
        "type": "string",
        "description": "Comma-separated platforms (up to 50) to list together, the several-platform form of `platform`. Applied before pagination."
      },
      "adAccountRows": {
        "type": "boolean",
        "description": "When true, lists every ads account row, one per ad account. By default an API key or OAuth app sees each ads login once per profile and platform, as the single ads connection it had before rows per ad account: its oldest row. Only changes the result once ads are connected as one row per ad account; until then the two shapes are the same. Applied before pagination. Accepts `true` or `false` in any letter case; any other value returns 400.",
        "default": false
      },
      "includeCreatorAccounts": {
        "type": "boolean",
        "description": "When true, also lists the accounts creators connected to your creator campaigns. They sit on creator profiles, which `GET /v1/profiles` does not list, and are left out by default. Asking for one creator profile by `profileId` lists its accounts either way. Applied before pagination. Accepts `true` or `false` in any letter case; any other value returns 400.",
        "default": false
      },
      "includeSandbox": {
        "type": "boolean",
        "description": "When true, appends the shared WhatsApp sandbox account and the iMessage sandbox account to the list when they are active, honouring `platform` but no other filter. Ignored on a paginated request (page, limit or cursor) and together with `perProfile`. Accepts `true` or `false` in any letter case; any other value returns 400.",
        "default": false
      },
      "includeStatusCounts": {
        "type": "boolean",
        "description": "When true, the response carries `statusCounts`: how many accounts match every other filter of the request (with `status` lifted) in total and how many of those need a reconnection. Accepts `true` or `false` in any letter case; any other value returns 400.",
        "default": false
      },
      "page": {
        "type": "integer",
        "description": "Page number (1-based) for offset paging. Requires limit; omit page, limit and cursor for an unpaged listing (at most 500 accounts for an API key or OAuth app).",
        "minimum": 1
      },
      "limit": {
        "type": "integer",
        "description": "Page size. With page, an offset page; alone or with cursor, a cursor page.",
        "minimum": 1,
        "maximum": 500,
        "pageSize": {
          "next": "page"
        }
      },
      "cursor": {
        "type": "string",
        "description": "Opaque cursor from a previous response's `pagination.nextCursor`; returns the next page of `limit` accounts (500 when limit is omitted). A cursor we cannot parse returns 400. Cannot be combined with page."
      },
      "profileIds": {
        "type": "string",
        "description": "Comma-separated profile IDs (up to 50) to preview, together with perProfile. The response then also carries `profileTotals`."
      },
      "perProfile": {
        "type": "integer",
        "description": "Return a preview of each profile in profileIds: the newest account of every platform it has, topped up to at least N. Requires profileIds; cannot be combined with page, limit or cursor.",
        "minimum": 1,
        "maximum": 24
      }
    },
    "required": [],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

Standard tool result payload.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `result.data` | `object` | Yes | — | Provider response payload. |
| `result.data.accounts` | `array` | Yes | — | — |
| `result.data.accounts[]._id` | `string` | Yes | — | — |
| `result.data.accounts[].platform` | `"tiktok" \| "instagram" \| "facebook" \| "youtube" \| "linkedin" \| "twitter" \| "threads" \| "pinterest" \| "reddit" \| "bluesky" \| "googlebusiness" \| "telegram" \| "snapchat" \| "discord" \| "slack" \| "whatsapp" \| "shopify" \| "wordpress" \| "wix" \| "linkedinads" \| "metaads" \| "pinterestads" \| "tiktokads" \| "xads" \| "googleads" \| "openaiads" \| "redditads" \| "sms" \| "phone" \| "rcs" \| "whopads" \| "applovinads" \| "snapchatads" \| "taboolaads" \| "outbrainads" \| "criteoads" \| "spotifyads" \| "klaviyo" \| "attentive" \| "mailchimp" \| "customendpoint" \| "impact" \| "awin" \| "google" \| "microsoft" \| "imap" \| "hubspot" \| "salesforce" \| "webflow" \| "googleanalytics" \| "imessage" \| "tiktokshop" \| "microsoftads" \| "line" \| "wechat" \| "googletagmanager" \| "stripe" \| "paddle" \| "chargebee" \| "googlesearchconsole" \| "campaignmanager360" \| "tradedeskads" \| "tradedeskdsp" \| "amazonads" \| "gohighlevel"` | Yes | — | Allowed: `tiktok`, `instagram`, `facebook`, `youtube`, `linkedin`, `twitter`, `threads`, `pinterest`, `reddit`, `bluesky`, `googlebusiness`, `telegram`, `snapchat`, `discord`, `slack`, `whatsapp`, `shopify`, `wordpress`, `wix`, `linkedinads`, `metaads`, `pinterestads`, `tiktokads`, `xads`, `googleads`, `openaiads`, `redditads`, `sms`, `phone`, `rcs`, `whopads`, `applovinads`, `snapchatads`, `taboolaads`, `outbrainads`, `criteoads`, `spotifyads`, `klaviyo`, `attentive`, `mailchimp`, See the live schema for the complete constraint. |
| `result.data.accounts[].profileId` | `string \| object` | Yes | — | — |
| `result.data.accounts[].profileId._id` | `string` | No | — | — |
| `result.data.accounts[].profileId.userId` | `string` | No | — | — |
| `result.data.accounts[].profileId.name` | `string` | No | — | — |
| `result.data.accounts[].profileId.description` | `string` | No | — | — |
| `result.data.accounts[].profileId.color` | `string` | No | — | — |
| `result.data.accounts[].profileId.timezone` | `string \| null` | No | — | IANA timezone new posts on this profile use when the request names no `timezone`. Null means UTC. |
| `result.data.accounts[].profileId.externalId` | `string \| null` | No | — | Your own identifier for this profile, set on create or update. Null when none is set. |
| `result.data.accounts[].profileId.contentRetention` | `"standard" \| "none"` | No | — | This profile's own zero content retention setting. `none` stores identifiers and metadata only for this profile. Change it with `contentRetention` on update. Only the team owner can. |
| `result.data.accounts[].profileId.effectiveContentRetention` | `"standard" \| "none"` | No | — | The mode that applies to this profile: `none` when the profile or the whole team uses zero content retention. |
| `result.data.accounts[].profileId.maxOutboundCallsPerHour` | `integer \| null` | No | — | Most outbound calls placed from this profile's numbers in any rolling hour. Null means only the team limits apply. |
| `result.data.accounts[].profileId.maxDailyCallSpendUsd` | `number \| null` | No | — | Most billed spend, in USD, on outbound calls and calls forwarded to a phone from this profile's numbers in any rolling 24 hours. Null means only the team limits apply. |
| `result.data.accounts[].profileId.maxForwardedMinutesPerDay` | `integer \| null` | No | — | Most minutes of inbound calls forwarded to a phone from this profile's numbers in any rolling 24 hours. Null means only the team limits apply. |
| `result.data.accounts[].profileId.isDefault` | `boolean` | No | — | — |
| `result.data.accounts[].profileId.isOverLimit` | `boolean` | No | — | Only present when includeOverLimit=true. Indicates if this profile exceeds the plan limit. |
| `result.data.accounts[].profileId.accountCount` | `integer` | No | — | In the profile list. Connected accounts on the profile, including ones that need reconnecting. phone and SMS number internals and posting accounts hidden by an ads connect are not counted. |
| `result.data.accounts[].profileId.createdAt` | `string` | No | — | — |
| `result.data.accounts[].username` | `string` | No | — | — |
| `result.data.accounts[].displayName` | `string` | No | — | — |
| `result.data.accounts[].capabilities` | `object` | No | — | On Google, Microsoft and IMAP accounts with email access: what this mailbox provider can do, so you can branch before calling. |
| `result.data.accounts[].capabilities.sync` | `object` | No | — | — |
| `result.data.accounts[].capabilities.sync.mode` | `"push" \| "poll"` | No | — | Allowed: `push`, `poll`. |
| `result.data.accounts[].capabilities.sync.typicalDelaySeconds` | `integer` | No | — | — |
| `result.data.accounts[].capabilities.sentItems` | `object` | No | — | Outlook only: how mail sent from the user's own mail client reaches you (`message.sent`). `poll` while Microsoft will not give Zernio a Sent Items subscription for this mailbox. It switches back to `push` by itself. |
| `result.data.accounts[].capabilities.sentItems.mode` | `"push" \| "poll"` | No | — | Allowed: `push`, `poll`. |
| `result.data.accounts[].capabilities.sentItems.typicalDelaySeconds` | `integer` | No | — | — |
| `result.data.accounts[].capabilities.drafts` | `object` | No | — | — |
| `result.data.accounts[].capabilities.drafts.supported` | `boolean` | No | — | — |
| `result.data.accounts[].capabilities.drafts.clientEditsVisible` | `boolean` | No | — | Edits the user makes in their mail client show up in the draft you read back. |
| `result.data.accounts[].capabilities.drafts.versioned` | `boolean` | No | — | Drafts carry a `version` for `If-Match`. |
| `result.data.accounts[].capabilities.forward` | `object` | No | — | — |
| `result.data.accounts[].capabilities.forward.native` | `boolean` | No | — | The provider forwards itself (Outlook's createForward). Otherwise Zernio builds the forward. |
| `result.data.accounts[].capabilities.forward.asAttachment` | `boolean` | No | — | — |
| `result.data.accounts[].capabilities.sendAs` | `object` | No | — | — |
| `result.data.accounts[].capabilities.sendAs.list` | `"provider" \| "partial" \| "declared"` | No | — | `provider`: `GET /v1/email/send-as` lists every address the provider accepts. `partial`: shared mailboxes are not listed. declare them with `POST /v1/email/send-as`. Allowed: `provider`, `partial`, `declared`. |
| `result.data.accounts[].capabilities.sendAs.sharedMailboxes` | `boolean` | No | — | — |
| `result.data.accounts[].capabilities.signatures` | `object` | No | — | — |
| `result.data.accounts[].capabilities.signatures.provider` | `"read" \| "none"` | No | — | `read`: `appendSignature` falls back to the provider signature when no Zernio default exists. Allowed: `read`, `none`. |
| `result.data.accounts[].capabilities.signatures.zernio` | `boolean` | No | — | Zernio-stored signatures (`/v1/email/signatures`) work on this mailbox. |
| `result.data.accounts[].capabilities.labels` | `object` | No | — | — |
| `result.data.accounts[].capabilities.labels.model` | `"labels" \| "categories" \| "folders"` | No | — | Allowed: `labels`, `categories`, `folders`. |
| `result.data.accounts[].capabilities.bounces` | `object` | No | — | — |
| `result.data.accounts[].capabilities.bounces.detection` | `boolean` | No | — | — |
| `result.data.accounts[].capabilities.scheduledSend` | `object` | No | — | — |
| `result.data.accounts[].capabilities.scheduledSend.holdAsDraft` | `boolean` | No | — | — |
| `result.data.accounts[].capabilities.tracking` | `boolean` | No | — | — |

The table shows the first 50 fields. Use the live contract below for every field.

> [!NOTE]
>
> This output schema is too large for an inline display. Read the complete live contract with `deepline describe zernio_list_accounts --json`.

## 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

* [Connect integrations](https://deepline.com/docs/integrations.md)
* [SDK V2 quickstart](https://deepline.com/docs/sdk-v2/quickstart.md)
* [SDK reference](https://deepline.com/docs/sdk-v2/sdk-reference.md)
* [Run tools across a CSV](https://deepline.com/docs/sdk-v2/batch-csv.md)


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