Get all available response tokens by API

Avatar

Avatar

meirotstein2

Avatar

meirotstein2

meirotstein2

05-04-2021

Hello,

 

We are designing a system that will use the response token on the page for integration with other systems.

 

The flow is configurable. for example, the user will be able to configure: if response.token1 = 'a' then do something.

 

On the configuration page, in order to improve the UX and reduce the chance for mistakes, we would like to allow the user to select the available response tokens from a list, instead of typing it.

 

My question is: is there a resource on Target API (or another API) to get this information?

 

Response Token Target API

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

ryanr701

Employee

Avatar

ryanr701

Employee

ryanr701
Employee

06-04-2021

Hi @meirotstein2,

I don't believe such an API exists. I think your best bet might be to load the Response Tokens page (Adobe Target > Administration > Response tokens) and increase the items per page to max and then copy the data from the page. As response tokens do not change frequently this might be a feasible solution for you. You can also see the status and just use the "activated" response tokens if you want.

I suppose you could try and manually call the graphql POST request the page makes to fetch that data, but when I looked at the response body I wasn't seeing the status information. You possibly would need to combine data from multiple requests to get what you need if you go that route.

Hope that helps,

Ryan

Answers (1)

Answers (1)

Avatar

Avatar

rush_pawan

Avatar

rush_pawan

rush_pawan

06-04-2021

hello, 

refer this, it will give you good understanding of response token from target

 

https://experienceleague.adobe.com/docs/target/using/administer/response-tokens.html?lang=en#section...

 

thanks!!