Get Tokens by Folder ID API - no inherited tokens? | Community
Skip to main content
Level 9
January 25, 2020
Solved

Get Tokens by Folder ID API - no inherited tokens?

  • January 25, 2020
  • 1 reply
  • 2340 views

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/getTokensByFolderIdUsingGE… .

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).

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by SanfordWhiteman

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

1 reply

SanfordWhiteman
SanfordWhitemanAccepted solution
Level 10
January 25, 2020

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