Authorization not Working

Hi,

i try to get Sophos API Running without success.

https://developer.sophos.com/intro#authentication

In retool i get a sucess and also a Bearer Token but after that a simple get request I`m unauthenticated.



Simple Get Request:

In postman everything is working fine. So maybe its easy...

Welcome to the forums!

Since you add the Authorization header at the resource level, maybe you don't need to resupply it at the App level?

1 Like

Agreed! The get request query should not include the authorization bearer token since it's already set up in the resource page.

For troubleshooting purposes, it's helpful to Preview the query and then check that API Request tab as you've done in your second screenshot. Previewed queries aren't sanitized, so you can actually see what the ACCESS_TOKEN is evaluating to

For the resource page, is the body an array? I'm wondering if it should be {{http1.body.access_token}}