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

# Zoho CRM: README

> Get email draft. Zoho CRM Email Drafts Get Email Draft reference includes SDK V2 and CLI requests, input constraints, response fields, and Deepline cost.

Get email draft.

<Info>
  Tool ID: `zoho_crm_email_drafts_get_email_draft`
</Info>

## Run this action

Use the TypeScript SDK for a single call. Put `ctx.tools.execute(...)` inside a Play when the call should be durable, scheduled, or run across a CSV.

```ts theme={null}
import { Deepline } from 'deepline';

const deepline = await Deepline.connect();
const result = await deepline.tools.execute(
  'zoho_crm_email_drafts_get_email_draft',
  {
    "module": "example",
    "record": "example",
    "draft": "example"
  },
);

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

### CLI

```bash theme={null}
deepline tools execute zoho_crm_email_drafts_get_email_draft --input '{
  "module": "example",
  "record": "example",
  "draft": "example"
}' --json
```

## Example response

The static output schema is not detailed enough to generate a reliable example. Use `deepline tools get zoho_crm_email_drafts_get_email_draft --json` for the complete live contract.

## Input reference

Retrieves the specified email draft for the given record in the module.

| Name             | Type     | Required | Default | Details                                      |
| ---------------- | -------- | -------- | ------- | -------------------------------------------- |
| `payload.module` | `string` | Yes      | —       | module of the record Maximum length: 100.    |
| `payload.record` | `string` | Yes      | —       | Entity id of the record Maximum length: 100. |
| `payload.draft`  | `string` | Yes      | —       | Unique draft identifier Maximum length: 100. |

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

  ### Input JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "description": "Retrieves the specified email draft for the given record in the module.",
    "properties": {
      "module": {
        "type": "string",
        "description": "module of the record",
        "maxLength": 100
      },
      "record": {
        "type": "string",
        "description": "Entity id of the record",
        "maxLength": 100
      },
      "draft": {
        "type": "string",
        "description": "Unique draft identifier",
        "maxLength": 100
      }
    },
    "required": [
      "module",
      "record",
      "draft"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

Standard tool result payload.

| Name                                                                     | Type                                                                                     | Required | Default | Details                                                                                                                   |
| ------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------- | -------- | ------- | ------------------------------------------------------------------------------------------------------------------------- |
| `result.data`                                                            | `object`                                                                                 | Yes      | —       | Response containing the list of email drafts and additional info (e.g., pagination).                                      |
| `result.data.__email_drafts`                                             | `array`                                                                                  | Yes      | —       | List of email draft objects. Maximum items: 100.                                                                          |
| `result.data.__email_drafts[].id`                                        | `string`                                                                                 | Yes      | —       | Unique draft identifier. Maximum length: 64.                                                                              |
| `result.data.__email_drafts[].modified_time`                             | `string`                                                                                 | Yes      | —       | Timestamp when the draft was last modified. Format: `date-time`.                                                          |
| `result.data.__email_drafts[].created_time`                              | `string`                                                                                 | Yes      | —       | Timestamp when the draft was created. Format: `date-time`.                                                                |
| `result.data.__email_drafts[].from`                                      | `string`                                                                                 | Yes      | —       | Sender email address. Maximum length: 100. Pattern: `^[a-z]&#123;7&#125;@zoho\.com$`.                                     |
| `result.data.__email_drafts[].to`                                        | `array`                                                                                  | Yes      | —       | Primary recipients for the draft. Maximum items: 100.                                                                     |
| `result.data.__email_drafts[].to[].user_name`                            | `string \| null`                                                                         | Yes      | —       | Recipient display name. Maximum length: 100.                                                                              |
| `result.data.__email_drafts[].to[].email`                                | `string`                                                                                 | Yes      | —       | Recipient email address. Maximum length: 100. Pattern: `^[a-z]&#123;7&#125;@zoho\.com$`.                                  |
| `result.data.__email_drafts[].reply_to`                                  | `string \| null`                                                                         | Yes      | —       | Reply-to email address. Maximum length: 100. Pattern: `^[a-z]&#123;7&#125;@zoho\.com$`.                                   |
| `result.data.__email_drafts[].cc`                                        | `array`                                                                                  | Yes      | —       | CC recipients for the draft. Maximum items: 100.                                                                          |
| `result.data.__email_drafts[].cc[].user_name`                            | `string \| null`                                                                         | Yes      | —       | CC recipient display name. Maximum length: 100.                                                                           |
| `result.data.__email_drafts[].cc[].email`                                | `string`                                                                                 | Yes      | —       | CC recipient email address. Maximum length: 100. Pattern: `^[a-z]&#123;7&#125;@zoho\.com$`.                               |
| `result.data.__email_drafts[].bcc`                                       | `array`                                                                                  | Yes      | —       | BCC recipients for the draft. Maximum items: 100.                                                                         |
| `result.data.__email_drafts[].bcc[].user_name`                           | `string \| null`                                                                         | Yes      | —       | BCC recipient display name. Maximum length: 100.                                                                          |
| `result.data.__email_drafts[].bcc[].email`                               | `string`                                                                                 | Yes      | —       | BCC recipient email address. Maximum length: 100. Pattern: `^[a-z]&#123;7&#125;@zoho\.com$`.                              |
| `result.data.__email_drafts[].$sharing_permission`                       | `string`                                                                                 | Yes      | —       | Sharing permission level for the draft. Maximum length: 64.                                                               |
| `result.data.__email_drafts[].inventory_details`                         | `object`                                                                                 | Yes      | —       | Inventory related details for the draft.                                                                                  |
| `result.data.__email_drafts[].inventory_details.inventory_template`      | `object`                                                                                 | Yes      | —       | Inventory template details.                                                                                               |
| `result.data.__email_drafts[].inventory_details.inventory_template.name` | `string`                                                                                 | Yes      | —       | Inventory template name. Maximum length: 100.                                                                             |
| `result.data.__email_drafts[].inventory_details.inventory_template.id`   | `string`                                                                                 | Yes      | —       | Inventory template identifier. Maximum length: 100.                                                                       |
| `result.data.__email_drafts[].inventory_details.paper_type`              | `"A4" \| "USLetter"`                                                                     | Yes      | —       | Paper type for rendered inventory. Allowed: `A4`, `USLetter`.                                                             |
| `result.data.__email_drafts[].inventory_details.view_type`               | `"portrait" \| "landscape"`                                                              | Yes      | —       | Layout/view type for the inventory. Allowed: `portrait`, `landscape`.                                                     |
| `result.data.__email_drafts[].attachments`                               | `array`                                                                                  | Yes      | —       | Attachments included with the draft. Maximum items: 50.                                                                   |
| `result.data.__email_drafts[].attachments[].service_name`                | `string`                                                                                 | Yes      | —       | Name of the storage/service holding the file. Maximum length: 100.                                                        |
| `result.data.__email_drafts[].attachments[].file_size`                   | `string`                                                                                 | Yes      | —       | File size in bytes (string). Maximum length: 20. Pattern: `^[0-9]+$`.                                                     |
| `result.data.__email_drafts[].attachments[].id`                          | `string`                                                                                 | Yes      | —       | Attachment identifier. Maximum length: 64.                                                                                |
| `result.data.__email_drafts[].attachments[].file_name`                   | `string`                                                                                 | Yes      | —       | Original file name. Maximum length: 255.                                                                                  |
| `result.data.__email_drafts[].schedule_details`                          | `object`                                                                                 | Yes      | —       | Scheduling information for when the draft should be sent.                                                                 |
| `result.data.__email_drafts[].schedule_details.time`                     | `string`                                                                                 | Yes      | —       | Scheduled send time. Format: `date-time`.                                                                                 |
| `result.data.__email_drafts[].schedule_details.timezone`                 | `object \| null`                                                                         | Yes      | —       | Timezone information or null.                                                                                             |
| `result.data.__email_drafts[].schedule_details.source`                   | `"ecOneHourAhead" \| "upTime" \| "ecSchduleBestTime" \| "ecUpComing" \| "ecSchduleTime"` | Yes      | —       | Source of the schedule decision. Allowed: `ecOneHourAhead`, `upTime`, `ecSchduleBestTime`, `ecUpComing`, `ecSchduleTime`. |
| `result.data.__email_drafts[].rich_text`                                 | `boolean`                                                                                | Yes      | —       | Indicates whether the content is rich text.                                                                               |
| `result.data.__email_drafts[].subject`                                   | `string \| null`                                                                         | Yes      | —       | Email subject. Maximum length: 512.                                                                                       |
| `result.data.__email_drafts[].content`                                   | `string \| null`                                                                         | Yes      | —       | Email content/HTML/plain text.                                                                                            |
| `result.data.__email_drafts[].summary`                                   | `string \| null`                                                                         | Yes      | —       | Short summary or preview of the draft.                                                                                    |
| `result.data.__email_drafts[].owner`                                     | `object`                                                                                 | Yes      | —       | Owner/user who created the draft.                                                                                         |
| `result.data.__email_drafts[].owner.name`                                | `string`                                                                                 | Yes      | —       | Owner display name. Maximum length: 100.                                                                                  |
| `result.data.__email_drafts[].owner.id`                                  | `string`                                                                                 | Yes      | —       | Owner identifier. Maximum length: 64.                                                                                     |
| `result.data.info`                                                       | `record`                                                                                 | Yes      | —       | Additional response info (pagination, cursors, etc.).                                                                     |
| `result.meta`                                                            | `object`                                                                                 | No       | —       | Additional response metadata (status, paging).                                                                            |

<Info>
  This output schema is too large to embed without slowing the page. Get the complete live contract with `deepline tools get zoho_crm_email_drafts_get_email_draft --json`.
</Info>

## 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](/docs/sdk-v2/quickstart)
* [SDK reference](/docs/sdk-v2/sdk-reference)
* [Run tools across a CSV](/docs/sdk-v2/batch-csv)
