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

> Pushing leads/contacts directly into a Smartlead campaign. Includes SDK V2 guidance, input constraints, response fields, and Deepline credit cost.

Pushing leads/contacts directly into a Smartlead campaign.

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

## 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(
  'smartlead_push_to_campaign',
  {
    "campaign_id": "123"
  },
);

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

### CLI

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline tools execute smartlead_push_to_campaign --input '{
  "campaign_id": "123"
}' --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"]}}
{
  "pushed": 123,
  "added": 123,
  "failed": 123
}
```

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

## Input reference

Smartlead campaign push input.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `payload.campaign_id` | `string \| integer` | Yes | — | Smartlead campaign identifier (number or positive numeric string). |
| `payload.lead_list` | `array` | No | — | Minimum items: 1. Maximum items: 400. |
| `payload.leads` | `array` | No | — | Minimum items: 1. Maximum items: 400. |

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

  ### Input JSON Schema

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

Smartlead push to campaign response.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `result.pushed` | `number` | No | — | Minimum: 0. |
| `result.added` | `number` | No | — | Minimum: 0. |
| `result.failed` | `number` | No | — | Minimum: 0. |
| `result.succeeded` | `number` | No | — | Minimum: 0. |
| `result.results` | `array` | No | — | — |

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

  ### Output JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "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>

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

* [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.