Validate the campaign's HTML/CSS code to verify it has been properly JSON-escaped. 


Note: if a Journey is created (by supplying a list_ID parameter value), the Journey entrant node will be when a contact is added to the list ID specified in the call. In addition, the Journey action once a contact has been added to the Journey funnel will be the sending of the newsletter created with the call.

 

Note: if a Journey is created (by supplying a list_ID parameter value), the Journey will be "active" by default. If the user wishes to activate at a later date, user should go to "Manage Journeys" and deactivate the call. 

 


JSON Request Example:             


{
  "username": "matbt@pinpointe.com",
  "usertoken": "*******",
  "requesttype": "Newsletters",
  "requestmethod": "ValidateHtmlBody",
  "details": {
    "htmlbody": "{*newsletter_body_html*}" /* required */
  }
}
JavaScript


PLEASE NOTE: JSON requires a strict code format. Please ensure that your template code conforms to the JSON requirements. Thank you.  


PLEASE NOTE: You cannot create an email campaign with a name that is already used for another campaign.  


"json_request" element


Field NameDescription
usernameUsername used to login to Pinpointe
usertokenUnique token assigned to Pinpointe account
requesttypeNewsletters
requestmethodValidateHTMLBody


"details" element


Field NameDescription
htmlbody
(required)
HTML of the Email Campaign to be validated 


Successful Response:


"response"  and "response" => "data" elements


Field NameDescription
statusWill return SUCCESS if HTML is valid.



Null

Unsuccessful Response:


"response" element


Field NameDescription
statusWill return FAILED if unsuccessful
errormessageText explaining why request failed