AddEmailTemplate

Overview

Add a new "Email Template" to settings based on information sent via an http form post.

URL

POST/api/2/AddEmailTemplate.aspx

Parameters

FieldMax LengthRequiredNotes
response_typefalseDefault results will be returned in XML.
Set this field value to json to return results in JSON format.
accountidtrueMust be numeric. Account ID for this account.
Found in Settings > API Settings or for White Label CRM in the Admin control panel
apikeytrueAPI Key for this account.
Found in Settings > API Settings or for White Label CRM in the Admin control panel
teammemberidfalseMust be numeric. Team Member ID.
Defaults to 0 (Account Owner).
name50trueDisplay name for the Email Template
folder50falseFolder for Email Template. If folder does not exist, it will be created.
subjectline75trueEmail Subject Line
messagebodytrueEmail Message Body – HTML, Encoded

*You must HTML Encode / Output Escape your HTML, otherwise you will receive a server security error.

**This error will not be in the normal XML format, so be sure you look for a success message to confirm that your content was added

***Do not include or or tags in your Email Templates.