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

# Salesloft: Email Templates Create

> Create a personal email template in Salesloft with a subject, body and tracking settings. Includes inputs, outputs, SDK V2 examples, and Deepline cost.

Create a personal email template in Salesloft with a subject, body and tracking settings.

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

## 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(
  'salesloft_email_templates_create',
  {
    "title": "VP of Engineering",
    "subject": "Introduction",
    "body": "Example message"
  },
);

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

### CLI

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline run salesloft_email_templates_create --input '{
  "title": "VP of Engineering",
  "subject": "Introduction",
  "body": "Example message"
}'
```

## 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": {
    "id": 123,
    "title": "VP of Engineering",
    "subject": "Introduction"
  }
}
```

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

## Input reference

Create a new personal email template

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `payload.title` | `string` | No | — | The title of the email content. |
| `payload.subject` | `string` | No | — | The subject line of the email content. |
| `payload.body` | `string` | No | — | The main body of the email content. |
| `payload.open_tracking` | `boolean` | No | — | Indicates if open tracking is enabled for the email. |
| `payload.click_tracking` | `boolean` | No | — | Indicates if click tracking is enabled for the email. |
| `payload.attachment_ids` | `array` | No | — | A list of attachment IDs to associate with the email template. |
| `payload.shared` | `boolean` | No | — | Indicates if the email template is shared with the team. |
| `payload.owner_id` | `integer` | No | — | ID of the User that will own this email template. Only available for team admins. |

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

  ### Input JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "Create a new personal email template",
    "properties": {
      "title": {
        "type": "string",
        "description": "The title of the email content."
      },
      "subject": {
        "type": "string",
        "description": "The subject line of the email content."
      },
      "body": {
        "type": "string",
        "description": "The main body of the email content."
      },
      "open_tracking": {
        "type": "boolean",
        "description": "Indicates if open tracking is enabled for the email."
      },
      "click_tracking": {
        "type": "boolean",
        "description": "Indicates if click tracking is enabled for the email."
      },
      "attachment_ids": {
        "type": "array",
        "description": "A list of attachment IDs to associate with the email template.",
        "items": {
          "type": "integer"
        }
      },
      "shared": {
        "type": "boolean",
        "description": "Indicates if the email template is shared with the team."
      },
      "owner_id": {
        "type": "integer",
        "description": "ID of the User that will own this email template. Only available for team admins."
      }
    },
    "required": [],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

Standard tool result payload.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `result.data` | `object` | Yes | — | Provider response payload. |
| `result.data.id` | `integer` | No | — | ID of email template |
| `result.data.title` | `string` | No | — | Title of the email template |
| `result.data.subject` | `string` | No | — | Subject of the email template |
| `result.data.body` | `string` | No | — | Sanitized body of the email template without email signature |
| `result.data.body_preview` | `string` | No | — | A plain text version of the first 100 characters of the body of the email template |
| `result.data.created_at` | `string` | No | — | Datetime of when the email template was created Format: `date-time`. |
| `result.data.updated_at` | `string` | No | — | Datetime of when the email template was last updated Format: `date-time`. |
| `result.data.last_used_at` | `string` | No | — | Datetime of when the email template was last used Format: `date-time`. |
| `result.data.archived_at` | `string` | No | — | Datetime of when the email template was archived, if archived Format: `date-time`. |
| `result.data.shared` | `boolean` | No | — | Whether this email template is visible to team members (shared) |
| `result.data.open_tracking_enabled` | `boolean` | No | — | Whether open tracking is enabled for this email template |
| `result.data.click_tracking_enabled` | `boolean` | No | — | Whether click tracking is enabled for this email template |
| `result.data.cadence_template` | `boolean` | No | — | Whether this email template is only used on a cadence step. These templates are not visible in the SalesLoft application template list. If false, this email template is visible in the SalesLoft application, and may be used when composing an email or creating a cadence step. |
| `result.data.counts` | `object` | No | — | — |
| `result.data.counts.sent_emails` | `integer` | No | — | The number of times the email template was sent out |
| `result.data.counts.views` | `integer` | No | — | The number of times the email template was opened |
| `result.data.counts.clicks` | `integer` | No | — | The number of times links in the email template were clicked |
| `result.data.counts.replies` | `integer` | No | — | The number of replies the email template received |
| `result.data.counts.bounces` | `integer` | No | — | The number of bounces the email template received |
| `result.data.template_owner` | `object` | No | — | User that owns this email template |
| `result.data.template_owner.id` | `integer` | No | — | — |
| `result.data.template_owner._href` | `string` | No | — | — |
| `result.data.team_template` | `object` | No | — | Associated team template, if any |
| `result.data.team_template.id` | `string` | No | — | — |
| `result.data.team_template._href` | `string` | No | — | — |
| `result.data._links` | `record` | No | — | Links to attachments and tags resources for this email template. |
| `result.data.tags` | `array` | No | — | All tags applied to this email template |
| `result.data.groups` | `array` | No | — | Groups to which this template is assigned, if any |
| `result.data.groups[].id` | `integer` | No | — | — |
| `result.data.groups[]._href` | `string` | 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": {
          "id": {
            "type": "integer",
            "description": "ID of email template"
          },
          "title": {
            "type": "string",
            "description": "Title of the email template"
          },
          "subject": {
            "type": "string",
            "description": "Subject of the email template"
          },
          "body": {
            "type": "string",
            "description": "Sanitized body of the email template without email signature"
          },
          "body_preview": {
            "type": "string",
            "description": "A plain text version of the first 100 characters of the body of the email template"
          },
          "created_at": {
            "type": "string",
            "description": "Datetime of when the email template was created",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "description": "Datetime of when the email template was last updated",
            "format": "date-time"
          },
          "last_used_at": {
            "type": "string",
            "description": "Datetime of when the email template was last used",
            "format": "date-time"
          },
          "archived_at": {
            "type": "string",
            "description": "Datetime of when the email template was archived, if archived",
            "format": "date-time"
          },
          "shared": {
            "type": "boolean",
            "description": "Whether this email template is visible to team members (shared)"
          },
          "open_tracking_enabled": {
            "type": "boolean",
            "description": "Whether open tracking is enabled for this email template"
          },
          "click_tracking_enabled": {
            "type": "boolean",
            "description": "Whether click tracking is enabled for this email template"
          },
          "cadence_template": {
            "type": "boolean",
            "description": "Whether this email template is only used on a cadence step. These templates are not visible in the SalesLoft application template list. If false, this email template is visible in the SalesLoft application, and may be used when composing an email or creating a cadence step."
          },
          "counts": {
            "type": "object",
            "properties": {
              "sent_emails": {
                "type": "integer",
                "description": "The number of times the email template was sent out"
              },
              "views": {
                "type": "integer",
                "description": "The number of times the email template was opened"
              },
              "clicks": {
                "type": "integer",
                "description": "The number of times links in the email template were clicked"
              },
              "replies": {
                "type": "integer",
                "description": "The number of replies the email template received"
              },
              "bounces": {
                "type": "integer",
                "description": "The number of bounces the email template received"
              }
            },
            "additionalProperties": false
          },
          "template_owner": {
            "type": "object",
            "description": "User that owns this email template",
            "properties": {
              "id": {
                "type": "integer"
              },
              "_href": {
                "type": "string"
              }
            },
            "additionalProperties": false
          },
          "team_template": {
            "type": "object",
            "description": "Associated team template, if any",
            "properties": {
              "id": {
                "type": "string"
              },
              "_href": {
                "type": "string"
              }
            },
            "additionalProperties": false
          },
          "_links": {
            "type": "object",
            "description": "Links to attachments and tags resources for this email template."
          },
          "tags": {
            "type": "array",
            "description": "All tags applied to this email template",
            "items": {
              "type": "string"
            }
          },
          "groups": {
            "type": "array",
            "description": "Groups to which this template is assigned, if any",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "integer"
                },
                "_href": {
                  "type": "string"
                }
              },
              "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

* [Connect integrations](https://deepline.com/docs/integrations.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.