List templates

Returns a paginated list of the organization's templates, filterable by category, channel, status, and search, with configurable sorting.

GET
/v1/templates

Returns a paginated list of the organization's templates, filterable by category, channel, status, and search, with configurable sorting.

x-api-key<token>

In: header

Query Parameters

page?string|null
limit?string|null
category?|null
channel?|null
status?|null
search?string|null
sortBy?|null
sortOrder?|null

Response Body

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/v1/templates"
{  "items": [    {      "id": "string",      "organizationId": "string",      "projectId": "string",      "entryPath": "string",      "name": "string",      "slug": "string",      "familyId": "string",      "channel": "email",      "description": "string",      "category": "string",      "fromDefault": {        "email": "string",        "name": "string"      },      "replyToDefault": [        "string"      ],      "trackingDefault": {        "opens": true,        "clicks": true      },      "email": {        "subject": "string",        "preheader": "string",        "headers": {          "property1": "string",          "property2": "string"        }      },      "publicationId": "string",      "inputContractId": "string",      "inputSchema": {},      "compliance": {        "metaStatus": "string",        "submittedAt": "string",        "qualityScore": "string",        "rejectedReason": "string",        "lastSyncedAt": "string",        "approvalStatus": "draft",        "approvedBy": "string",        "approvedAt": "string",        "approvalNotes": "string",        "regulatoryRequirements": [          {            "region": "string",            "requirement": "string",            "status": "compliant",            "notes": "string"          }        ]      },      "usageCount": 0,      "lastUsedAt": "string",      "status": "string",      "isActive": true,      "isDefault": true,      "publishedAt": "string",      "publishedBy": "string",      "createdAt": "string",      "updatedAt": "string"    }  ],  "pagination": {    "page": 0,    "limit": 0,    "total": 0,    "totalPages": 0  }}