Overview
Lists details of specified Email Template for an account based on information sent via an http form post.
Post Url
https://hyperdrivepro.morethanrewards.com/api/2/GetEmailTemplate.aspx
- SSL is required
Form Fields
| Field | Max Length* | Required | Notes |
| response_type | Yes | Set this field value to json to return results in JSON format | |
| accountid | Yes | Must be numeric. Account ID for this account. | |
| teammemberid | No | Specify the team member that owns the template, default is 0 (Team Leader). Specify -1 to search entire account and not filter on Team Member. | |
| apikey | Yes | API Key for this account. | |
| name | (Name or ID required) | Use name or id – Find exact match by template name (multiple matches possible) | |
| id | (Name or ID required) | Use name or id – Find exact match by template id |
Notes: You can pull the Email Header by specifying [Email Header] (in brackets) in the name field. This also works for the [Email Footer]
Sample Results
Success Message
<results>
<emailtemplates>
<emailtemplate>
<id>10001</id>
<accountid>2</accountid>
<name>Test Email Template 1</name>
<subject>Email Subject</subject>
<body>
<![CDATA[Message contents including <b>HTML</b> go here, wrapped in a CDATA section>>]
</body>
</emailtemplate>
</emailtemplates>
</results>Sample Failure Message
<?xml version="1.0"?>
<results>
<error>Authentication failed</error>
</results>