> ## Documentation Index
> Fetch the complete documentation index at: https://segmentflow.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Templates

> Look up saved email templates by stable developer key.

Use `templates.retrieveByKey` when your integration needs to confirm or inspect the saved Template that later calls such as `emails.send`, `broadcasts.create`, or `journeys.trigger` will execute.

```ts theme={null}
import Segmentflow from "@segmentflow/segmentflow-typescript";

const client = new Segmentflow({ apiKey: process.env.SEGMENTFLOW_API_KEY });

const template = await client.v1.templates.retrieveByKey("receipt-default");
```
