OAuth2 Token into Body

@odanylewycz thanks a lot for the response. I did find a solution based on the example and some of the links your provided. It’s a super-simple one-line pre-request script:

pm.variables.set('mytoken', pm.request.auth.oauth2.get('accessToken'));

… and then i use use {{mytoken}} in the body where i need it.

Thanks!

2 Likes