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

> Create Lead List. Amplemarket Amplemarket Post Lead Lists 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_lead_lists:{"shared":"{{shared}}","owner":"{{owner}}","type":"linkedin","leads":"{{leads}}"}' --json
```

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

## Input Schema

| Name              | Type                                            | Required | Default | Description                               |
| ----------------- | ----------------------------------------------- | -------- | ------- | ----------------------------------------- |
| `payload.name`    | `string`                                        | No       |         |                                           |
| `payload.shared`  | `boolean`                                       | Yes      |         |                                           |
| `payload.visible` | `boolean`                                       | No       |         |                                           |
| `payload.owner`   | `string`                                        | Yes      |         |                                           |
| `payload.type`    | `"linkedin" \| "email" \| "titles_and_company"` | Yes      |         |                                           |
| `payload.options` | `object`                                        | No       |         |                                           |
| `payload.leads`   | `array`                                         | Yes      |         | You may send up to 10000 leads at a time. |

### Allowed values

| Field          | Allowed values                            |
| -------------- | ----------------------------------------- |
| `payload.type` | `linkedin`, `email`, `titles_and_company` |

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

  ### Input JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "description": "Create Lead List",
    "properties": {
      "name": {
        "type": "string"
      },
      "shared": {
        "type": "boolean"
      },
      "visible": {
        "type": "boolean"
      },
      "owner": {
        "type": "string",
        "format": "email"
      },
      "type": {
        "type": "string",
        "enum": [
          "linkedin",
          "email",
          "titles_and_company"
        ]
      },
      "options": {
        "type": "object",
        "properties": {
          "reveal_phone_numbers": {
            "type": "boolean"
          },
          "validate_email": {
            "type": "boolean"
          },
          "enrich": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "leads": {
        "type": "array",
        "description": "You may send up to 10000 leads at a time.",
        "maxItems": 10000,
        "items": {
          "type": "object",
          "properties": {
            "linkedin_url": {
              "type": "string"
            },
            "email": {
              "type": "string",
              "format": "email"
            },
            "title": {
              "type": "string"
            },
            "company_name": {
              "type": "string"
            },
            "company_domain": {
              "type": "string"
            },
            "phone_numbers": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "context": {
              "type": "object",
              "description": "Additional custom fields to store on the lead. These fields are flattened into the lead data fields.",
              "additionalProperties": true
            }
          },
          "additionalProperties": true
        }
      }
    },
    "required": [
      "shared",
      "owner",
      "leads",
      "type"
    ],
    "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"
          },
          "object": {
            "type": "string",
            "enum": [
              "lead_list"
            ]
          },
          "name": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": [
              "queued",
              "processing",
              "completed"
            ]
          },
          "url": {
            "type": "string"
          },
          "shared": {
            "type": "boolean"
          },
          "visible": {
            "type": "boolean"
          },
          "owner": {
            "type": "string",
            "format": "email"
          },
          "type": {
            "type": "string",
            "enum": [
              "linkedin",
              "email",
              "title_and_company",
              "name_and_company",
              "salesforce",
              "hubspot",
              "person",
              "adaptive"
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date_time"
          },
          "updated_at": {
            "type": "string",
            "format": "date_time"
          },
          "options": {
            "type": "object",
            "properties": {
              "reveal_phone_numbers": {
                "type": "boolean"
              },
              "validate_email": {
                "type": "boolean"
              },
              "enrich": {
                "type": "boolean"
              }
            },
            "required": [
              "reveal_phone_numbers",
              "validate_email",
              "enrich"
            ],
            "additionalProperties": false
          },
          "leads": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "format": "uuid"
                },
                "object": {
                  "type": "string",
                  "enum": [
                    "lead_list_entry"
                  ]
                },
                "email": {
                  "type": "string",
                  "format": "email"
                },
                "person_id": {
                  "type": "string",
                  "format": "uuid"
                },
                "linkedin_url": {
                  "type": "string"
                },
                "linkedin": {
                  "type": "string"
                },
                "first_name": {
                  "type": "string"
                },
                "last_name": {
                  "type": "string"
                },
                "company_name": {
                  "type": "string"
                },
                "company_domain": {
                  "type": "string"
                },
                "industry": {
                  "type": "string"
                },
                "title": {
                  "type": "string"
                },
                "email_validation_result": {
                  "type": "object",
                  "properties": {
                    "object": {
                      "type": "string",
                      "enum": [
                        "email_validation_result"
                      ]
                    },
                    "email": {
                      "type": "string",
                      "format": "email"
                    },
                    "result": {
                      "type": "string",
                      "enum": [
                        "deliverable",
                        "risky",
                        "undeliverable",
                        "unknown"
                      ]
                    }
                  },
                  "required": [
                    "object",
                    "email",
                    "result"
                  ],
                  "additionalProperties": false
                },
                "data": {
                  "type": "object",
                  "additionalProperties": true
                },
                "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",
                "object",
                "email",
                "person_id",
                "linkedin_url",
                "linkedin",
                "first_name",
                "last_name",
                "company_name",
                "company_domain",
                "industry",
                "title",
                "email_validation_result",
                "data"
              ],
              "additionalProperties": false
            }
          },
          "_errors": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "code": {
                  "type": "string"
                },
                "title": {
                  "type": "string"
                },
                "detail": {
                  "type": "string"
                },
                "source": {
                  "type": "object",
                  "properties": {
                    "pointer": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": false
                }
              },
              "required": [
                "code",
                "title",
                "detail"
              ],
              "additionalProperties": false
            }
          },
          "_links": {
            "type": "object",
            "properties": {
              "self": {
                "type": "object",
                "properties": {
                  "href": {
                    "type": "string"
                  }
                },
                "required": [
                  "href"
                ],
                "additionalProperties": false
              },
              "prev": {
                "type": "object",
                "properties": {
                  "href": {
                    "type": "string"
                  }
                },
                "required": [
                  "href"
                ],
                "additionalProperties": false
              },
              "next": {
                "type": "object",
                "properties": {
                  "href": {
                    "type": "string"
                  }
                },
                "required": [
                  "href"
                ],
                "additionalProperties": false
              }
            },
            "required": [
              "self"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "id",
          "object",
          "name",
          "status",
          "url",
          "shared",
          "visible",
          "owner",
          "type",
          "leads",
          "_links"
        ],
        "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_post_lead_lists --payload '{
  "shared": false,
  "owner": "string",
  "type": "linkedin",
  "leads": "array"
}' --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`.
