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

> List the profiles in your Zernio workspace. Includes SDK V2 guidance, input constraints, response fields, and Deepline credit cost.

List the profiles in your Zernio workspace.

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

## 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_profiles',
  {
    "includeOverLimit": false,
    "name": "Example",
    "externalId": "external_123"
  },
);

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

### CLI

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline run zernio_list_profiles --input '{
  "includeOverLimit": false,
  "name": "Example",
  "externalId": "external_123"
}'
```

## 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": {
    "profiles": [
      {
        "_id": "_123",
        "userId": "user_123",
        "name": "Example"
      }
    ],
    "total": 123,
    "skip": 123
  }
}
```

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

## Input reference

Returns profiles sorted default-first, then by creation date. Filter with name or externalId (exact match) and paginate with limit/skip. without those params the full list is returned unchanged. Use includeOverLimit=true to include profiles that exceed the plan limit.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `payload.includeOverLimit` | `boolean` | No | `false` | When true, includes over-limit profiles (marked with isOverLimit: true). |
| `payload.name` | `string` | No | — | Exact-match filter on the profile name. Useful to recover a profile id after an ambiguous create (timeout followed by a 409 on retry). |
| `payload.externalId` | `string` | No | — | Exact-match filter on the externalId you set on the profile, to find the profile of one of your tenants without storing its Zernio id. Team members can each own a profile with the same externalId, so the result is a list. |
| `payload.limit` | `integer` | No | — | Page size. When limit or skip is present, the response includes total and skip (and echoes limit). Minimum: 1. Maximum: 1000. |
| `payload.skip` | `integer` | No | — | Number of profiles to skip, applied after sorting and filtering. Minimum: 0. |

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

  ### Input JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "Returns profiles sorted default-first, then by creation date. Filter with name or externalId (exact match) and paginate with limit/skip; without those params the full list is returned unchanged. Use includeOverLimit=true to include profiles that exceed the plan limit.",
    "properties": {
      "includeOverLimit": {
        "type": "boolean",
        "description": "When true, includes over-limit profiles (marked with isOverLimit: true).",
        "default": false
      },
      "name": {
        "type": "string",
        "description": "Exact-match filter on the profile name. Useful to recover a profile id after an ambiguous create (timeout followed by a 409 on retry)."
      },
      "externalId": {
        "type": "string",
        "description": "Exact-match filter on the externalId you set on the profile, to find the profile of one of your tenants without storing its Zernio id. Team members can each own a profile with the same externalId, so the result is a list."
      },
      "limit": {
        "type": "integer",
        "description": "Page size. When limit or skip is present, the response includes total and skip (and echoes limit).",
        "minimum": 1,
        "maximum": 1000,
        "pageSize": {
          "next": "skip"
        }
      },
      "skip": {
        "type": "integer",
        "description": "Number of profiles to skip, applied after sorting and filtering.",
        "minimum": 0
      }
    },
    "required": [],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

Standard tool result payload.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `result.data` | `object` | Yes | — | Provider response payload. |
| `result.data.profiles` | `array` | No | — | — |
| `result.data.profiles[]._id` | `string` | No | — | — |
| `result.data.profiles[].userId` | `string` | No | — | — |
| `result.data.profiles[].name` | `string` | No | — | — |
| `result.data.profiles[].description` | `string` | No | — | — |
| `result.data.profiles[].color` | `string` | No | — | — |
| `result.data.profiles[].timezone` | `string \| null` | No | — | IANA timezone new posts on this profile use when the request names no `timezone`. Null means UTC. |
| `result.data.profiles[].externalId` | `string \| null` | No | — | Your own identifier for this profile, set on create or update. Null when none is set. |
| `result.data.profiles[].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. Allowed: `standard`, `none`. |
| `result.data.profiles[].effectiveContentRetention` | `"standard" \| "none"` | No | — | The mode that applies to this profile: `none` when the profile or the whole team uses zero content retention. Allowed: `standard`, `none`. |
| `result.data.profiles[].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.profiles[].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.profiles[].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.profiles[].isDefault` | `boolean` | No | — | — |
| `result.data.profiles[].isOverLimit` | `boolean` | No | — | Only present when includeOverLimit=true. Indicates if this profile exceeds the plan limit. |
| `result.data.profiles[].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.profiles[].createdAt` | `string` | No | — | Format: `date-time`. |
| `result.data.total` | `integer` | No | — | Total matching profiles across all pages. Present only when limit or skip was passed. |
| `result.data.skip` | `integer` | No | — | Offset applied. Present only when limit or skip was passed. |
| `result.data.limit` | `integer` | No | — | Echo of the limit query param. Present only when it was passed. |
| `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": {
          "profiles": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "_id": {
                  "type": "string"
                },
                "userId": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                },
                "description": {
                  "type": "string"
                },
                "color": {
                  "type": "string"
                },
                "timezone": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "IANA timezone new posts on this profile use when the request names no `timezone`. Null means UTC."
                },
                "externalId": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Your own identifier for this profile, set on create or update. Null when none is set."
                },
                "contentRetention": {
                  "type": "string",
                  "description": "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.",
                  "enum": [
                    "standard",
                    "none"
                  ]
                },
                "effectiveContentRetention": {
                  "type": "string",
                  "description": "The mode that applies to this profile: `none` when the profile or the whole team uses zero content retention.",
                  "enum": [
                    "standard",
                    "none"
                  ]
                },
                "maxOutboundCallsPerHour": {
                  "type": [
                    "integer",
                    "null"
                  ],
                  "description": "Most outbound calls placed from this profile's numbers in any rolling hour. Null means only the team limits apply."
                },
                "maxDailyCallSpendUsd": {
                  "type": [
                    "number",
                    "null"
                  ],
                  "description": "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."
                },
                "maxForwardedMinutesPerDay": {
                  "type": [
                    "integer",
                    "null"
                  ],
                  "description": "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."
                },
                "isDefault": {
                  "type": "boolean"
                },
                "isOverLimit": {
                  "type": "boolean",
                  "description": "Only present when includeOverLimit=true. Indicates if this profile exceeds the plan limit."
                },
                "accountCount": {
                  "type": "integer",
                  "description": "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."
                },
                "createdAt": {
                  "type": "string",
                  "format": "date-time"
                }
              },
              "additionalProperties": false
            }
          },
          "total": {
            "type": "integer",
            "description": "Total matching profiles across all pages. Present only when limit or skip was passed."
          },
          "skip": {
            "type": "integer",
            "description": "Offset applied. Present only when limit or skip was passed."
          },
          "limit": {
            "type": "integer",
            "description": "Echo of the limit query param. Present only when it was passed."
          }
        },
        "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

* [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.