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

# Lemlist: Get Message Templates Templateid

> Get Message Template. Lemlist Get Message Templates Templateid reference includes SDK V2 and CLI requests, input constraints, response fields, and Deepline.

Get Message Template.

<Info>
  Tool ID: `lemlist_get_message_templates_templateid`
</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(
  'lemlist_get_message_templates_templateid',
  {
    "templateId": "template_123"
  },
);

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

### CLI

```bash theme={null}
deepline tools execute lemlist_get_message_templates_templateid --input '{
  "templateId": "template_123"
}' --json
```

## Example response

The SDK exposes this shape at `result.toolResponse.raw`. Values below are representative.

```json theme={null}
{
  "data": {
    "_id": "_123",
    "name": "Example",
    "subject": "Introduction"
  }
}
```

Use `deepline tools get lemlist_get_message_templates_templateid --json` for the latest machine-readable contract.

## Input reference

Returns one library message template with its body.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `payload.templateId` | `string` | Yes | — | The unique identifier of the message template, from GET /message-templates |

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

  ### Input JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "description": "Returns one library message template with its body.",
    "properties": {
      "templateId": {
        "type": "string",
        "description": "The unique identifier of the message template, from GET /message-templates"
      }
    },
    "required": [
      "templateId"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

Standard tool result payload.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `result.data` | `object` | Yes | — | A library message template: a whole reusable message a user saved from the Templates page or an editor, usable as a step on any channel. Bodies are HTML as stored, with `&#123;&#123;variables&#125;&#125;` left raw. |
| `result.data._id` | `string` | No | — | Template identifier (`etp_`) |
| `result.data.name` | `string` | No | — | Name shown on the Templates page |
| `result.data.subject` | `string` | No | — | Subject line; `""` when none was set |
| `result.data.message` | `string` | No | — | HTML body, variables left as `&#123;&#123;variable&#125;&#125;` |
| `result.data.cc` | `array` | No | — | CC addresses; `[]` when none was set |
| `result.data.tags` | `array` | No | — | Tags, trimmed and lowercased; `[]` when none was set |
| `result.data.createdBy` | `string` | No | — | Creator user id (`usr_`), see GET /team/members |
| `result.data.createdAt` | `string` | No | — | Creation date Format: `date-time`. |
| `result.meta` | `object` | No | — | Additional response metadata (status, paging). |

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

  ### Output JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "description": "Standard tool result payload.",
    "properties": {
      "data": {
        "type": "object",
        "description": "A library message template: a whole reusable message a user saved from the Templates page or an editor, usable as a step on any channel. Bodies are HTML as stored, with `{{variables}}` left raw.",
        "properties": {
          "_id": {
            "type": "string",
            "description": "Template identifier (`etp_`)"
          },
          "name": {
            "type": "string",
            "description": "Name shown on the Templates page"
          },
          "subject": {
            "type": "string",
            "description": "Subject line; `\"\"` when none was set"
          },
          "message": {
            "type": "string",
            "description": "HTML body, variables left as `{{variable}}`"
          },
          "cc": {
            "type": "array",
            "description": "CC addresses; `[]` when none was set",
            "items": {
              "type": "string"
            }
          },
          "tags": {
            "type": "array",
            "description": "Tags, trimmed and lowercased; `[]` when none was set",
            "items": {
              "type": "string"
            }
          },
          "createdBy": {
            "type": "string",
            "description": "Creator user id (`usr_`), see GET /team/members"
          },
          "createdAt": {
            "type": "string",
            "description": "Creation date",
            "format": "date-time"
          }
        },
        "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

* [Lemlist provider guide](/docs/providers/lemlist/guide)
* [SDK V2 quickstart](/docs/sdk-v2/quickstart)
* [SDK reference](/docs/sdk-v2/sdk-reference)
* [Run tools across a CSV](/docs/sdk-v2/batch-csv)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.