JSON - Payload Template - Are we supposed to modify tokens?

Anonymous
Not applicable

JSON - Payload Template - Are we supposed to modify tokens?

We are experimenting with webhooks. We selected JSON and configured the content-type to application/json. However the payload received is malformed. It's not json!

Are we suppsoed to change body (template) after ineserting the tokens? If yes, then what does Request Token Encoding really means?

See screen shot of our setup below:

0EM50000000RbJ3.jpg

0EM50000000RbIy.jpg

0EM50000000RbJ8.jpg
Tags (1)
2 REPLIES 2
Kenny_Elkington
Marketo Employee

Re: JSON - Payload Template - Are we supposed to modify tokens?

Hey Moran,


To make the payload into well-formed JSON, you need to provide the formatting in the template.  Your example would look something like this:

{
"email" : "{{lead.Email Address}}",
"status" : "{{lead.Lead Status}}"
};

Anonymous
Not applicable

Re: JSON - Payload Template - Are we supposed to modify tokens?

Thanks Kenny.. We figured that but were confused what it meant by "Request Token Encoding"? What does it do..