"status":"BAD_GRANT_TYPE","message":"missing or unknown '

Hi,

I know this seems to be a common issue but I really can’t see where my request is wrong and why I get the following error everytime I try to get an Access Token (once I receive an authorization_code):

‘{“status”:“BAD_GRANT_TYPE”,“message”:“missing or unknown ’ +
'grant ’ +
'type”,“correlationId”:“0bebdeb8-95dc-4809-a80e-25ffd3c5954f”,“requestId”:“7d17b79acdf14906784cc709b8c04458”}’

Here is my the payload of my POST request:

body: ‘{“client_id”:“d3bea0f5-02a5-4e08-a731-e5532d8ede5a”,“client_secret”:“XXXX-193f-4ffe-9f50-088b1cc1ae75”,“code”:“3797cd0b-01ea-4e58-89b4-59b6778eb0c7”,“grant_type”:“authorization_code”,“redirect_uri”:“http://localhost:3001/callback?”}’

Any help is appreciated

Please ingore. I just figured it out:

I was putting all the parameters in the Body of my POST request instead of having no body and having the paramaters as query parameters. Also making sure the headers contain ‘Content-Type: application/x-www-form-urlencoded;charset=utf-8’