Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
I have an API using the following M query to implement an authentication using headers, api key & token.
let
// Define the API URL for data retrieval
apiUrl = "https://app.test.com/MyList",
// Define headers with x-api-key and x-token
headers = [
#"x-api-key" = "your_api_key_value",
#"x-token" = "your_token"
],
// Make the GET request with headers
response = Web.Contents(apiUrl, [Headers=headers]),
jsonResponse = Json.Document(response)
in
jsonResponse
And I want to authenticate anonimously because I user headers and I can not. It keeps asking for authentication. My API also connects with a username and password or with API key. But none of them seem to work. It always keep asking for authentication.
Any clue on the issue or hint for the approach?
Thank you.
Nick
Hi @nf_protogramma ,
Base on your description, it sounds like you're trying to make a web request in Power Query (M language) and encountering issues with the authentication prompt. Please try to set Anonymous authentication and check if it can resolve the problem:
Best Regards
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
7 | |
6 | |
3 | |
2 | |
2 |
User | Count |
---|---|
6 | |
5 | |
4 | |
4 | |
4 |