Unable to use API - Alteryx gallery 2022.3
- 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
Hello,
I am trying to Get the questions for the given Alteryx Analytics App - The server is returning the below response
Status : 403 Forbidden
Body :
Below are the steps I followed :
1) Got the token from {server}/webapi/oauth2/token
2) Using this token tried to make a GET call to {server}/webapi/v1/workflows/:appId/questions
The API call is throwing a forbidden error.
Please let me know if we are missing any step.
Thank you!
- Labels:
- API
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi @Shashankr ,
Starting from Server 2022.1, the new Server Web API service now uses the OAuth2 method for authentication for all API endpoints. This means that API calls now require an API Access Key and Secret, rather than just the Access Token as in your screenshot.
Try making the same API call in the Server interactive API documentation using your API Access Key and Secret, which can be found under My Profile > Keys. See the attached image as an example. For more information on completing the API authentication, you can see this Help page: https://help.alteryx.com/20223/server/server-api-configuration-and-authorization
Thanks,
Customer Support Engineer
Alteryx, Inc.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi Ken,
I also tried to run API's through swagger on {AlteryxServer}/webapi//swagger/ui/index#/
1) Entering the Client ID and Secret
2) After authenticating
2) Now trying a GET API - to get questions from a workflow
4) I have the required permission's to run this workflow from Gallery- As shown in the screenshot below - I just ran the workflow today
Please let me know if we are missing any steps to get successful API calls.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi @Shashankr ,
Could you please try adding your Server user to the same Subscription/Studio as the target workflow here, i.e., "Service Account uipathrobot's Studio"? Then, please try running the same API call again and see if it works for you.
Thanks,
Customer Support Engineer
Alteryx, Inc.

