Error while using the post method to get the access token


I am not getting the response for the post method of the HTTP request. I am getting an error like this.

{“error”:“invalid_request”,“error_description”:“AADSTS900144: The request body must contain the following parameter: ‘grant_type’.\r\nTrace ID: 3c1d7b99-8382-46a8-a02e-97a62f13bb00\r\nCorrelation ID: 68b8de0f-aaee-4ba5-8d73-20d74bd6d158\r\nTimestamp: 2019-11-29 06:08:07Z”,“error_codes”:[900144],“timestamp”:“2019-11-29 06:08:07Z”,“trace_id”:“3c1d7b99-8382-46a8-a02e-97a62f13bb00”,“correlation_id”:“68b8de0f-aaee-4ba5-8d73-20d74bd6d158”,“error_uri”:“”}


Hi Nalini,

It would be helpful for other if you provide more details on what you are trying to do and what you have done already.

From that text alone, it is telling you that your grant_type parameter must be in the body of your request. I assuming that this is missing. Based on the error description, I also assume that you are attempting to authenticate using OAuth to get a token for a service with Microsoft Online… I would refer you to their documentation on what headers, url / body parameters and accepted content-type must be used for a successful request.

A quick search of that error description with grant_type reveals many resolutions within Microsoft support sites, and other site like StackOverflow.