Skip to main content
Question

Question for OAuth token URL

  • May 21, 2025
  • 2 replies
  • 21 views

Forum|alt.badge.img

I use "https://app.box.com/api/oauth2/token" to get access_token. My question is , if the app is used for an enterprise user and their login url is like "https://***.ent.box.com" but not "https://app.box.com", do I need to change the url to "https://***.ent.box.com/api/oauth2/token"?
From the latest guide, I see the url is changed  to "https://api.box.com/oauth2/token". Both two are working now? Any difference?

2 replies

Forum|alt.badge.img

No, it doesn't matter what your organization uses as an URL., you should always call  https://app.box.com/api/oauth2/token for any API call related to Authentication or any API for that matter. 

 

hope this clear it out. 

 

thanks, 

Bibek


Forum|alt.badge.img

Hello ,

 

We have used Token end point URL as : https://app.box.com/api/oauth2/token in oAuth Authentication configuring process. But when we click on Get Token before checking the Inttegration, we are getting an error as below:

 

OAuth flow failed. Verify the configurations and try again. Error detail:java.io.IOException: Server returned HTTP response code: 405 for URL: https://box-token-generator.herokuapp.com/.

 

Please guide me from here...