Create a template family
Creates an empty template family with the supplied name and returns it with status 201.
POST
Creates an empty template family with the supplied name and returns it with status 201.
apiKeyheader
x-api-key<token>application/json- body
name*stringLength
1 <= lengthSuccess
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.createFamily({ "name": "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"}