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

Notifications

Announcements

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,484 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard