Uipath WebAPI Activities - Http Request Activity - Getting this Error - "AADSTS900144: The request body must contain the following parameter: 'grant_type'

Hi All,

I am getting the below error, while using the HTTP activity. Attached the code snippet below for reference.

Error: {“error”:“invalid_request”,“error_description”:“AADSTS900144: The request body must contain the following parameter: ‘grant_type’.\r\nTrace ID: e8643bec-a23a-42d2-b42b-b6e6759d7f00\r\nCorrelation ID: 77876c62-15a1-4462-95a4-af88f91c0278\r\nTimestamp: 2021-12-14 11:51:40Z”,“error_codes”:[900144],“timestamp”:“2021-12-14 11:51:40Z”,“trace_id”:“e8643bec-a23a-42d2-b42b-b6e6759d7f00”,“correlation_id”:“77876c62-15a1-4462-95a4-af88f91c0278”,“error_uri”:“https://login.microsoftonline.com/error?code=900144”}

Code Snippet:

Note:- The same is working fine in POSTMAN…Not sure why its saying ‘grant_type’ is missing.

Can you pls help.


Refer below thread

Hope this may help you


Hi @Srini84 ,

Thanks for your response and apologize for the delayed feedback.

Issue got fixed. Solution is by creating those as individual parameters under ‘Parameters’ rather than applying in ‘Body’.

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.