Templates

Get template by id

GET
/api/templates/{id}

Fetch a single template by _id (within the caller's organization scope).

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Path Parameters

id*string

Response Body

application/json

application/json

application/json

curl -X GET "https://example.com/api/templates/string"
{  "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"  }}