Overview
Lists details of specified Email Template for an account based on information sent via an http form post.
Post Url
https://www.allclients.com/api/2/GetEmailTemplate.aspx
- SSL is requred
- White Label CRM Customers: Replace www.allclients.com with your White Label CRM domain name.
Form Fields
Field | Max Length* | Required | Notes |
response_type | No | Default results will be returned in XML. Set this field value to json to return results in JSON format | |
accountid | Yes | Must be numeric. Account ID for this account. Found in Settings > API Settings or for White Label CRM in the Admin control panel | |
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. Found in Settings > API Settings or for White Label CRM in the Admin control panel | |
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>