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 / Call to web service al...
Power Automate
Unanswered

Call to web service allways return 401, no detect custom headers

(0) ShareShare
ReportReport
Posted on by 21

Hello everyone, I am trying to execute a call to an API of a web service and it always returns the 401 error and the problem is that it does not detect the custom headers that I put, I only have to send one and I am writing it the box of custom param in mode key:value and the service must return a 201 with a location, the same call withc Postman for example return 201 CREATED with the headers result.

 

HeaderKeyValuePowerAutomateDesktop.jpg

 

Has anyone had this problem?

 

Thanks

 

 

I have the same question (0)
  • VJR Profile Picture
    7,635 on at

    Hi @javier-raneros 

     

    Instead of the words key and value I guess you need to send the actual key and the actual value.

    Also see in postman if the custom headers are in any particular format.

    Is it something like below with quotes where test is the key and true is the value?

    test: 'true' 

     

    Give a minute to this video and you will get some pointers

    Set Custom Headers on an API Request in Postman | egghead.io

     

  • yoko2020 Profile Picture
    495 on at

    If your authentication is using bearer just put this in the header

     

     

    Authorization: Bearer <token>

     

     

    If using basic authentication

     

    Authorization: Basic ZGVtbzpwQDU1dzByZA==

     

     

    https://swagger.io/docs/specification/authentication/basic-authentication/

    https://swagger.io/docs/specification/authentication/bearer-authentication/

  • javier-raneros Profile Picture
    21 on at

    Good morning, thanks for the interest and sorry for delay (i'm out off..)

     

    In this first request it is not necessary to authenticate, first a value is passed in the header so that it returns a Location and then with that value in another request to authenticate in that Location.

    But my problem is that I don't know how to fill in the fields of the request in PowerAutomate; in Postman it works correctly and returns OK 201 but from PowerAutomate it returns 401 as I enter the data.

     

    Call from PowerAutomateCall from PowerAutomate

     

    Call from PostmanCall from Postman

     

    In the case of Postman I enter them in the Headers fields because it indicates it and in PowerAutomate in the Custom Headers field. I have tried all the combinations: with single, double quotes, without them, etc and it always returns 401 that this Header is missing.

     

    How to pass this data?

     

    Very very thanks,

  • soundarya1996 Profile Picture
    4 on at

    Hello @yoko2020 
    I am also facing the same issue in my case I am passing basic authentication. But also have to pass custom headers 
    as below

    soundarya1996_0-1718783693149.png

    But facing 401 code error. Please helpme out

  • soundarya1996 Profile Picture
    4 on at

    Can Anyone help me out in the above scenario please

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

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 252 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 169

#3
Haque Profile Picture

Haque 154

Last 30 days Overall leaderboard