User

Create a new SMS template

POST
/api/user/sms-templates

Creates a reusable template (sms, campaign, script, or automation) for the authenticated user organization. Templates may include placeholders like {{firstName}} resolved at send time.

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

curl -X POST "https://example.com/api/user/sms-templates" \  -H "Content-Type: application/json" \  -d '{    "name": "Intro - new lead",    "template": "Hi {{firstName}}, thanks for reaching out - when is a good time to chat?",    "type": "sms",    "category": "introduction"  }'
{  "_id": "64d2f9c5e8a1d4e001a0b1c2",  "name": "Tour confirm - Maple Court",  "template": "Hi {{firstName}}! Confirming your tour for {{tour.date}} at {{tour.time}}.",  "type": "sms",  "category": "tours",  "organizationId": "64a1b2c3d4e5f60012345678",  "userId": "64a1b2c3d4e5f60012345679",  "createdBy": "64a1b2c3d4e5f60012345679",  "createdAt": "2026-05-18T12:34:56.000Z",  "updatedAt": "2026-05-18T12:34:56.000Z"}