Templates
Create template
Create a template scoped to the caller's organization. name, template body and type are required; category is required for non-automation types.
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/templates" \ -H "Content-Type: application/json" \ -d '{ "name": "Demo follow-up", "template": "Hi {{firstName}}, thanks for the demo today!", "type": "message", "category": "sales-followup" }'{ "success": true, "data": { "_id": "66a0a0b0c0d0e0f0a0b0c0d0", "name": "Demo follow-up", "template": "Hi {{firstName}}, thanks for the demo today!", "type": "message", "category": "sales-followup", "organizationId": "65a0e0e0e0e0e0e0e0e0e0e0", "createdBy": "65b1f0a2c3d4e5f6a7b8c9d0", "createdAt": "2026-04-12T08:00:00.000Z", "updatedAt": "2026-04-12T08:00:00.000Z" }}