MepMail Docs
API referenceEndpointsTemplatesId

Retrieve a template

GET
/templates/{id}

Returns one template by id or alias.

AuthorizationBearer <token>

An API key from the dashboard (ms_…), sent as Authorization: Bearer. A sending-only key reaches the /emails routes only.

In: header

Path Parameters

id*string

Template id or alias

Length1 <= length

Response Body

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/templates/string"
{  "id": "ae2014de-c168-4c61-8267-70d2662a1ce1",  "name": "Order updates",  "alias": "alias",  "status": "published",  "published_at": "2026-10-19T12:00:00.000Z",  "created_at": "2026-10-19T12:00:00.000Z",  "updated_at": "2026-10-19T12:00:00.000Z",  "object": "template",  "current_version_id": "ae2014de-c168-4c61-8267-70d2662a1ce1",  "from": null,  "subject": "Your order has shipped",  "reply_to": null,  "html": "<p>Your order is on its way.</p>",  "text": "Your order is on its way.",  "variables": [],  "has_unpublished_versions": false}