In case you missed the announcement: Alteryx One is here, and so is the Spring Release! Learn more about these new and exciting releases here!

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

3 REPLIES 3
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.

nickmishko1994
5 - Atom

Hi - I know this is an older post, but how did you set up the API's to use https?

alexcassola
7 - Meteor

It's been a while but I believe you need to have your addresses set up with https and enable SSL in the Alteryx System Settings. See screenshot.