Skip to main content

Get Template

This method retrieves a Transactional Messaging Template.

This is a GET method.

REST WADL

https://atmp-pub-api-www3.actito.com/apitransactional/services/rest?_wadl&_type=xml

REST URL

https://atmp-pub-api-www3.actito.com/apitransactional/services/rest/template/get/{token}/{id}

| Input parameters
Required parameters | Description | Output parameters | Description | | ----------------------------------------------------------------------------- | ----------- | ----------------- | ----------- | | token | The connection token | return | The Template object | | id | The ID of the Template value. | | |

Error messages

  • You must fill in the token parameter
  • You must fill in the id parameter.
  • No template found !!
  • Error while retrieving the default sender on your account.
  • Error while retrieving the defined sender for this template.
  • Template type not supported.
  • An error occured on the server

REST Example

Input

https://atmp-pub-api-www3.actito.com/apitransactional/services/rest/template/get/{token}/176

Output

<response responseStatus="success">
<apiTemplate>
<body>[EMV TEXTPART][EMV HTMLPART]
<html>
<body>[EMV INCLUDE]150[EMV /INCLUDE]</body>
</html>
</body>
<encoding>UTF-8</encoding>
<encrypt>EdX7CqkmjTFf8SA9MKJP1G_RKE56HK3C-DzVeN03XrXeKvc</encrypt>
<from>John Smith</from>
<fromEmail>email@doctm.nmp1.com</fromEmail>
<id>176</id>
<name>Template 1</name>
<random>60200012483D16E7</random>
<replyToEmail>john.smith@smartfocus.com</replyToEmail>
<sent>false</sent>
<type>TRANSACTIONAL</type>
</apiTemplate>
</response>