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:
  • Sundeep_Malik Profile Picture
    6,501 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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 414

#2
11manish Profile Picture

11manish 331 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 274

Last 30 days Overall leaderboard