User
Create a template category (superadmin)
Creates a new template category used to group SMS/campaign/script/automation templates. Superadmin only. Category names must be unique.
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/template-categories" \ -H "Content-Type: application/json" \ -d '{ "name": "introduction", "displayName": "Introduction", "description": "First-touch templates for new leads.", "color": "#3B82F6" }'{ "_id": "64d2f9c5e8a1d4e001a0b1c2", "name": "tours", "displayName": "Tours", "description": "Tour-confirmation and follow-up templates.", "color": "#3B82F6", "sortOrder": 0, "isActive": true, "createdBy": { "fullName": "Acme Admin", "email": "admin@acme.example" }, "createdAt": "2026-05-18T12:34:56.000Z", "updatedAt": "2026-05-18T12:34:56.000Z"}