Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Anonymous
Not applicable

Connect to web api authentication

Hello Everybody,


im trying to connect to the ixon api.


This works:grafik.png


So when i try to authenticate via the build in power bi basci auth the querry will be:

grafik.pngIn the Data Source Options I have set my EmailAdress and the Password in the Basic Authetification.

grafik.png

 


The Api doc is telling me:

The format of the basic authentication is “Basic authenticationstring”. The
authenticationstring is formed by encoding the string “email:one time
password:password” with base-64. The “one time password“ is only required when
Two-factor authentication is enabled and is otherwise empty.


I am leaving the one time password empty so i just added ":" after my email. Somehow it wont connect now.


This is the error im getting:

Expression.Error: The 'IXapi-Version' header is only supported when connecting anonymously. These headers can be used with all authentication types: Accept, Accept-Charset, Accept-Encoding, Accept-Language, Cache-Control, Content-Type, If-Modified-Since, Prefer, Range, Referer


What am I doing wrong?


Thank you.

Regards, Luis

1 REPLY 1
ImkeF
Community Champion
Community Champion

Hi @Anonymous 

basic authentication isn't natively supported for Web.Contents. But there seems to be a workaround (see here: https://social.technet.microsoft.com/Forums/office/en-US/11d4347c-0332-4dea-b270-a2dcd911c8b0/passing-username-and-password-in-basic-authentication?forum=powerquery) although I've never tried it.

 

Imke Feldmann (The BIccountant)

If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!

How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors
Top Kudoed Authors