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 / Unable to process CURL...
Power Automate
Answered

Unable to process CURL command

(0) ShareShare
ReportReport
Posted on by 72

Hi All,

 

I have the below curl command 

curl -X 'POST' \  ‘<ClientSite>' \  -H 'accept: application/json' \  -H '<Authorization APIKEY>' \  -H 'Content-Type: application/json' \  -d '{  "data": "<input data>"}'

 

I am unable to make this work in automate desktop. Can anybody please help me in making the HTTP request 

Khai_Lunkim_0-1700542064620.png

 

Thank you!

  • Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    Essentially like this:

    Agnius_0-1700564730413.png

     

    And make sure you disable the "Encode request body" toggle under Advanced options. You don't need it encoded when it's a JSON body, but it's enabled by default:

    Agnius_1-1700564776863.png

     

    -------------------------------------------------------------------------
    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.

  • Verified answer
    Khai_Lunkim Profile Picture
    72 on at

    Hi Agnius,

    Thank you so much for the swift reply!

    I have been breaking my head over this and I did try as you instructed but I received the following error:
    "{"detail":[{"loc":["body",479],"msg":"Extra data: line 1 column 480 (char 479)","type":"value_error.jsondecode","ctx":{"msg":"Extra data","doc":"{ \"data\": \"<this is where the data goes>"}'","pos":479,"lineno":1,"colno":480}}]}"

    However, I was able to make it work by making use of the "Invoke SOAP web service" action with the following details for anybody else facing the same issue:

    Khai_Lunkim_0-1700593599872.png

     

  • Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    Well, if that's a SOAP API you're hitting, then obviously this is the way to go. Invoke web service is to be used on REST API endpoints.

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

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 432

#2
11manish Profile Picture

11manish 313 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 154

Last 30 days Overall leaderboard