3 Replies Latest reply on Sep 15, 2015 4:41 PM by 02e791d3eb804ee22a7fe5a84475646fab8919b1

    Getting "Invalid token value" result when using the rest api to request a campaign

      Hello,

      I need to preface this with the fact that we are new to Marketo. So all help is greatly appreciated.

       

      Using the REST API to request a campaign, I can't send tokens with the request.  We want a campaign to change a value in a lead.

       

      Every response comes back with a "Invalid token value" error message and the fields exist in our system.

       

      Thank you in advance for any help that can be provided.

      -Matt

       

      Here's our request:

      {

          "input": {

              "leads": [{

                  "id": "1111111"

              }],

              "tokens": [{

                  "name": "{{lead.utm_source}}",

                  "value": "Source"

              }, {

                  "name": "{{lead.utm_medium}}",

                  "value": "Medium"

              }]

          }

      }

       

      And here's he response:

      {

        "requestId": "e81a#14fd280097b",

        "success": false,

        "errors": [

          {

            "code": "1003",

            "message": "Invalid token value: [\"lead.utm_source\",\"lead.utm_medium\"] "

          }

        ]

      }