Is it possible to provide a variable Bearer token inside the API headers, as received from an API response?

Is it possible to store a Bearer token inside a global variable, as received from an API response to be then used in the headers of another API? Something like below?

1 Like

Hey @pranavbijwe

What you can do here is, store this API’s response in a variable (apiResponse and using the variable action node you can parse the bearer token from the apiResponse variable using this syntax: {{{variables.apiResponse.token}}} and store it in the token variable.

You can use this token variable as a bearer token for your other APIs.

If this sounds a bit confusing, I’d love to jump on a call and help you set up this flow. Please feel free to schedule an office hour call with me using this link: Calendly - Pratik Parmar