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

# EmailBison: Create Acampaign

> Create a new EmailBison campaign with a name and type. Includes SDK V2 guidance, input constraints, response fields, and Deepline credit cost.

Create a new EmailBison campaign with a name and type.

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

## 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(
  'emailbison_create_acampaign',
  {
    "name": "Example"
  },
);

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

### CLI

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline tools execute emailbison_create_acampaign --input '{
  "name": "Example"
}' --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": {
    "data": {
      "id": 123,
      "uuid": "uuid_123",
      "name": "Example"
    }
  }
}
```

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

## Input reference

This endpoint allows the authenticated user to create a new campaign.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `payload.name` | `string` | Yes | — | The name of the new campaign. |
| `payload.type` | `"outbound" \| "reply_followup"` | No | — | Optional campaign type. Defaults to outbound when omitted. Allowed: `outbound`, `reply_followup`. |

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

  ### Input JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "This endpoint allows the authenticated user to create a new campaign.",
    "properties": {
      "name": {
        "type": "string",
        "description": "The name of the new campaign."
      },
      "type": {
        "type": "string",
        "description": "Optional campaign type. Defaults to outbound when omitted.",
        "enum": [
          "outbound",
          "reply_followup"
        ]
      }
    },
    "required": [
      "name"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

Standard tool result payload.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `result.data` | `object` | Yes | — | Provider response payload. |
| `result.data.data` | `object` | No | — | — |
| `result.data.data.id` | `integer` | No | — | — |
| `result.data.data.uuid` | `string` | No | — | — |
| `result.data.data.name` | `string` | No | — | — |
| `result.data.data.type` | `string` | No | — | — |
| `result.data.data.status` | `string` | No | — | — |
| `result.data.data.emails_sent` | `integer` | No | — | — |
| `result.data.data.opened` | `integer` | No | — | — |
| `result.data.data.unique_opens` | `integer` | No | — | — |
| `result.data.data.replied` | `integer` | No | — | — |
| `result.data.data.unique_replies` | `integer` | No | — | — |
| `result.data.data.bounced` | `integer` | No | — | — |
| `result.data.data.unsubscribed` | `integer` | No | — | — |
| `result.data.data.interested` | `integer` | No | — | — |
| `result.data.data.total_leads_contacted` | `integer` | No | — | — |
| `result.data.data.total_leads` | `integer` | No | — | — |
| `result.data.data.max_emails_per_day` | `integer` | No | — | — |
| `result.data.data.max_new_leads_per_day` | `integer` | No | — | — |
| `result.data.data.plain_text` | `boolean` | No | — | — |
| `result.data.data.open_tracking` | `boolean` | No | — | — |
| `result.data.data.can_unsubscribe` | `boolean` | No | — | — |
| `result.data.data.unsubscribe_text` | `string` | No | — | — |
| `result.data.data.created_at` | `string` | No | — | — |
| `result.data.data.updated_at` | `string` | No | — | — |
| `result.data.data.tags` | `array` | No | — | — |
| `result.data.data.tags[].id` | `integer` | No | — | — |
| `result.data.data.tags[].name` | `string` | No | — | — |
| `result.data.data.tags[].default` | `boolean` | 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": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "integer"
              },
              "uuid": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "type": {
                "type": "string"
              },
              "status": {
                "type": "string"
              },
              "emails_sent": {
                "type": "integer"
              },
              "opened": {
                "type": "integer"
              },
              "unique_opens": {
                "type": "integer"
              },
              "replied": {
                "type": "integer"
              },
              "unique_replies": {
                "type": "integer"
              },
              "bounced": {
                "type": "integer"
              },
              "unsubscribed": {
                "type": "integer"
              },
              "interested": {
                "type": "integer"
              },
              "total_leads_contacted": {
                "type": "integer"
              },
              "total_leads": {
                "type": "integer"
              },
              "max_emails_per_day": {
                "type": "integer"
              },
              "max_new_leads_per_day": {
                "type": "integer"
              },
              "plain_text": {
                "type": "boolean"
              },
              "open_tracking": {
                "type": "boolean"
              },
              "can_unsubscribe": {
                "type": "boolean"
              },
              "unsubscribe_text": {
                "type": "string"
              },
              "created_at": {
                "type": "string"
              },
              "updated_at": {
                "type": "string"
              },
              "tags": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "integer"
                    },
                    "name": {
                      "type": "string"
                    },
                    "default": {
                      "type": "boolean"
                    }
                  },
                  "additionalProperties": false
                }
              }
            },
            "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

* [EmailBison provider guide](https://deepline.com/docs/providers/emailbison/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.