Skip to main content
Question

How to get access/refresh token

  • May 27, 2025
  • 3 replies
  • 17 views

Forum|alt.badge.img

Hi There, 

I want to upload large files from local to box using curl but I only tried developer token, now how should I get access/refresh token? Thanks. 

3 replies

Forum|alt.badge.img
  • Author
  • Known Participant
  • 34746 replies
  • May 27, 2025

u can use the same access token as refresh token... thnks


Forum|alt.badge.img
  • Author
  • Known Participant
  • 34746 replies
  • May 27, 2025

It depends on which interface you want to use.  For command line you can follow the guide https://developer.box.com/guides/cli/quick-start and do not need to handle the auth process explicitly.  For API (python, .Net, Node, ...) you will need to know the app configuration (clien id, client secret ,...) and make a few function calls.  However, you may get a useless token like some of us experience in the post with the subject "How can I create and API token for python program"


Forum|alt.badge.img
  • Author
  • Known Participant
  • 34746 replies
  • May 27, 2025

I am able to upload the file from my local linux command line using developer token. once expire i need to generate new token from box UI is there any command line solution to generate the new developer token commandline? i have free box account