Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content
Announcements
WEBINAR June 25, 2025: Build on Apache Iceberg with Qlik Open Lakehouse - REGISTER TODAY
cancel
Showing results for 
Search instead for 
Did you mean: 
jrathgebercs
Creator
Creator

Qlik Rest Data connection not working with with api key authentication

Hi Team,

We are pulling data from Rest API data source connector. We don't have permission to enter manual service credential. So we are trying to authenticate using API key. But we are below getting error.

jrathgebercs_1-1748763435948.png

 

jrathgebercs_0-1748763356821.png

I am using basic authentication.

jrathgebercs_2-1748763490835.png

 

Could you please suggest me how we can authenticate .?

 

Regards & Thanks,

Irshad Ahmad

Labels (3)
10 Replies
rafaelencinas
Partner - Creator
Partner - Creator

Hello!

Authentication method is related how to REST will authenticate before request the information. If your API requires only an API KEY , you can just select the Anonymous.

 

rafaelencinas_0-1748796933775.png

 

 

Senior Qlik Architect
Cobra, Stallone, "You're a problem and I'm the solution"
jrathgebercs
Creator
Creator
Author

Hi @rafaelencinas ,

 

Thank you for suggestion. I will check check this.

 

Regards,

Irshad Ahmad

jrathgebercs
Creator
Creator
Author

Hi @rafaelencinas ,

I have selected the authentication schema anonymous. Still getting same error.

Regards, & Thanks,

Irshad Ahad

rafaelencinas
Partner - Creator
Partner - Creator

HI @jrathgebercs !

Lets review your settings:

In your images, its written :  accept - > application/json ( generally , the parameter is Content-Type )

Check in your documentation if the authentication method is GET or POST,  if its POST, you have to change the method to POST and create a body

 

rafaelencinas_0-1749035450597.png

 

If you provide the documentation its better to help, REST APIs sometimes are too complex to setting up.

 

Bye!

 

 

 

Senior Qlik Architect
Cobra, Stallone, "You're a problem and I'm the solution"
jrathgebercs
Creator
Creator
Author

Hi @rafaelencinas ,

In the our existing connection we were using get method to fetch the data from API with window NTLM authentication. But after migration server on new domain. We don't have permission to use service account and password manual. That is a reason we are looking alternate way to authenticate using the api key.

jrathgebercs_2-1749176920944.pngjrathgebercs_3-1749176977134.png

As per your suggestion can we use get method to fetch the data from Api?

 

Regards & Thanks,

Irshad Ahmad

rafaelencinas
Partner - Creator
Partner - Creator

HI @jrathgebercs !

I recommend you to try to do what do you want with POSTMAN, to test before setting up Qlik.

You need to know with is the name of query parameter to provide a correct parameter in rest query. Can you send a print screen of your documentation or configuration ?

Bye!

 

Senior Qlik Architect
Cobra, Stallone, "You're a problem and I'm the solution"
jrathgebercs
Creator
Creator
Author

Hi @rafaelencinas ,

Thank you for help. We are not using postman.

Please find the attached Rest Get method setting which we are using.

Rest API setting.jpg

Error Screenshot:

jrathgebercs_1-1749218125545.png

 

 

Regards & Thanks,

Irshad Ahmad

jrathgebercs
Creator
Creator
Author

PFA

Rest API setting.jpg

rafaelencinas
Partner - Creator
Partner - Creator

OK, according the picture your Authentication Method stil Windows NTLM, but its empty.

 

1 - You may type domain\user into User Name box and Password and try to connect.

2 - Generally, if you have authentication key , you dont need to provide user and password, but , you have to set to Anonymous

 

Note:

- If you are using Windows Client Managed, you have to check if the user that Runs Windows Service has the Access to Active Directory to Authenticate.

- If your Domain IP Server its not reached by server , you must check with the infrastructure department to create a route to this new AD Server

 

Bye!

 

Senior Qlik Architect
Cobra, Stallone, "You're a problem and I'm the solution"