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

# Smartlead Push To Campaign: Inputs, Cost & CLI Example

> Pushing leads/contacts directly into a Smartlead campaign. Includes inputs, outputs, pricing notes, Deepline CLI examples, and GTM automation guidance.

## 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=smartlead_push_to_campaign:{"campaign_id":"{{campaign_id}}"}' --json
```

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

## Input Schema

| Name                  | Type                | Required | Default | Description                                                        |
| --------------------- | ------------------- | -------- | ------- | ------------------------------------------------------------------ |
| `payload.campaign_id` | `string \| integer` | Yes      |         | Smartlead campaign identifier (number or positive numeric string). |
| `payload.lead_list`   | `array`             | No       |         |                                                                    |
| `payload.leads`       | `array`             | No       |         |                                                                    |

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

  ### Input JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "description": "Smartlead campaign push input.",
    "properties": {
      "campaign_id": {
        "description": "Smartlead campaign identifier (number or positive numeric string).",
        "anyOf": [
          {
            "type": "string",
            "description": "Smartlead campaign identifier (number or positive numeric string).",
            "minLength": 1,
            "pattern": "^\\d+$"
          },
          {
            "type": "integer",
            "description": "Smartlead campaign identifier (number or positive numeric string).",
            "minimum": 1
          }
        ]
      },
      "lead_list": {
        "type": "array",
        "minItems": 1,
        "maxItems": 400,
        "items": {
          "type": "object",
          "description": "Smartlead lead payload entry.",
          "properties": {
            "email": {
              "type": "string",
              "description": "Lead email address.",
              "minLength": 1,
              "format": "email"
            },
            "first_name": {
              "type": "string",
              "description": "Lead first name."
            },
            "last_name": {
              "type": "string",
              "description": "Lead last name."
            },
            "phone_number": {
              "description": "Lead phone number.",
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "number"
                }
              ]
            },
            "linkedin_profile": {
              "type": "string",
              "description": "LinkedIn profile URL for the lead.",
              "format": "uri"
            },
            "company_name": {
              "type": "string",
              "description": "Lead company name."
            },
            "website": {
              "type": "string",
              "description": "Lead website URL.",
              "format": "uri"
            },
            "location": {
              "type": "string",
              "description": "Lead location."
            },
            "company_url": {
              "type": "string",
              "description": "Lead company URL.",
              "format": "uri"
            },
            "lead_list_ids": {
              "type": "array",
              "description": "Existing lead-list identifiers for the lead.",
              "items": {
                "type": "integer",
                "minimum": 1
              }
            },
            "custom_fields": {
              "type": "object",
              "description": "Provider passthrough custom metadata for each lead.",
              "additionalProperties": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "boolean"
                  },
                  {
                    "type": "null"
                  },
                  {
                    "type": "array",
                    "items": {}
                  },
                  {
                    "type": "object",
                    "additionalProperties": {}
                  }
                ]
              }
            }
          },
          "required": [
            "email"
          ],
          "additionalProperties": false
        }
      },
      "leads": {
        "type": "array",
        "minItems": 1,
        "maxItems": 400,
        "items": {
          "type": "object",
          "description": "Smartlead lead payload entry.",
          "properties": {
            "email": {
              "type": "string",
              "description": "Lead email address.",
              "minLength": 1,
              "format": "email"
            },
            "first_name": {
              "type": "string",
              "description": "Lead first name."
            },
            "last_name": {
              "type": "string",
              "description": "Lead last name."
            },
            "phone_number": {
              "description": "Lead phone number.",
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "number"
                }
              ]
            },
            "linkedin_profile": {
              "type": "string",
              "description": "LinkedIn profile URL for the lead.",
              "format": "uri"
            },
            "company_name": {
              "type": "string",
              "description": "Lead company name."
            },
            "website": {
              "type": "string",
              "description": "Lead website URL.",
              "format": "uri"
            },
            "location": {
              "type": "string",
              "description": "Lead location."
            },
            "company_url": {
              "type": "string",
              "description": "Lead company URL.",
              "format": "uri"
            },
            "lead_list_ids": {
              "type": "array",
              "description": "Existing lead-list identifiers for the lead.",
              "items": {
                "type": "integer",
                "minimum": 1
              }
            },
            "custom_fields": {
              "type": "object",
              "description": "Provider passthrough custom metadata for each lead.",
              "additionalProperties": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "boolean"
                  },
                  {
                    "type": "null"
                  },
                  {
                    "type": "array",
                    "items": {}
                  },
                  {
                    "type": "object",
                    "additionalProperties": {}
                  }
                ]
              }
            }
          },
          "required": [
            "email"
          ],
          "additionalProperties": false
        }
      }
    },
    "required": [
      "campaign_id"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output Schema

| Name               | Type     | Required | Default | Description |
| ------------------ | -------- | -------- | ------- | ----------- |
| `result.pushed`    | `number` | No       |         |             |
| `result.added`     | `number` | No       |         |             |
| `result.failed`    | `number` | No       |         |             |
| `result.succeeded` | `number` | No       |         |             |
| `result.results`   | `array`  | No       |         |             |

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

  ### Output JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "description": "Smartlead push to campaign response.",
    "properties": {
      "pushed": {
        "type": "number",
        "minimum": 0
      },
      "added": {
        "type": "number",
        "minimum": 0
      },
      "failed": {
        "type": "number",
        "minimum": 0
      },
      "succeeded": {
        "type": "number",
        "minimum": 0
      },
      "results": {
        "type": "array",
        "items": {}
      }
    },
    "additionalProperties": false
  }
  ```
</details>

## Advanced: Direct CLI

<Info>
  Use direct execution for single payload debugging.
</Info>

```bash theme={null}
deepline tools execute smartlead_push_to_campaign --payload '{
  "campaign_id": "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`.
