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
Unanswered

API Integration Error

(0) ShareShare
ReportReport
Posted on by 6

Facing API Integration.
So, I have designed an AI in katonic platform. So, when I'm integrating it in Power Automate Desktop, I'm getting error (422) and the Web Service Response is as below:
{"detail":[{"loc":["body",0],"msg":"Expecting value: line 1 column 1 (char 0)","type":"value_error.jsondecode","ctx":{"msg":"Expecting value","doc":"%7b%0d%0a%22data%22+%3a+%22Hi+support+team%2c+I%e2%80%99+am+unable+to+login+to+my+system+even+though+I+reset+my+password+promptly+as+suggested.+Please+look+into+this+issue+on+urgent+basis.Thank+you%22%0d%0a%7d","pos":0,"lineno":1,"colno":1}}]}
I'm unable to rectify this issue.
Can someone help me out in resolving this issue?

PAD Issue.png
  • CU16071609-1 Profile Picture
    6,255 Moderator on at

    @Mamtesh 

     

    First try to invoke your webservices using postman with required values then replicate the same steps in PAD so that you will get some clue where the exact issues is.

     


    Thanks,
    Deenuji Loganathan 👩‍💻
    Automation Evangelist 🤖
    Follow me on LinkedIn 👥

    -------------------------------------------------------------------------------------------------------------
    If I've helped solve your query, kindly mark my response as the solution ✔ and give it a thumbs up!👍 Your feedback supports future seekers 🚀

  • Riyaz_riz11 Profile Picture
    4,219 Super User 2026 Season 2 on at

    HI @Mamtesh ,

    While integrating api in PAD try first with postman once working so you will idea how you can pass headers body and all, if working after you can try with PAD.

     

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

    Regards,
    Riyaz

     

  • VishnuReddy1997 Profile Picture
    2,666 Super User 2026 Season 1 on at

    Hi @Mamtesh ,

     

    As per my understanding i have written few steps.Please check the below.

     

    1.Check Your JSON Syntax: The error message suggests that there might be an issue with the JSON syntax in your request. Make sure that your JSON is properly formatted and doesn’t contain any syntax errors.
    2.Check Your API Endpoint: Make sure that you’re targeting the correct API endpoint. If you’re not targeting an actual API endpoint, you might be sending a request to a URL that is designed to return an HTML document.
    3.Check Your Headers: The error could be due to incorrectly positioned whitespace in your headers. There shouldn’t be any whitespaces before the colo..
    4.Check Your Request Body: If you’re sending a request body, make sure it’s properly formatted and matches the expected format of the AP. You might need to disable or enable the “Encode request body” option.

     

    (Note:- if you got your solution you can mark as solution and gives kudos)


    Thanks & Regards

    Vishnu Reddy

  • AK88 Profile Picture
    453 on at

    Hi @Mamtesh ,

     

    Kindly check the below steps to rectify :

     

    -> Check all the required fields have been added. 

    -> Check user authorized to perform the requested action

    -> Check whether the API is upgraded or not.

    -> Kindly check with POSTMAN.

     

    thanks,

     If you like my response, please give it a Thumbs Up.

     

     

  • Mamtesh Profile Picture
    6 on at

    Hello Deenujji, I have tested api in postman and its working fine.
    Here are my screenshots :
    I have also attached the webservice screenshot, just review it and tell me if any changes has to be done.

    PAD(Web Service).png
    Postman(Data).png
    Postman(Headers).png
  • Mamtesh Profile Picture
    6 on at

    Hello @Ahammad_Riyaz ,
    I have tested the api in postman and its working fine.
    And I think I'm missing some headers while invoking webservice, can you just help me in resolving it.

    I have attached screenshots of both postman and webservice in the below:

    PAD(Web Service).png
    Postman(Data).png
    Postman(Headers).png
  • CU16071609-1 Profile Picture
    6,255 Moderator on at

    @Mamtesh 

     

    Can you try with different text in request body in JSON format something like sample text?

  • Mamtesh Profile Picture
    6 on at

    Hello @Deenuji ,
    I'm still facing the same issue.

    API Issue.png

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 426

#2
11manish Profile Picture

11manish 345 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 308

Last 30 days Overall leaderboard