Re: how to write token {{my.tokens}} directly via API

juliamunkhzul
Level 2

how to write token {{my.tokens}} directly via API

I would like to create write token via API, but what should i write on the value? Below is the body of create token api - /rest/asset/v1/folder/{folderID}/tokens.json

                {
                    "name": "My Token",
                    "type": "script block",
                    "value":?????????????,
                    "folderType": "Program"
                 
                }

https://developers.marketo.com/rest-api/assets/tokens/

 

1 REPLY 1
SanfordWhiteman
Level 10 - Community Moderator

Re: how to write token {{my.tokens}} directly via API

Writing Email Script type {{my.tokens}} is not officially supported. You may inspect the Get Token response for clues about the format, but do not expect it to continue to work.