How to pass access token dynamically in Outbound Rest API message

katchi
Mega Contributor

Hi Everyone,

 

We need to pass access token value through a post API from one end point to another POST Rest API.

Can someone look into this ?

2 REPLIES 2

Lukasz Bojara
Kilo Sage

Hi Katchi,

Use the Variable Substitutions in REST Message. Get the token in your script by and assign it to the parameter in the second one. Depending on where in the message you need to put the token (query parameter, header, content) instead of the value use the variable e.g. ${token}

 

If my answer helped you in any way, please then mark it as helpful. If this solved your case please mark it as a correct answer. Thank You.

 

Best regards,

Łukasz

katchi
Mega Contributor