> ## 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 Operations: Inputs, Cost & CLI Example

> Replying to an existing Instantly email thread. 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_reply_to_email:{"eaccount":"{{eaccount}}","reply_to_uuid":"{{reply_to_uuid}}","subject":"{{subject}}","body":{}}' --json
```

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

## Input Schema

| Name                             | Type     | Required | Default | Description                               |
| -------------------------------- | -------- | -------- | ------- | ----------------------------------------- |
| `payload.eaccount`               | `string` | Yes      |         | The email account used to send the reply. |
| `payload.reply_to_uuid`          | `string` | Yes      |         |                                           |
| `payload.subject`                | `string` | Yes      |         |                                           |
| `payload.body`                   | `object` | Yes      |         |                                           |
| `payload.cc_address_email_list`  | `string` | No       |         |                                           |
| `payload.bcc_address_email_list` | `string` | No       |         |                                           |
| `payload.reminder_ts`            | `string` | No       |         |                                           |
| `payload.assigned_to`            | `string` | No       |         |                                           |

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

  ### Input JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "description": "Reply to an existing Instantly email thread.",
    "properties": {
      "eaccount": {
        "type": "string",
        "description": "The email account used to send the reply.",
        "minLength": 1,
        "pattern": "^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$"
      },
      "reply_to_uuid": {
        "type": "string",
        "minLength": 1
      },
      "subject": {
        "type": "string",
        "minLength": 1,
        "allowsTemplatePlaceholders": true
      },
      "body": {
        "type": "object",
        "properties": {
          "html": {
            "type": "string",
            "minLength": 1,
            "allowsTemplatePlaceholders": true
          },
          "text": {
            "type": "string",
            "minLength": 1,
            "allowsTemplatePlaceholders": true
          }
        },
        "additionalProperties": false
      },
      "cc_address_email_list": {
        "type": "string",
        "minLength": 1
      },
      "bcc_address_email_list": {
        "type": "string",
        "minLength": 1
      },
      "reminder_ts": {
        "type": "string",
        "minLength": 1
      },
      "assigned_to": {
        "type": "string",
        "minLength": 1
      }
    },
    "required": [
      "eaccount",
      "reply_to_uuid",
      "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 reply to email response."
  }
  ```
</details>

## Advanced: Direct CLI

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

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