I'd like to use the result of one API response, to inform another API using that data

Problem:
I generate access tokens as part of my API. I would like to keep using those temporary tokens as part of the test cycle. Currently, since each test in discretely independant, I can’t generate that token to be used in subsequent tests.

Suggested Solution:
I’d like for one API result to set variables for subsequent tests to be used in the request headers.

See I'd like to use the result of one API response, to inform another API using that data · Issue #7242 · postmanlabs/postman-app-support · GitHub

Hey @sshadmand,

What type of token are you using? Are you able to show an example of your requests?

Have you taken a look at @allenheltondev’s post where he explains a little bit about how he is using the tokens, in his context?

Maybe there is something in there that might help you out?

1 Like