SOLVED

Re: Get Tokens by Folder ID API - no inherited tokens?

Go to solution
Phillip_Wild
Level 10 - Community Advisor

Get Tokens by Folder ID API - no inherited tokens?

Hi everyone

We are using this endpoint to get tokens by folder ID: https://developers.marketo.com/rest-api/endpoint-reference/asset-endpoint-reference/#!/Tokens/getTok... .

Problem is that we use a lot of inherited tokens, and the response doesn't actually give inherited tokens. Just local tokens. So you need to navigate up the tree using folder IDs to get to the folder where the master token exists - but you can't tell from that first API call that there are even inherited tokens to find! This is a bit frustrating.

Is there a better way? We are overall trying to get all folders, and all tokens associated with them (whether inherited or local).

1 ACCEPTED SOLUTION

Accepted Solutions
SanfordWhiteman
Level 10 - Community Moderator

Re: Get Tokens by Folder ID API - no inherited tokens?

You have to crawl the tree. One of many fun things.

View solution in original post

1 REPLY 1
SanfordWhiteman
Level 10 - Community Moderator

Re: Get Tokens by Folder ID API - no inherited tokens?

You have to crawl the tree. One of many fun things.