Skip to main content

Notifications

Community site session details

Community site session details

Session Id : ah0JIj16t3ETxeXp8SHeGS
Power Automate - Power Automate Desktop
Suggested answer

How to access the cookies returned from an API call

Like (1) ShareShare
ReportReport
Posted on 13 Nov 2024 13:31:04 by 17
I have an API, which returns cookies while authenticating.
And for using another APIs i need that cookies to pass as headers. How can i get the cookies from Authentication API?
Categories:
  • Shijina Profile Picture
    17 on 14 Nov 2024 at 12:28:10
    How to access the cookies returned from an API call
    Thanks for your reply, Deenu. 
     
    Nope, all the 4 cookies are required for the next API call.
    How can i access those cookies? I tried various scripting methods as well, but no results.
  • Suggested answer
    Deenuji_Loganathan_ Profile Picture
    6,105 Super User 2025 Season 1 on 14 Nov 2024 at 11:00:17
    How to access the cookies returned from an API call
    From my understanding, Postman operates differently and returns distinct parameters, whereas Power Automate Desktop's invoke web service action yields different parameters; therefore, we shouldn't compare the outcomes from PAD with those from Postman.
     
    However, ensure that you actually require the cookies values returned from an API for subsequent API calls, or if a token from the authentication method suffices.
     
    Thanks,
    Deenu
  • Shijina Profile Picture
    17 on 14 Nov 2024 at 08:22:35
    How to access the cookies returned from an API call
    Response from Postman
    The above response i have got from Postman, which consist of 4 set-cookie, where as the below one, from PAD for the same API, i have received only 1 set-cookie.
    As this is the authentication API, i need those cookies to go forward with other API calls
     
     
    Response from PAD for same API call, only 1 set-cookie is returned here
  • Deenuji_Loganathan_ Profile Picture
    6,105 Super User 2025 Season 1 on 14 Nov 2024 at 03:28:32
    How to access the cookies returned from an API call
    Hi  ,
     
    Could you please share some screenshot(mask all sensitive info) to understand your use case Pls?
     
    Thanks,
    Deenu

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Automate - Power Automate Desktop

#1
eetuRobo Profile Picture

eetuRobo 11 Super User 2025 Season 1

#2
KO-05050229-0 Profile Picture

KO-05050229-0 4

#2
Brad Darragh Profile Picture

Brad Darragh 4

Overall leaderboard