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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors