Skip to Content
MailroomMailroom home
API referenceTemplates

Create a template

POST
/templates

Authorization

bearerAuth
headerAuthorizationBearer <mr_live_ / mr_test_>

API key. Never log the secret.

Header Parameters

Idempotency-Key?string

Stored 24h. Same key + body returns the original response.

Request Body

application/json
  1. body
id?string
name?string
subject?string
html?string
text?string
version?integer
published?boolean

Response Body

Template

application/json
  1. response
id?string
name?string
subject?string
html?string
text?string
version?integer
published?boolean
Example Request
curl -X POST 'https://api.mailroom.gosuevals.com/v1/templates' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response201
{  "id": "string",  "name": "string",  "subject": "string",  "html": "string",  "text": "string",  "version": 0,  "published": true}