> ## 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 Sequences Id Leads: Inputs, Cost & CLI

> Add leads. Amplemarket Amplemarket Post Sequences Id Leads 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_sequences_id_leads:{"id":"{{id}}","leads":"{{leads}}"}' --json
```

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

## Input Schema

| Name               | Type     | Required | Default | Description                       |
| ------------------ | -------- | -------- | ------- | --------------------------------- |
| `payload.id`       | `string` | Yes      |         | Sequence id                       |
| `payload.leads`    | `array`  | Yes      |         | Leads to be added to the sequence |
| `payload.settings` | `object` | No       |         |                                   |

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

  ### Input JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "description": "Add leads",
    "properties": {
      "id": {
        "type": "string",
        "description": "Sequence id"
      },
      "leads": {
        "type": "array",
        "description": "Leads to be added to the sequence",
        "items": {
          "type": "object",
          "properties": {
            "email": {
              "type": "string",
              "format": "email"
            },
            "linkedin_url": {
              "type": "string",
              "format": "uri"
            },
            "data": {
              "type": "object",
              "description": "Additional lead data fields",
              "additionalProperties": {
                "type": [
                  "string",
                  "null"
                ],
                "maxLength": 1024
              }
            },
            "routing": {
              "type": "object",
              "description": "Account routing options",
              "properties": {
                "salesforce_account_id": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Salesforce Account ID to use for account association. > **Notes** > - When provided, Amplemarket treats this as the authoritative account and uses it instead of domain-based account matching. > - If a matching contact already exists under another account, Amplemarket re-associates it to the provided Salesforce account using its standard CRM behavior. > - If omitted, null, or empty, Amplemarket falls back to the default account matching behavior."
                }
              },
              "additionalProperties": false
            },
            "overrides": {
              "type": "object",
              "properties": {
                "ignore_recently_contacted": {
                  "type": "boolean",
                  "description": "Whether we should override recently contacted checks"
                },
                "ignore_exclusion_list": {
                  "type": "boolean",
                  "description": "Whether we should override exclusion list"
                },
                "ignore_duplicate_leads_in_other_draft_sequences": {
                  "type": "boolean",
                  "description": "Whether we should allow leads present in other draft sequences"
                },
                "ignore_duplicate_leads_in_other_active_sequences": {
                  "type": "boolean",
                  "description": "Whether we should allow leads present in other active sequences"
                }
              },
              "additionalProperties": false
            }
          },
          "additionalProperties": false
        }
      },
      "settings": {
        "type": "object",
        "properties": {
          "leads_distribution": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "sequence_senders",
              "custom_mailboxes"
            ]
          },
          "mailboxes": {
            "type": "array",
            "description": "Mailboxes to choose from when distributing with custom_mailboxes",
            "items": {
              "type": "string",
              "format": "email"
            }
          }
        },
        "additionalProperties": false
      }
    },
    "required": [
      "id",
      "leads"
    ],
    "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": {
          "total": {
            "type": "integer",
            "description": "Total number of leads processed in the request."
          },
          "total_added_to_sequence": {
            "type": "integer",
            "description": "Total number of leads successfully added to the sequence."
          },
          "duplicate_emails": {
            "type": "array",
            "items": {
              "type": "string",
              "description": "List of emails skipped because they are duplicated in the request."
            }
          },
          "duplicate_linkedin_urls": {
            "type": "array",
            "items": {
              "type": "string",
              "description": "List of LinkedIn urls skipped because they are duplicated in the request."
            }
          },
          "in_exclusion_list_and_skipped": {
            "type": "array",
            "description": "List of leads skipped due to exclusion list.",
            "items": {
              "type": "object",
              "properties": {
                "email": {
                  "type": "string"
                },
                "linkedin_url": {
                  "type": "string"
                }
              },
              "additionalProperties": false
            }
          },
          "recently_contacted_and_skipped": {
            "type": "array",
            "description": "List of leads skipped because they were recently contacted.",
            "items": {
              "type": "object",
              "properties": {
                "email": {
                  "type": "string"
                },
                "linkedin_url": {
                  "type": "string"
                }
              },
              "additionalProperties": false
            }
          },
          "already_in_sequence_and_skipped": {
            "type": "array",
            "description": "List of leads skipped because they are already in this sequence.",
            "items": {
              "type": "object",
              "properties": {
                "email": {
                  "type": "string"
                },
                "linkedin_url": {
                  "type": "string"
                }
              },
              "additionalProperties": false
            }
          },
          "in_other_draft_sequences_and_skipped": {
            "type": "array",
            "description": "List of leads skipped because they are present in another draft sequence.",
            "items": {
              "type": "object",
              "properties": {
                "email": {
                  "type": "string"
                },
                "linkedin_url": {
                  "type": "string"
                }
              },
              "additionalProperties": false
            }
          },
          "in_other_active_sequences_and_skipped": {
            "type": "array",
            "description": "List of leads skipped because they are present in another live or paused sequence.",
            "items": {
              "type": "object",
              "properties": {
                "email": {
                  "type": "string"
                },
                "linkedin_url": {
                  "type": "string"
                }
              },
              "additionalProperties": false
            }
          }
        },
        "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_sequences_id_leads --payload '{
  "id": "string",
  "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`.
