✉ MailCraft API Reference

Templates

Publish template

Session only
POST/api/v1/templates/{id|alias}/publish

Marks it published. Requires a dashboard session (API key → 403).

Path Parameters

Notes

Verified 2026-11-02 in Postman with a dashboard session (API key -> 403). Returns the full template with isPublished true and status 'published'; no body needed. Calling it twice (idempotent per the docs) was NOT captured (verify live). Starter publish error 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."}}

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