Alteryx IO Discussions

Customize and extend the power of Alteryx with SDKs, APIs, custom tools, and more.
SOLVED

Alteryx Cloud API: Why Am I Getting an Empty Response for Flows?

GabrielFernandes
7 - Meteor

Hello community,

I need help with the Alteryx Cloud API. I'm trying to access the list of workspaces through the URL https://us1.alteryxcloud.com/v4/workspaces and it's working correctly, returning the expected data.

However, when I try to access the list of flows through the URL https://us1.alteryxcloud.com/v4/flows, I'm getting an empty response ({"data": []}).

Can someone help me understand what's going on and how I can resolve this issue?

5 REPLIES 5
KyleMe
Alteryx
Alteryx

Hi @GabrielFernandes,
The URL you can use to access your designer cloud workflows is: https://us1.alteryxcloud.com/svc-workflow/api/v1/workflows 
We're working to make the API docs for these endpoints accessible to end users. I can share that information once it is available. 

GabrielFernandes
7 - Meteor

Thank you very much!!

You can see my workflow with this URL: https://us1.alteryxcloud.com/svc-workflow/api/v1/workflows

 

Do you know which command to give Run in workflow or plans?

Nikhilesh
Alteryx
Alteryx

Hello Gabriel,

 

Great Question!

 

This is the API to call
POST https://us1.alteryxcloud.com/svc-workflow/api/v1/workflows/{id}/run

 

Just replace {id} with the id of your workflow (which should be returned when calling the LIST API provided by Kyle)

To get an API Token, you should use the following steps
1. Go to User Preferences by clicking on the icon on the top right
2. Go to the Oauth 2.0 API Tokens page (https://us1.alteryxcloud.com/cloud-portal/preferences/oauth2-api-tokens)
3. Generate a new API Token

You should then be able to use this API token to make requests. If you are using Postman, you can just select authorization type "Oauth 2.0" in the Authorization tab

Let us know if we can be of more assistance

 

Best,
Nikhilesh

aneeshnazar
Alteryx
Alteryx

Deleted my comment - see Nikhilesh's comment above

GabrielFernandes
7 - Meteor

Thank you all for your help