Skip to main content

Notifications

Community site session details

Community site session details

Session Id : uxE+pdQ+sntjN/L/+WHw8Q
Power Automate - Power Automate Desktop
Unanswered

Running into a 401 Error in Power Automate Desktop

Like (0) ShareShare
ReportReport
Posted on 7 Jan 2025 20:56:24 by
Running into the below 401 error code in Power Automate Desktop. The POST API call I am trying to do has no issues in Postman Desktop. I can't figure out why it is not working in Power Automate Desktop. Below the error is the headers and body I am putting through the API call.
 
 
{ "statusCode": 401, "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." }

Accept: application/json

Content type: application/json

Custom headers: Ocp-Apim-Subscription-Key:Basic 94xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

{
  "model": "gpt-4",
  "messages": [
    {
      "role": "user",
      "content": "What is OpenAPI?"
    }
  ]
}
Categories:

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…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,724 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,075 Most Valuable Professional

Leaderboard
Loading started