//-- our URL for creating a new email message --// var jsonString = ' \ { \ "EmailCode":0, \ "Name":"API JSON Email 2", \ "Description":"created by JSON api 2", \ "FromName":"SwiftAPI", \ "FromAddress":"alerts@swiftreach.com", \ "DefaultSpokenLanguage":"English", \ "Content":[{ \ "SpokenLanguage":"English", \ "Subject":"my subject", \ "Body": \ [{ \ "$type":"SwiftReach.Swift911.Core.Messages.Email.EMAIL_TEXT_SOURCE_TEXT, SwiftReach.Swift911.Core", \ "Text":"this is the body of my email", \ "TextType":"email_text_source_text" \ }] \ }], \ "Visibility":"Visible", \ "DeleteLocked":false \ }'; $.ajax({ type: "POST", contentType: "application/json; charset=utf-8", headers: {"SwiftAPI-Key": "12345"}, url: "http://api.v4.swiftreach.com/api/Messages/Email/Create", data: jsonString, dataType: "json" success: function(result) { // Do something with the result } }); <!-- example return value --> 123456