Templates
Publish template
Session onlyPOST
/api/v1/templates/{id|alias}/publishMarks it published. Requires a dashboard session (API key → 403).
Path Parameters
id|aliasstringrequired
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
| Status | Case | Body |
|---|---|---|
| 403 | errorApiKey | {"error": {"code": "Forbidden", "message": "You do not have permission to perform this action."}} |
| 403 | errorStarter | {"error": {"code": "Forbidden", "message": "Starter templates cannot be modified. Duplicate it first."}} |
Snippets use the MailCraftApi (C#) and MailCraft (Python) helpers from Introduction → Helpers.