Alteryx Server Discussions

Find answers, ask questions, and share expertise about Alteryx Server.
SOLVED

Alteryx OAuth2 token API not working (401 Unauthorized)

alexcassola
7 - Meteor

Hi there,

 

We just had the v3 APIs set up on our instance of Alteryx Server. I now am able access the /webapi/swagger/ page.

 

However, when I try to authorize using my client ID and secret I get a response of '401 Unauthorized'. I tried with Type "Basic auth" and "Request body" - same result.

alexcassola_0-1658144204052.png

 

My client ID and secret are definitely copied correctly from my user profile on our Alteryx Gallery and I have API Access permission enabled.

 

The payload of the request generated by the api looks like this in the browser:

alexcassola_1-1658144862886.png

 

Is the value of 'scope' meant to be blank?

 

The version of Alteryx Server we are using is 2021.4.2.07064

 

FYI - I get the same error when I call the /webapi/oauth2/token api in Postman.

 

Any ideas please?

 

thanks,

Alex

1 REPLY 1
alexcassola
7 - Meteor

It seems the APIs needed to be set up to use https, which they weren't initially. With https the token API works fine.