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

July 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is your chance. Learn more

Reply
RainerBe
Frequent Visitor

Using a POSTMAN request in PowerBI

Hey all, 

 

I'm new to in coding and Im attemping to migrate a functioning post request from postman to PBI.

I can generate the code in a variety of languages from postman and am wondering what's the easiest way to 

copy and paste this code into PBI in order to run the POST request from PBI directly.

 

Here's an example of the code in HTTP:

 

POST mypath HTTP/1.1
Host: myhost
Content-Type: application/json
Accept: */*
Cache-Control: no-cache
accept-encoding: gzip, deflate
Connection: keep-alive
cache-control: no-cache

{
"request":
{
"username": "myusername",
"password": mypassword"
}
}

 

The request delivers the following result

 

{
"subscribeResult": {
"expires": "2021-09-18T07:10:21.000Z",
"sessionId": "mysessionid",
"username": "myusername"
}
}

 

Has anyone an idea how can implement this kind of request in PowerBI?

 

Thanks in advance

Bernd

3 REPLIES 3
Swetha__Balu
New Member

I am able to retrieve access token using grant type 'client_credentials'. But when I call the GET datasets API, it gives 403 forbidden error even though I have assigned necessary permissions

RainerBe
Frequent Visitor

Thanks for the quick answer, but  in your Link (Chris Webb) he explais, that PowerBI has some limitations. Especially POST request can only be done with anonymous authentication 😞   seeand hear https://www.youtube.com/watch?v=a0FqNLI0VsQ&t=1192s 

I think that is the reason/limitation for my problem.

 

Nevertheless thanks for clearifiying.

 

BR Bernd

MikeJohnsonZA
Responsive Resident
Responsive Resident

Hi

 

You can use [web] data source in Power BI to connect to a REST API. its probably easiest to do it in the power query advanced editor.

 

The function you will want to use Web.Contents - PowerQuery M | Microsoft Docs

this will allow you to make a call to the endpoint and specify the custom header.

 

For a full overview on how to do this there is a video that covers most of what you will need to know Accessing API and web service data using Power Query - by Chris Webb - YouTube 

 

Helpful resources

Announcements
Fabric Community Sticker Design Challenge Barcelona Carousel

Fabric Community Sticker Challenge - Barcelona 2026

If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!

July Power BI Update Carousel

Power BI Monthly Update - July 2026

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

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors