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.
Documentation Index
Fetch the complete documentation index at: /docs/llms.txt
Use this file to discover all available pages before exploring further.
Look up saved email templates by stable developer key.
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.
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");
