> ## 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 Post Contacts: Inputs, Cost & CLI Example

> Create contact. Amplemarket Amplemarket Post 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_post_contacts:{"email":"{{email}}"}' --json
```

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

## Input Schema

| Name                     | Type     | Required | Default | Description                                                                     |
| ------------------------ | -------- | -------- | ------- | ------------------------------------------------------------------------------- |
| `payload.email`          | `string` | Yes      |         | Contact email                                                                   |
| `payload.first_name`     | `string` | No       |         | Contact first name                                                              |
| `payload.last_name`      | `string` | No       |         | Contact last name                                                               |
| `payload.title`          | `string` | No       |         | Contact job title                                                               |
| `payload.city`           | `string` | No       |         | Contact city                                                                    |
| `payload.state`          | `string` | No       |         | Contact state or region                                                         |
| `payload.country`        | `string` | No       |         | Contact country                                                                 |
| `payload.industry`       | `string` | No       |         | Contact industry                                                                |
| `payload.linkedin_url`   | `string` | No       |         | Contact LinkedIn profile URL                                                    |
| `payload.owner_email`    | `string` | No       |         | Email of the Amplemarket user that should own the contact                       |
| `payload.account_id`     | `string` | No       |         | Prospect Hub account public ID to associate to the contact                      |
| `payload.crm_account_id` | `string` | No       |         | CRM account identifier used to resolve the Prospect Hub account association     |
| `payload.company_domain` | `string` | No       |         | Company domain used to resolve the Prospect Hub account association             |
| `payload.company_name`   | `string` | No       |         | Company name used as a fallback to resolve the Prospect Hub account association |
| `payload.phone_numbers`  | `array`  | No       |         | Phone numbers to attach to the contact as user-uploaded numbers                 |

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

  ### Input JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "description": "Create contact",
    "properties": {
      "email": {
        "type": "string",
        "description": "Contact email"
      },
      "first_name": {
        "type": "string",
        "description": "Contact first name"
      },
      "last_name": {
        "type": "string",
        "description": "Contact last name"
      },
      "title": {
        "type": "string",
        "description": "Contact job title"
      },
      "city": {
        "type": "string",
        "description": "Contact city"
      },
      "state": {
        "type": "string",
        "description": "Contact state or region"
      },
      "country": {
        "type": "string",
        "description": "Contact country"
      },
      "industry": {
        "type": "string",
        "description": "Contact industry"
      },
      "linkedin_url": {
        "type": "string",
        "description": "Contact LinkedIn profile URL",
        "format": "uri"
      },
      "owner_email": {
        "type": "string",
        "description": "Email of the Amplemarket user that should own the contact"
      },
      "account_id": {
        "type": "string",
        "description": "Prospect Hub account public ID to associate to the contact",
        "format": "uuid"
      },
      "crm_account_id": {
        "type": "string",
        "description": "CRM account identifier used to resolve the Prospect Hub account association"
      },
      "company_domain": {
        "type": "string",
        "description": "Company domain used to resolve the Prospect Hub account association"
      },
      "company_name": {
        "type": "string",
        "description": "Company name used as a fallback to resolve the Prospect Hub account association"
      },
      "phone_numbers": {
        "type": "array",
        "description": "Phone numbers to attach to the contact as user-uploaded numbers",
        "items": {
          "type": "object",
          "properties": {
            "number": {
              "type": "string",
              "description": "Phone number in raw or international format"
            },
            "kind": {
              "type": "string",
              "description": "Phone number kind",
              "enum": [
                "mobile",
                "office",
                "phone",
                "landline",
                "voip",
                "direct",
                "fax"
              ]
            },
            "type": {
              "type": "string",
              "description": "Alias for kind",
              "enum": [
                "mobile",
                "office",
                "phone",
                "landline",
                "voip",
                "direct",
                "fax"
              ]
            }
          },
          "additionalProperties": false
        }
      }
    },
    "required": [
      "email"
    ],
    "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": {
          "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
            }
          },
          "recent_activity": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "event_at": {
                  "type": "string",
                  "format": "date_time"
                },
                "event_type": {
                  "type": "string"
                },
                "automatic": {
                  "type": [
                    "boolean",
                    "null"
                  ]
                },
                "type": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "description": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "subject": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "body": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "sequence_id": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "sequence_name": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "sequence_type": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "index": {
                  "type": [
                    "integer",
                    "null"
                  ]
                },
                "tags": {
                  "type": [
                    "array",
                    "null"
                  ],
                  "items": {
                    "type": "string"
                  }
                },
                "notes": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "call_disposition": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "call_notes": {
                  "type": [
                    "string",
                    "null"
                  ]
                }
              },
              "required": [
                "event_at",
                "event_type"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "id",
          "email"
        ],
        "additionalProperties": true
      },
      "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_post_contacts --payload '{
  "email": "string"
}' --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`.
