Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
Hi Guys!
I'm completely new to PowerBI and API's... I want to retrieve data via Request URL's.
First I need to login to get a token:
https://dashboard.emb2020.nl/api/Security/Logon?username=USERNAME&password=PASSWORD
Then you'll get this response body:
{ "token": "EDSF4wffrhwszurfhawsuhrf==",
"userID": "FIRST and LASTNAME",
"emb": true,
"language": "nl-nl",
"i10n": true, "resultCode": 4,
"resultText": "RECONNECT",
"resultDescription": "Reconnect gelukt" }Now I want to use this token in the next request:
https://dashboard.emb2020.nl/api/Company/GetCompanies?api_key=TOKEN
The token changes everytime you login, so you can't hardcode it.
What's the easiest way to do this?
You have one hour before it expires.
You coulde refer to :
https://community.powerbi.com/t5/Power-Query/Refresh-token-api-call/m-p/937553
https://www.bmc.com/blogs/microsoft-apis-authentication-tokens/
I also had the same issue
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 |
| User | Count |
|---|---|
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 |