web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / GET API request is wor...
Power Automate
Unanswered

GET API request is working in Postman, but not in Power Automate

(1) ShareShare
ReportReport
Posted on by 21

have been provided some information to access an API.  This includes an API Key and an element to filter inside the body.  

 

I am able to build and run this in Postman, but fails when running in Power Automate. 

 

The following code snippets are from Postman in the format of JavaScript Fetch

 

var myHeaders = new Headers();
myHeaders.append("Content-Type""application/json");
myHeaders.append("accept""application/json");
myHeaders.append("x-functions-key""5I2aeuDa4PCiwINdknxxxxxxOrbTSclHdUJd0cYhFWLUrA4TGIg==");

var raw = JSON.stringify({
  "xxxxxxId"142
});

var requestOptions = {
  method: 'GET',
  headers: myHeaders,
  body: raw,
  redirect: 'follow'
};

  .then(response => response.text())
  .then(result => console.log(result))
  .catch(error => console.log('error'error));
 
 
This is the setting from Power Automate
Marktvc_0-1687233279140.png

 

I have 2 levels of error.

 

1 - The provided 'Http' action inputs are not valid. A request body must not be included for 'GET' requests.

 

If I remove the body,

 

2 - Http request failed as there is an error: 'The SSL connection could not be established, see inner exception.

 

To clarify, I can get a response using Postaman, but not with Power Automate

 

 
Categories:
I have the same question (0)
  • Sundeep_Malik Profile Picture
    6,497 on at

    Hey @Marktvc 

     

    Not exactly sure this will work or not.

    For the 1st error you can add what you have added in body to queries

    In key add that Pid and in value write 142.

    For the 2nd error, not exactly sure how to fix that.

     

     

  • luciafernand Profile Picture
    2 on at

    Mesmo erro ocorrendo aqui. 

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 286

#2
David_MA Profile Picture

David_MA 256 Super User 2026 Season 1

#3
Expiscornovus Profile Picture

Expiscornovus 225 Most Valuable Professional

Last 30 days Overall leaderboard