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 Automate
Answered

Rest API Request

(1) ShareShare
ReportReport
Posted on by 4
API  request on Postman and SOAPUI works. On Power Automate fails , Using a Post Method ,authentication basic I have added the custom header with Authorization: Basic %Base64Credentials% and returns 401 whether the HTTP authenticate toggle is turned on (with credentials) and off. 
Apireq1.png
Apireq2.PNG
I have the same question (0)
  • Verified answer
    deepakmehta13a Profile Picture
    369 on at

    Hi,

    This usually happens due to how authentication is handled in Power Automate vs Postman/SOAPUI.

    A couple of quick things to check:

    1. Don’t mix both authentication methods
      If you are already passing:
      Authorization: Basic %Base64Credentials%
      then keep HTTP authentication toggle OFF. Using both can cause conflicts and lead to 401.

    2. Verify Base64 encoding
      Make sure your credentials are encoded as:
      username:password → Base64
      Also ensure there are no extra spaces or line breaks in the header.

    3. Try using built-in authentication instead
      Instead of custom header, turn ON HTTP authentication → Basic and provide username/password there, and remove the custom Authorization header.

    4. Content-Type header
      Add explicitly in headers if not already:
      Content-Type: application/json

    5. Encoding / request body
      If the API is strict, try turning ON Encode request body or check if the API expects UTF-8 specifically.

    In most cases, the issue is due to duplicate authentication (header + toggle) or incorrect Base64 formatting.

    Hope this helps.

    If this helps resolve your issue, please consider marking the response as Verified so it can help others facing a similar scenario.

    If you found this helpful, you can also click “Yes” on “Was this reply helpful?” or give it a Like.

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 377

#2
11manish Profile Picture

11manish 279

#3
David_MA Profile Picture

David_MA 234 Super User 2026 Season 1

Last 30 days Overall leaderboard