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

# Amplemarket Get Contacts: Inputs, Cost & CLI Example

> Retrieve contacts. Amplemarket Amplemarket Get Contacts docs include request fields, response shape, pricing notes, and Deepline CLI examples.

## 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=amplemarket_get_contacts:{}' --json
```

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

## Input Schema

| Name                 | Type     | Required | Default | Description                                                                                          |
| -------------------- | -------- | -------- | ------- | ---------------------------------------------------------------------------------------------------- |
| `payload.name`       | `string` | No       |         | Optional contact name filter. Use with or without account\_id as an alternative to ids\[]            |
| `payload.account_id` | `string` | No       |         | Optional Prospect Hub account public ID filter. Use with or without name as an alternative to ids\[] |
| `payload.ids`        | `array`  | No       |         | Optional contact ID filter (maximum of 20 ids). Use ids\[] or name/account\_id filters               |

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

  ### Input JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "description": "List contacts. Supply at least one of name, account_id, or ids.",
    "properties": {
      "name": {
        "type": "string",
        "description": "Optional contact name filter. Use with or without account_id as an alternative to ids[]"
      },
      "account_id": {
        "type": "string",
        "description": "Optional Prospect Hub account public ID filter. Use with or without name as an alternative to ids[]",
        "format": "uuid"
      },
      "ids": {
        "type": "array",
        "description": "Optional contact ID filter (maximum of 20 ids). Use ids[] or name/account_id filters",
        "maxItems": 20,
        "items": {
          "type": "string"
        }
      }
    },
    "required": [],
    "anyOf": [
      {
        "required": [
          "name"
        ]
      },
      {
        "required": [
          "account_id"
        ]
      },
      {
        "required": [
          "ids"
        ]
      }
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output Schema

| Name          | Type     | Required | Default | Description                                    |
| ------------- | -------- | -------- | ------- | ---------------------------------------------- |
| `result.data` | `object` | Yes      |         | Provider response payload.                     |
| `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": {
          "contacts": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "format": "uuid"
                },
                "name": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "first_name": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "last_name": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "email": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "linkedin_url": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uri"
                },
                "title": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "location": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "time_zone": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "company_name": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "company_domain": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "owner": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "last_contacted_at": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "date_time"
                },
                "phone_numbers": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "object": {
                        "type": "string",
                        "enum": [
                          "phone_number"
                        ]
                      },
                      "id": {
                        "type": "string",
                        "format": "uuid"
                      },
                      "number": {
                        "type": "string"
                      },
                      "type": {
                        "type": "string",
                        "enum": [
                          "mobile",
                          "office",
                          "phone",
                          "landline",
                          "voip",
                          "direct"
                        ]
                      },
                      "source": {
                        "type": "string",
                        "description": "Origin of the phone number. Amplemarket returns uploaded_by_user for numbers supplied through post_contacts.",
                        "enum": [
                          "amplemarket",
                          "crm",
                          "user_uploaded",
                          "uploaded_by_user"
                        ]
                      },
                      "is_wrong_number": {
                        "type": "boolean"
                      },
                      "is_dnc_listed": {
                        "type": "boolean",
                        "description": "Present only when the account has phone number DNC list enabled"
                      },
                      "kind": {
                        "type": "string",
                        "description": "Phone number kind. Amplemarket returns this alongside the documented type field."
                      },
                      "uploaded_id": {
                        "type": "string",
                        "description": "Identifier of the uploaded phone number record, present when a caller supplied the number."
                      }
                    },
                    "required": [
                      "object",
                      "id",
                      "number",
                      "type",
                      "is_wrong_number"
                    ],
                    "additionalProperties": true
                  }
                }
              },
              "required": [
                "id",
                "email"
              ],
              "additionalProperties": true
            }
          }
        },
        "additionalProperties": false
      },
      "meta": {
        "type": "object",
        "description": "Additional response metadata (status, paging).",
        "additionalProperties": true
      }
    },
    "required": [
      "data"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Advanced: Direct CLI

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

```bash theme={null}
deepline tools execute amplemarket_get_contacts --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.                      |

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