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

# GetLeads: Get Available Columns

> List searchable or exportable GetLeads contact fields and columns. Includes SDK V2 guidance, input constraints, response fields, and Deepline credit cost.

List searchable or exportable GetLeads contact fields and columns.

<Info>
  Tool ID: `getleads_get_available_columns`
</Info>

## Run this action

Use the TypeScript SDK for a single call. Put `ctx.tools.execute(...)` inside a Play when the call should be durable, scheduled, or run across a CSV.

```ts theme={null}
import { Deepline } from 'deepline';

const deepline = await Deepline.connect();
const result = await deepline.tools.execute(
  'getleads_get_available_columns',
  {
    "group": "example",
    "searchable_only": true,
    "exportable_only": true
  },
);

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

### CLI

```bash theme={null}
deepline tools execute getleads_get_available_columns --input '{
  "group": "example",
  "searchable_only": true,
  "exportable_only": true
}' --json
```

## Example response

The SDK exposes this shape at `result.toolResponse.raw`. Values below are representative.

```json theme={null}
{
  "data": {
    "ok": true,
    "fields": [
      {}
    ],
    "count": 123
  }
}
```

Use `deepline tools get getleads_get_available_columns --json` for the latest machine-readable contract.

## Input reference

Catalog of fields for `columns` / `where_sql` on the active dataset (0 credits). Swarm has about 85 exportable columns; Classic-only names such as NAICS, traffic, per-tech columns, and role counts are gone. A 400 from search includes `column_replacements` for those names.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `payload.group` | `string` | No | — | Optional group filter (e.g. Company, Contact Job). |
| `payload.searchable_only` | `boolean` | No | — | When true, only fields usable in where\_sql. |
| `payload.exportable_only` | `boolean` | No | — | When true, only fields usable in columns / CSV export. |

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

  ### Input JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "description": "Catalog of fields for `columns` / `where_sql` on the active dataset (0 credits). Swarm has about 85 exportable columns; Classic-only names such as NAICS, traffic, per-tech columns, and role counts are gone. A 400 from search includes `column_replacements` for those names.",
    "properties": {
      "group": {
        "type": "string",
        "description": "Optional group filter (e.g. Company, Contact Job)."
      },
      "searchable_only": {
        "type": "boolean",
        "description": "When true, only fields usable in where_sql."
      },
      "exportable_only": {
        "type": "boolean",
        "description": "When true, only fields usable in columns / CSV export."
      }
    },
    "required": [],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

Standard tool result payload.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `result.data` | `object` | Yes | — | Provider response payload. |
| `result.data.ok` | `boolean` | No | — | — |
| `result.data.fields` | `array` | No | — | — |
| `result.data.count` | `integer` | No | — | — |
| `result.data.searchable_field_count` | `integer` | No | — | — |
| `result.data.dataset` | `string` | No | — | — |
| `result.meta` | `object` | No | — | Additional response metadata (status, paging). |

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

  ### Output JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "description": "Standard tool result payload.",
    "properties": {
      "data": {
        "type": "object",
        "description": "Provider response payload.",
        "properties": {
          "ok": {
            "type": "boolean"
          },
          "fields": {
            "type": "array",
            "items": {
              "type": "object"
            }
          },
          "count": {
            "type": "integer"
          },
          "searchable_field_count": {
            "type": "integer"
          },
          "dataset": {
            "type": "string"
          }
        },
        "required": [],
        "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

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


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