2 Replies Latest reply on Apr 29, 2018 7:56 PM by Jay Jiang

    REST api and Campaign Trigger

    Roger Morris

      I am trying to use the request campaign trigger to send some emails. When we send a full html body we are not getting any errors, we are getting a 200 response, and no email is delivered. If we send a test string it works fine. Any ideas?



      This turned out to be missed escaped quotes in the long form causing the fail. Thanks for your help.

        • Re: REST api and Campaign Trigger
          Sanford Whiteman

          Have to see an actual failing and passing email body. (Pls use the Advanced Editor's syntax highlighter, too!)

          • Re: REST api and Campaign Trigger
            Jay Jiang

            Are you able to paste your request body?


            Regarding the 200 OK response, I think Marketo will send that all the time, you need to debug by looking in the response body for "success":true or "success":false. I use Postman for my REST API testing to see this:


                "requestId": "6b99#1631472ac50",
                "success": false,
                "errors": [
                        "code": "609",
                        "message": "Invalid JSON. Illegal unquoted character ((CTRL-CHAR, code 13)): has to be escaped using backslash to be included in string value"