Get a template family
Returns a template family and its channel-specific member templates. Use this endpoint to get a template family through the Samva email API.
GET
Returns a template family and its channel-specific member templates.
apiKeyheader
x-api-key<token>id*stringMatch
^tfam_[0-9a-hjkmnp-tv-z]{16,24}$TemplateFamily
application/json- response
id*TemplateFamilyIdMatch
^tfam_[0-9a-hjkmnp-tv-z]{16,24}$name*stringmembers*array<>createdAt*stringupdatedAt*stringimport { createClient } from "samva";const samva = createClient({ apiKey: process.env.SAMVA_API_KEY! });const result = await samva.templates.getFamily({ "id": "example"});Example Response
{ "id": "string", "name": "string", "members": [ { "id": "string", "name": "string", "slug": "string", "channel": "sms", "status": "draft", "isActive": true, "createdAt": "string", "updatedAt": "string" } ], "createdAt": "string", "updatedAt": "string"}