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

> List contacts in your Amplemarket workspace by name, account ID or contact IDs. Includes SDK V2 examples, input constraints, response fields, and Deepline cost.

List contacts in your Amplemarket workspace by name, account ID or contact IDs.

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

## 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(
  'amplemarket_get_contacts',
  {
    "name": "Example"
  },
);

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

### CLI

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline tools execute amplemarket_get_contacts --input '{
  "name": "Example"
}' --json
```

## 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": {
    "contacts": [
      {
        "id": "123e4567-e89b-42d3-a456-426614174000",
        "email": "jane.doe@example.com"
      }
    ]
  }
}
```

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

## Input reference

List contacts. Supply at least one of name, account\_id, or ids.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `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\[] Format: `uuid`. |
| `payload.ids` | `array` | No | — | Optional contact ID filter (maximum of 20 ids). Use ids\[] or name/account\_id filters Maximum items: 20. |

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

  ### Input JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "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 reference

Standard tool result payload.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `result.data` | `object` | Yes | — | Provider response payload. |
| `result.data.contacts` | `array` | No | — | — |
| `result.data.contacts[].id` | `string` | Yes | — | Format: `uuid`. |
| `result.data.contacts[].name` | `string \| null` | No | — | — |
| `result.data.contacts[].first_name` | `string \| null` | No | — | — |
| `result.data.contacts[].last_name` | `string \| null` | No | — | — |
| `result.data.contacts[].email` | `string \| null` | Yes | — | — |
| `result.data.contacts[].linkedin_url` | `string \| null` | No | — | Format: `uri`. |
| `result.data.contacts[].title` | `string \| null` | No | — | — |
| `result.data.contacts[].location` | `string \| null` | No | — | — |
| `result.data.contacts[].time_zone` | `string \| null` | No | — | — |
| `result.data.contacts[].company_name` | `string \| null` | No | — | — |
| `result.data.contacts[].company_domain` | `string \| null` | No | — | — |
| `result.data.contacts[].owner` | `string \| null` | No | — | — |
| `result.data.contacts[].last_contacted_at` | `string \| null` | No | — | Format: `date_time`. |
| `result.data.contacts[].phone_numbers` | `array` | No | — | — |
| `result.data.contacts[].phone_numbers[].object` | `"phone_number"` | Yes | — | Allowed: `phone_number`. |
| `result.data.contacts[].phone_numbers[].id` | `string` | Yes | — | Format: `uuid`. |
| `result.data.contacts[].phone_numbers[].number` | `string` | Yes | — | — |
| `result.data.contacts[].phone_numbers[].type` | `"mobile" \| "office" \| "phone" \| "landline" \| "voip" \| "direct"` | Yes | — | Allowed: `mobile`, `office`, `phone`, `landline`, `voip`, `direct`. |
| `result.data.contacts[].phone_numbers[].source` | `"amplemarket" \| "crm" \| "user_uploaded" \| "uploaded_by_user"` | No | — | Origin of the phone number. Amplemarket returns uploaded\_by\_user for numbers supplied through post\_contacts. Allowed: `amplemarket`, `crm`, `user_uploaded`, `uploaded_by_user`. |
| `result.data.contacts[].phone_numbers[].is_wrong_number` | `boolean` | Yes | — | — |
| `result.data.contacts[].phone_numbers[].is_dnc_listed` | `boolean` | No | — | Present only when the account has phone number DNC list enabled |
| `result.data.contacts[].phone_numbers[].kind` | `string` | No | — | Phone number kind. Amplemarket returns this alongside the documented type field. |
| `result.data.contacts[].phone_numbers[].uploaded_id` | `string` | No | — | Identifier of the uploaded phone number record, present when a caller supplied the number. |
| `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": {
          "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>

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

* [Amplemarket provider guide](https://deepline.com/docs/providers/amplemarket/guide.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.