Templates

List all templates

GET
/api/templates

Returns every template visible to the caller in their organization, optionally filtered by type (e.g. automation, message). Powers the template picker in composers and the automation builder.

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Query Parameters

type?string

Response Body

application/json

application/json

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