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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Rejaul84
Frequent Visitor

Connecting to Dynatrace API using a API token details

Hi

 

I am trying to connect to the following https://exampleEnviornment.live.dynatrace.com/api/v2/metrics/query Dynatrace API

 

I am using an API token I get the below error message. I am very new to Power BI, so there is something that I have done incorrectly but not sure what? Any step by step guide will help

"The 'Authorization' 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"

Used the following to help me get the API URL https://www.dynatrace.com/support/help/dynatrace-api/environment-api/metric-v2/get-all-metrics

1 ACCEPTED SOLUTION

So It was sort of user error that I was able to figure out.

 

in the advance tab where you add in the API token I needed to add in Api-Token before it.

Rejaul84_0-1687517257285.png

 

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi  @Rejaul84 ,

 

According to research, this error comes from the API you are trying to connect to, and your data source may stop trying to log in "anonymous" and has been set to "basic".

You can reset the type by steps as below.

File>Options and settings>Data source settings.

Then edit the permission to reset the type. The credential type should look like as below.

vyangliumsft_0-1686713459092.png

 

 

This is the related document, you can view this content:

Solved: Power BI Service API authentication (Freshservice) - Microsoft Fabric Community

Solved: Remote API Access to data source sudden errors - Microsoft Fabric Community

 

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

I've edited this and then re-tried it and this is what I gert now.

Rejaul84_0-1686731205887.png

 

So It was sort of user error that I was able to figure out.

 

in the advance tab where you add in the API token I needed to add in Api-Token before it.

Rejaul84_0-1687517257285.png

 

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.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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