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

# Lemlist Signals And Fields: Inputs, Cost & CLI Example

> Listing all custom fields for contacts and companies. Includes inputs, outputs, pricing notes, Deepline CLI examples, and GTM automation guidance.

## Run in Enrichment Spreadsheet

<Info>
  Use this function as a column step in `deepline enrich`.
</Info>

```bash theme={null}
deepline enrich --input leads.csv --output leads.enriched.csv --with 'result=lemlist_list_fields:{}' --json
```

<Tip>
  Map payload values to spreadsheet columns with `{{column_name}}` placeholders.
</Tip>

## Input Schema

Input schema is not available yet.

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

  ### Input JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "description": "List all custom fields for contacts and companies.",
    "properties": {},
    "additionalProperties": false
  }
  ```
</details>

## Output Schema

| Name            | Type     | Required | Default | Description |
| --------------- | -------- | -------- | ------- | ----------- |
| `result.status` | `string` | Yes      |         |             |
| `result.result` | `array`  | Yes      |         |             |

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

  ### Output JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "status": {
        "type": "string"
      },
      "result": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "_id": {
              "type": "string"
            },
            "name": {
              "type": "string"
            },
            "type": {
              "type": "string"
            }
          },
          "required": [
            "_id",
            "name",
            "type"
          ],
          "additionalProperties": true
        }
      }
    },
    "required": [
      "status",
      "result"
    ],
    "additionalProperties": true
  }
  ```
</details>

## Advanced: Direct CLI

<Info>
  Use direct execution for single payload debugging.
</Info>

```bash theme={null}
deepline tools execute lemlist_list_fields --payload '{}' --json
```

### CLI flags

| Flag                        | Description                                         |
| --------------------------- | --------------------------------------------------- |
| `--json`                    | Print machine-readable output.                      |
| `--wait`                    | Wait for terminal provider status when supported.   |
| `--debug`                   | Enable wait mode with additional status/log output. |
| `--wait-timeout SECONDS`    | Max seconds to wait in wait mode.                   |
| `--poll-interval SECONDS`   | Polling interval in seconds during wait mode.       |
| `--timeout SECONDS`         | Request timeout in seconds.                         |
| `--connect-timeout SECONDS` | Connection timeout in seconds.                      |

## Provider API Context

<details>
  <summary>Show provider reference (optional)</summary>

  ```md theme={null}
  > Lists all available fields for contacts and companies.

  # List Fields

  Returns all available fields for contacts and companies, grouped by entity.
  Use this endpoint to discover field names before upserting contacts or companies.

  ## Field sources

  | Source       | Description                                                               |
  | ------------ | ------------------------------------------------------------------------- |
  | `default`    | Built-in fields available on every account (e.g. email, firstName, phone) |
  | `custom`     | Custom fields created by your team                                        |
  | `crm_synced` | Fields from your connected CRM's field mapping configuration              |

  ## CRM-synced fields

  When your team has a CRM connected, fields with `source: "crm_synced"` reflect the field mapping configured between lemlist and your CRM. These fields include an additional `crmField` property containing the corresponding field name on the CRM side.

  If no CRM is connected, no `crm_synced` fields are returned.

  ## Filtering

  Use query parameters to narrow results:

  * **`entity`** — return fields for a single entity (`contact` or `company`)
  * **`source`** — return only fields from a specific source (`default`, `custom`, or `crm_synced`)

  Both filters can be combined.

  ## 33. Attach Labels to Conversations

  Source: https://developer.lemlist.com/api-reference/endpoints/inbox/attach-labels-to-conversations.md
  ```
</details>

## Cost

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