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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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
Top Kudoed Authors