Join BoxWorks in San Francisco Nov 12-13! Keynotes, product demos, and Box Master Classes. Reserve your spot!

What is the resolution for obtaining an access token via POSTMAN for the BOX API?

New post

Comments

1 comment

  • aclark1

    Hi , I use PostMan to obtain dev access tokens in the following way:

    1.  I construct a URL with my client Id as a url Param as follows:

     

    and save that as a request but really it's just so that I can copy and paste the url into a browser, login to box and in the address bar the token will be returned, which I copy and use in the next step in postman.

     

    2. I then create another POST request with the following URL: 

     

    and the following header:

    • Content-Type Application/x-www-form-urlencoded
    • Accept application/json

     

    and the following body elements:

    • grant_type authorization_code
    • client_id [CLIENT ID]
    • client_secret [CLIENT SECRET]
    • code [THE CODE YOU WOULD HAVE COPIED AT THE END OF STEP 1]

     

    once you send this request you will be returned a dev access token.

     

    Hope that helps.

    0
    Comment actions Permalink

Please sign in to leave a comment.