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

# Instantly Email Template Operations: Inputs, Cost & CLI

> Creating an Instantly email template. 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=instantly_create_email_template:{"name":"{{name}}","subject":"{{subject}}","body":"{{body}}"}' --json
```

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

## Input Schema

| Name              | Type     | Required | Default | Description |
| ----------------- | -------- | -------- | ------- | ----------- |
| `payload.name`    | `string` | Yes      |         |             |
| `payload.subject` | `string` | Yes      |         |             |
| `payload.body`    | `string` | Yes      |         |             |
| `payload.type`    | `string` | No       |         |             |

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

  ### Input JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "description": "Create an Instantly email template.",
    "properties": {
      "name": {
        "type": "string",
        "minLength": 1
      },
      "subject": {
        "type": "string",
        "minLength": 1,
        "allowsTemplatePlaceholders": true
      },
      "body": {
        "type": "string",
        "minLength": 1,
        "allowsTemplatePlaceholders": true
      },
      "type": {
        "type": "string",
        "minLength": 1
      }
    },
    "required": [
      "name",
      "subject",
      "body"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output Schema

Output schema is not available yet.

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

  ### Output JSON Schema

  ```json theme={null}
  {
    "description": "Raw Instantly create email template response."
  }
  ```
</details>

## Advanced: Direct CLI

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

```bash theme={null}
deepline tools execute instantly_create_email_template --payload '{
  "name": "string",
  "subject": "string",
  "body": "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.                      |

## Provider API Context

<details>
  <summary>Show provider reference (optional)</summary>

  ```md theme={null}
  > A campaign email, a reply, a manually sent email, or any other email that's visible in the Unibox

  Manage emails visible in the Unibox, including campaign emails, replies, and manually sent emails. These endpoints allow you to send test emails, reply to or forward emails, list and retrieve emails, update email properties, delete emails, count unread messages, and mark threads as read.

  ## Related schemas

  * [Email](/api-reference/schemas/email) — full field reference for email objects

  ## Endpoints

  | Method | Endpoint                                          | Description                         |
  | ------ | ------------------------------------------------- | ----------------------------------- |
  | POST   | `/api/v2/emails/test`                             | Send a test email                   |
  | POST   | `/api/v2/emails/reply`                            | Reply to an email                   |
  | POST   | `/api/v2/emails/forward`                          | Forward an email                    |
  | GET    | `/api/v2/emails`                                  | List email                          |
  | GET    | `/api/v2/emails/{id}`                             | Get email                           |
  | PATCH  | `/api/v2/emails/{id}`                             | Patch email                         |
  | DELETE | `/api/v2/emails/{id}`                             | Delete email                        |
  | GET    | `/api/v2/emails/unread/count`                     | Count unread emails                 |
  | POST   | `/api/v2/emails/threads/{thread_id}/mark-as-read` | Mark all emails in a thread as read |

  ## 102. Inbox Placement Analytics

  Source: https://developer.instantly.ai/api-reference/groups/inbox-placement-analytics.md
  ```
</details>

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