• Documentation
  • Workato Blog
  • Product Blog
  • Return to Workato
  • Login
  • Automation Institute
  • Documentation
  • Community Forums
New Topic
Discussions Recipe Building Recipe Building Questions
S

Steven Tran

started a topic about 5 years ago

Unable to configure the header and json data

Hello all,


I need to connect to a web app that supports REST API that is currently not on the list of Workato. 

The authentication is simple: 

 - I need to make a POST request to API url

 - I need to attach the API key to the header of the post: API_key

 - I need to attach my login information which contains 4 fields: UserName, UserId, Password, OrganizationID

If login successfully, the app will return a json containing a Token key. 


I've been struggling with where to configure these parameters so that they'll result in proper request to the API. I tried a lot of different things but I just get an error message: "{"error":"Webhook configuration doesn't match request method"}". Also, when I click Test my Recipe, it doesn't say whether the testing is successful or not. 


Can you anyone help me? 


I suspect my problem might how I put in the Json info. What is the coding convention for the Json? For example, on my Python, my login information is coded as:

data = {

        'UserName': "XXXXXXX",

        'UserId': "XXXXX",

        'Password': "XXXXXXXXX",

        'OrganizationID': "XXXXXX",

    }


What should it be on the Request Body? 


1 person has this question
Login to post a comment

Still can't find your solution?

Send us a ticket, we will try our best to assist you with your problem

Documentation
Developer's Library
Tutorials
eBooks
Product Hour
Product Blog
Workato Blog
Product updates
Customer Stories
© Workato 2022   Privacy   Terms   +1 (844) 469-6752
  • Documentation
  • Workato Blog
  • Product Blog
  • Solutions
  • Forums
  • Tickets
  • Log in
  • Return to Workato
Topic views count