//-- Intent: Create a new E-mail message using a minimal set of options --// var jsonString = ' \ { \ "Name":"API JSON SIMPLE Email 2", \ "Description":"created by JSON api 2", \ "FromName":"SwiftAPI", \ "FromAddress":"alerts@swiftreach.com", \ "Subject":"my subject", \ "Body":"this is the body of my email", \ }'; $.ajax({ type: "POST", contentType: "application/json; charset=utf-8", headers: {"SwiftAPI-Key": "12345"}, url: "http://api.v4.swiftreach.com/api/Messages/Email/Create/Simple", data: jsonString, dataType: "json" success: function(result) { // Do something with the result } }); <!-- example return value --> 123456