Forum Discussion

Rapolu_Divya's avatar
Regular Visitor
7 years ago

Observed missing_grant_type error in API response , when application/x-www-form-urlencoded used


I want to send a request body to a API method which contains ,
1. client_id :4875dnfdg67586
2. client_secret :3754gfgf

I have kept media type as "application/x-www-form-urlencoded" and enabled the "Post Query String".

Observed error as missing grant type.

Please refer attached SS.

3 Replies

  • Preerab's avatar
    Occasional Contributor

    I do have similar problem when I try to get tokeb using Media-Type :  'x-www-form-urlencoded'

    and below is my format


    No Luck.

    ITs REST POST CMD withh body of type 'x-www-form-urlencoded'. It works perfect in POSTMAN. 

    Would like to know what is the format need to be sent along the body of type 'x-www-form-urlencoded' to get token.

    Appreciate quick help

    • divyarani's avatar
      Frequent Visitor

      Format to be sent in request body as ,




      Content -Type as - application/x-www-form-urlencoded

      Uncheck - Post Query String checkbox

      Add headers as ,

      Content-Type , application/x-www-form-urlencoded.


      This will work for sure.