> ## 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 one Lemlist message template by its ID, with its body. Includes SDK V2 guidance, input constraints, response fields, and Deepline credit cost.

Get one Lemlist message template by its ID, with its body.

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

## 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(
  'lemlist_get_message_templates_templateid',
  {
    "templateId": "template_123"
  },
);

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

### CLI

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline tools execute lemlist_get_message_templates_templateid --input '{
  "templateId": "template_123"
}' --json
```

## 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",
    "name": "Example",
    "subject": "Introduction"
  }
}
```

Use `deepline describe 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={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "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={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "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](https://deepline.com/docs/providers/lemlist/guide.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.