6 Replies Latest reply on Oct 28, 2016 6:31 AM by Osman Erzinclioglu

    Program Tokens & Rest API's Create / Delete Token

    Osman Erzinclioglu

      Question. When I create a new program, I select from one of the following types:

       

      • Default
      • Engagement
      • Email
      • Event

       

      Are these programs "folders" in the context of the API?

       

      I'm trying to run a script outside Marketo that will create or delete a token within a specific program and want to know whether the four digit number (https://app-ab08.marketo.com/#AAADDDDAD) associated with the program, the one that's represented by the {{program.id}} token, is the same one represented by {id} in the following operations associated with creating or deleting tokens:

       

      • /rest/asset/v1/folder/{id}/tokens.json (See here.)
      • /rest/asset/v1/folder/{id}/tokens/delete.json (See here.)

       

      I'm trying to create or delete tokens based on a series of conditions evaluated outside Marketo.