Skip to main content
Question

How can I create and API token for python program

  • May 23, 2025
  • 2 replies
  • 31 views

Forum|alt.badge.img

I want to create a little python program that will move file from one folder to second folder and change it's name but I have a huge problem with it. From each side they want OAuth code or user authentication where I only want a one time pass for a program. When I reach authentication and get this Bearer code then it didn't saw any folders and files from my box. It's amazing how such easy thing could be so complicated here. Any help?

2 replies

Forum|alt.badge.img

I use Box .Net SDK and have the exact same problem.  Query the root folder (id = 0) using a programmatically acquired token returns 0 items every time.  Query using the temporary developer token from the same App works correctly and lists all the folders and files.  Unfortunately, developer token cannot be used in production. Submit a ticket and have not heard back for 2 days.  It's so frustrated.


Forum|alt.badge.img

You may want to check the post "CLI command tokens:get does not work".  The response there may apply to your case.