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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
alexbjorlig
Helper IV
Helper IV

What is the "Web API" permission, when connecting to web?

I'm new to Power BI, and have created a workbook connecting to a web REST API.

 

When I click on the "Data Source Settings" button, I don't understand the permission option "Web API":

 

Web API.png

 

Where is the "key" being sent in the request for the web resource?

 

 

6 REPLIES 6
v-yuta-msft
Community Support
Community Support

@alexbjorlig ,

 

You need to input the access token in that option when you use rest api to connect to data source.

 

Community Support Team _ Jimmy Tao

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

Ok, but where is that access token embedded in the request? As a bearer token? Basic auth? query param? 

@alexbjorlig ,

 

The access token is a method of http request authentication. It's can be added in the headers part of the http request. If the web api you use doesn't have such token, you can use other connection way(e.g.: basic auth or organizational account)

 

Community Support Team _ Jimmy Tao

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

Thanks for taking your time to reply, but I still think it's very unclear what happens.

 

If I provide the token "123" as "access token", where is this token send in the request? Is it part of the Authorization header?

@alexbjorlig ,

 

Yes, it's an authorization part which should be added in header. I would suggest you read the doc below:

https://auth0.com/docs/flows/guides/auth-code/call-api-auth-code

 

Community Support Team _ Jimmy Tao

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


@v-yuta-msft wrote:

@alexbjorlig ,

 

Yes, it's an authorization part which should be added in header...


Wait a moment - should be added in header? We are talking about a GUI dialog box where I can input a token. My question is: 

 

Where is this token being added? I don't understand how linking to the Auth0 article helps answer that question?

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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