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

Fabric Data Days Monthly is back. Join us on March 26th for two expert-led sessions on 1) Getting Started with Fabric IQ and 2) Mapping & Spacial Analytics in Fabric. Register now

Reply
smeetsh
Responsive Resident
Responsive Resident

How to pass a refresh token using post methode in body

Hi All,

 

EDIT: sorted, please see my own answer

 

I need to use a refresh token to get an acces topen, to get data from an API. The API forces me to use the post methode and as far as i know, that mean i have to put the refesh token in the body of the request, but I am stumped how to do that.

 

I have tried {"refresh_token" : "123456789abcd"}, and any variants i could think of, but it keep coming back with the error "no refresh token"

 

I have also tried :

--data-urlencode
'refresh_token=123456789abc'

For clarification, I can get it to work in postman, where it looks something like below, but how do I translate that to a web request in Fabric, uing post.:

smeetsh_0-1714450601899.png

 

 
Cheers

Hans

(If my solution was usefull, please give it a kudo, and mark it as a solution)
1 ACCEPTED SOLUTION
smeetsh
Responsive Resident
Responsive Resident

I managed to sort it out, eventually postman was my friend.  After setting it up in the gui i clicked on the code snippet column on the right  and selected http from teh dropdown

smeetsh_0-1714452080418.png

smeetsh_1-1714452137423.png

 

That provide the raw output you will need for the body, in my case as simple as:

refresh_token=abc12345678

 

no need for ', ", or {}

 

(My output was origincally set to curl, I guess i learned some postman today 🙂 )

Cheers

Hans

(If my solution was usefull, please give it a kudo, and mark it as a solution)

View solution in original post

2 REPLIES 2
smeetsh
Responsive Resident
Responsive Resident

I managed to sort it out, eventually postman was my friend.  After setting it up in the gui i clicked on the code snippet column on the right  and selected http from teh dropdown

smeetsh_0-1714452080418.png

smeetsh_1-1714452137423.png

 

That provide the raw output you will need for the body, in my case as simple as:

refresh_token=abc12345678

 

no need for ', ", or {}

 

(My output was origincally set to curl, I guess i learned some postman today 🙂 )

Cheers

Hans

(If my solution was usefull, please give it a kudo, and mark it as a solution)

Hi @smeetsh 

 

Glad that you query got resolved and thank you for sharing the same with the community as it can be helpful to others.
Please continue using Fabric Community for further queries.

 

Thank you.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Fabric Update Carousel

Fabric Monthly Update - February 2026

Check out the February 2026 Fabric 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.