> ## 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 Snippets Snippetid

> Get one Lemlist message snippet by its ID, with its content. Includes SDK V2 guidance, input constraints, response fields, and Deepline credit cost.

Get one Lemlist message snippet by its ID, with its content.

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

## 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_snippets_snippetid',
  {
    "snippetId": "snippet_123"
  },
);

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

### CLI

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline tools execute lemlist_get_snippets_snippetid --input '{
  "snippetId": "snippet_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",
    "content": "Example message"
  }
}
```

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

## Input reference

Returns one snippet with its content.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `payload.snippetId` | `string` | Yes | — | The unique identifier of the snippet, from GET /snippets |

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

  ### Input JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "Returns one snippet with its content.",
    "properties": {
      "snippetId": {
        "type": "string",
        "description": "The unique identifier of the snippet, from GET /snippets"
      }
    },
    "required": [
      "snippetId"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

Standard tool result payload.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `result.data` | `object` | Yes | — | A snippet: an HTML fragment (a signature, a paragraph, a call-to-action) inserted inside a message. The content is HTML as authored: sanitize it before rendering. |
| `result.data._id` | `string` | No | — | Snippet identifier (`snt_`) |
| `result.data.name` | `string` | No | — | Name shown on the Templates page |
| `result.data.content` | `string` | No | — | HTML content as authored, variables left as `&#123;&#123;variable&#125;&#125;` |
| `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 snippet: an HTML fragment (a signature, a paragraph, a call-to-action) inserted inside a message. The content is HTML as authored: sanitize it before rendering.",
        "properties": {
          "_id": {
            "type": "string",
            "description": "Snippet identifier (`snt_`)"
          },
          "name": {
            "type": "string",
            "description": "Name shown on the Templates page"
          },
          "content": {
            "type": "string",
            "description": "HTML content as authored, variables left as `{{variable}}`"
          },
          "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.