✉ MailCraft API Reference

Templates

Update template

Session only
PATCH/api/v1/templates/{id|alias}

Partial update. Requires a dashboard session (API key → 403). Starter templates cannot be changed — duplicate first.

Path Parameters

Body Parameters

Notes

Verified 2026-11-02 in Postman with a dashboard session (API key -> 403). Only the sent field changed; every other field came back untouched (name, category, content, htmlContent, alias, from, replyTo, variables) and updatedAt moved. The exact request body was not captured; {"subject": ...} is inferred from the response (verify live). Starter templates cannot be patched (errorStarter is ASSUMED).

Errors

StatusCaseBody
403errorApiKey{"error": {"code": "Forbidden", "message": "You do not have permission to perform this action."}}
403errorStarter{"error": {"code": "Forbidden", "message": "Starter templates cannot be modified. Duplicate it first."}}
404errorNotFound{"error": {"code": "NotFound", "message": "Template not found."}}

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