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

> Add leads to an Amplemarket sequence to start outreach. Includes SDK V2 guidance, input constraints, response fields, and Deepline credit cost.

Add leads to an Amplemarket sequence to start outreach.

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

## 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_post_sequences_id_leads',
  {
    "id": "id_123",
    "leads": [
      {
        "email": "jane.doe@example.com",
        "linkedin_url": "https://example.com/resource",
        "data": {}
      }
    ]
  },
);

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

### CLI

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline tools execute amplemarket_post_sequences_id_leads --input '{
  "id": "id_123",
  "leads": [
    {
      "email": "jane.doe@example.com",
      "linkedin_url": "https://example.com/resource",
      "data": {}
    }
  ]
}' --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": {
    "total": 123,
    "total_added_to_sequence": 123,
    "duplicate_emails": [
      "jane.doe@example.com"
    ]
  }
}
```

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

## Input reference

Add leads

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

Standard tool result payload.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `result.data` | `object` | Yes | — | Provider response payload. |
| `result.data.total` | `integer` | No | — | Total number of leads processed in the request. |
| `result.data.total_added_to_sequence` | `integer` | No | — | Total number of leads successfully added to the sequence. |
| `result.data.duplicate_emails` | `array` | No | — | — |
| `result.data.duplicate_linkedin_urls` | `array` | No | — | — |
| `result.data.in_exclusion_list_and_skipped` | `array` | No | — | List of leads skipped due to exclusion list. |
| `result.data.in_exclusion_list_and_skipped[].email` | `string` | No | — | — |
| `result.data.in_exclusion_list_and_skipped[].linkedin_url` | `string` | No | — | — |
| `result.data.recently_contacted_and_skipped` | `array` | No | — | List of leads skipped because they were recently contacted. |
| `result.data.recently_contacted_and_skipped[].email` | `string` | No | — | — |
| `result.data.recently_contacted_and_skipped[].linkedin_url` | `string` | No | — | — |
| `result.data.already_in_sequence_and_skipped` | `array` | No | — | List of leads skipped because they are already in this sequence. |
| `result.data.already_in_sequence_and_skipped[].email` | `string` | No | — | — |
| `result.data.already_in_sequence_and_skipped[].linkedin_url` | `string` | No | — | — |
| `result.data.in_other_draft_sequences_and_skipped` | `array` | No | — | List of leads skipped because they are present in another draft sequence. |
| `result.data.in_other_draft_sequences_and_skipped[].email` | `string` | No | — | — |
| `result.data.in_other_draft_sequences_and_skipped[].linkedin_url` | `string` | No | — | — |
| `result.data.in_other_active_sequences_and_skipped` | `array` | No | — | List of leads skipped because they are present in another live or paused sequence. |
| `result.data.in_other_active_sequences_and_skipped[].email` | `string` | No | — | — |
| `result.data.in_other_active_sequences_and_skipped[].linkedin_url` | `string` | No | — | — |
| `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": {
          "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>

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