Alteryx OAuth2 token API not working (401 Unauthorized)
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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.
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:
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
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
It seems the APIs needed to be set up to use https, which they weren't initially. With https the token API works fine.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi - I know this is an older post, but how did you set up the API's to use https?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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.
