Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.

api access key is necessary when using postman, right?

cyg3003
8 - Asteroid

cyg3003_0-1680247492599.png

This is the gallery API Postman Collection and it's environment variables,
I only filled in the gallery url and studio key and secret and appid
then executed the [post]queue job,
error: Cloud Agent Error: Couldn't resolve host. Make sure the domain is publicly accessible or select a different agent

 

so api access key is necessary when using postman do execute any call, right?

 

but studio secret and key works when I call api on server's api docs.it confused me.

 

cyg3003_1-1680247679635.png

 

2 REPLIES 2
TheOC
15 - Aurora
15 - Aurora

hey @cyg3003 
This is because you are using 'localhost' as the URL. Postman expects the server to be running on the same machine the request is sent from (that is what localhost indicates).

The error 'could not resolve host' reflects that it cannot find an Alteryx Server running at localhost. You need to replace 'localhost' with the server's IP or run the request from the local machine. This can be done with the postman desktop agent https://www.postman.com/downloads/postman-agent/ Which will make the requests from your local machine.

 

your API key and Secret look filled out correctly. Be careful sharing those on the public Community however.


Bulien
cyg3003
8 - Asteroid

many thanks for your kind suggestion, in fact, I've filled in the correct url when I do the test, not local host (The first pic is from alteryx document).

https://XXXXXx.companyname.com/webapi/

I've got the access key and secret and used them as client id and secret,  but I can not get access token with 401 error.

 

 

postman access token.jpg

 

cyg3003_0-1680346911988.png

 

the same base url and access key and secret used in alteryx server api authenticate macro work well

cyg3003_1-1680347011271.png

Labels