Welcome to the new Box Support website. Check out all the details here on what’s changed.

always getting Invalid grant_type parameter or parameter missing but works on postman

New post

Comments

2 comments

  • BobFlynn-IU

    ,

     

    You'll have better luck getting a response posting this to the Box Developer Forum.

     

    Bob

    0
    Comment actions Permalink
  • thecory

    You're setting the wrong content-type. You set it to 

    "Content-type": "application/x-www-form-urlencoded; charset=UTF-8"

    but you're sending json so it should be

    "Content-type": "application/json"

    If you want to send urlencoded data instead of json then the data should look like:

    grant_type=authorization_code&code=code&client_id=CLIENT_ID&client_secret=CLIENT_SECRET

     

    0
    Comment actions Permalink

Please sign in to leave a comment.