#API redirects to auth/login

4 messages · Page 1 of 1 (latest)

brisk phoenix
#

Hi, I have what I can only assume is an error in understanding. Whatever API call I do, I get a redirect to auth/login rather than any API response. Here is my test

curl "https:/\/domainofmyapp.com/api/application/servers" \ -H 'Accept: application/json' \ -H 'Content-Type: application/json' \ -H 'Authorization: Bearer ***' \ (key was changed) -X GET \

The response is an HTML page redirecting me to home

placid palm
brisk phoenix
#

It did not let me post here otherwise, sorry for the confusion, that's not in the actual command

brisk phoenix
#

Just following up on this: I was not able to find this problem anywhere on the internet, so I assume it must be me.
The API works when I am signed in on a specific browser windows, but not when executing from the command line. So it seems to be session dependent. Can I disable that somewhere? Surely I cannot always pass through a session