V3 REFERENCE Template

template/:id/detailcontent

GET, POST are supported to read, create, modify and delete the content of a template


curl -s -X GET \
--user "$MJ_APIKEY_PUBLIC:$MJ_APIKEY_PRIVATE" \
https://api.mailjet.com/v3/REST/template/:id/detailcontent

    
    
Properties
Name Description
Text-part text/plain contents with Mustache like logic
  • [ Type AnsiString ]
Html-part The text/html contents with Mustache like logic
  • [ Type AnsiString ]
MJMLContent The newsletter content in MJML
  • [ Type AnsiString ]
Headers List of default headers as property:value pairs. Example S&S category headers, X-Mailjet-Campaign, X-Mailjet-Prio,..
  • [ Type JSONObject ]


curl -s -X POST \
--user "$MJ_APIKEY_PUBLIC:$MJ_APIKEY_PRIVATE" \
https://api.mailjet.com/v3/REST/template/:id/detailcontent \
-H 'Content-Type: application/json' \
-d '{"Text-part": ...}'
Properties
Name Description
Text-part text/plain contents with Mustache like logic
  • [ Type AnsiString ]
Html-part The text/html contents with Mustache like logic
  • [ Type AnsiString ]
MJMLContent The newsletter content in MJML
  • [ Type AnsiString ]
Headers List of default headers as property:value pairs. Example S&S category headers, X-Mailjet-Campaign, X-Mailjet-Prio,..
  • [ Type JSONObject ]