✉ MailCraft API Reference

Templates

List templates

Verified
GET/api/v1/templates

Starter + your own templates, bare array, not paged.

Query Parameters

Notes

Live 2026-11-02 (API key, read). Returns a BARE ARRAY of every starter + own template (23 on the test org; this sample keeps 8). NOT paged: limit/cursor/limit=abc are ignored. ?category= is case-insensitive and accepts exactly Newsletter, Welcome, Promotional, Transactional, EventAnnouncement (or the numbers 0-4); anything else is a ProblemDetails 400. Starter templates have isStarterTemplate=true, isOwnedByCurrentOrganization=false and ids 00000000-0000-0000-000N-00000000000M. Own templates built in the dashboard have null from/subject/replyTo/alias. content is a GrapesJS JSON STRING, htmlContent the rendered HTML. variables[].type is an integer (0 = string). Long content/htmlContent were shortened in this sample.

Errors

StatusCaseBody
400errorBadCategory{"type": "https://tools.ietf.org/html/rfc9110#section-15.5.1", "title": "One or more validation errors occurred.", "status": 400, "errors": {"category": ["The value 'bogus' is not valid."]}, "traceId": "00-36a1416c5e8d3307b85d1a14bd6ff5e1-6b5c3f8d98154315-00"}
401error{"error": {"code": "Unauthenticated", "message": "Authentication is required."}}

Snippets use the MailCraftApi (C#) and MailCraft (Python) helpers from Introduction → Helpers.