REST api and Campaign Trigger

Highlighted
Anonymous
Not applicable

REST api and Campaign Trigger

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.

2 REPLIES 2
Highlighted
Level 10 - Community Moderator

Re: REST api and Campaign Trigger

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

Highlighted
Level 7

Re: REST api and Campaign Trigger

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"

        }

    ]

}