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 / API Giving 411 Error i...
Power Automate
Unanswered

API Giving 411 Error in Power Automate Desktop

(0) ShareShare
ReportReport
Posted on by 9

Hi, 
i am trying to connect to a Private API Key of my Organization. it is a Login Url API.

Raj14_0-1689613174860.pngRaj14_1-1689613346611.png


i have also given the User Name and Password Correctly.

But i was getting the Error 411.

Raj14_2-1689613573739.png

How to resolve this Error. 

I have the same question (0)
  • Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    The "411 Length required" error indicates that you are missing the "Content-Length" header and the server requires it to be sent. Since your request body is empty, try adding "Content-Length: 0" (without the quotation marks) to the Custom headers field.

    -------------------------------------------------------------------------
    If I have answered your question, please mark it as the preferred solution. If you like my response, please give it a Thumbs Up.

    I also provide paid consultancy and development services using Power Automate. If you're interested, DM me and we can discuss it.

  • Raj14 Profile Picture
    9 on at

    Hey @Agnius , i added the Content Length in The Headers.
    Now it is giving me Bad Request Error - 400.

  • Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    Do you have a proper documentation of this API? Can you talk to the developers internally and ask what kind of a request you need to make and what headers and body are required? I would assume that for a POST request, some kind of a body is likely needed.

     

  • Raj14 Profile Picture
    9 on at

    Actually i am the first guy, who took up PAD in my organization, So there is internal help. As everybody is only Good at Uipath.

    Coming to Documentations. it only consisted the Url EndPoint and the Http Verb i need to Use. There is no mention of Body or Custom Headers.

    This is a Authentication Url(Or you can say login page for a internal site) which uses "UserName and Password" Credentials to Login.
    For this of API, is the inputs i have given in the top enough and the format that i have given in Is it right?
    Do i need to give any more inputs?

    Thanks in advance @Agnius 

  • Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    Regardless of what the other developers are using in your organization to automate processes, if they use this API, you can ask them how they made the auth request. 

    Honestly, an auth request should normally be documented properly, because otherwise we're just guessing here.

    You might also want to try to experiment with disabling the 'Encode request body' toggle in the Advanced options. Depending on the endpoint, this can sometimes cause issues.

    -------------------------------------------------------------------------
    If I have answered your question, please mark it as the preferred solution. If you like my response, please give it a Thumbs Up.

    I also provide paid consultancy and development services using Power Automate. If you're interested, DM me and we can discuss it.

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 442

#2
Vish WR Profile Picture

Vish WR 328

#3
David_MA Profile Picture

David_MA 268 Super User 2026 Season 1

Last 30 days Overall leaderboard