Skip to main content
Question

getting 401 when using DeveloperToken, ClientID and ClientSecret

  • May 22, 2025
  • 2 replies
  • 16 views

Forum|alt.badge.img

Exception in thread "main" com.box.sdk.BoxAPIResponseException: The API returned an error code [401 | 8mjnitgs7wh247vb.0fdcbcc4b89140ba8ca9e49e98b93a0a9] unauthorized - Unauthorized - Cannot authorize with this service
at com.box.sdk.BoxAPIResponse.<init>(BoxAPIResponse.java:92)
at com.box.sdk.BoxJSONResponse.<init>(BoxJSONResponse.java:32)
at com.box.sdk.BoxAPIRequest.trySend(BoxAPIRequest.java:677)
at com.box.sdk.BoxAPIRequest.send(BoxAPIRequest.java:381)
at com.box.sdk.BoxAPIRequest.send(BoxAPIRequest.java:348)
at com.box.sdk.BoxUser.getCurrentUser(BoxUser.java:168)
at financing.tools.icfs.jffroutepdf.Main.main(Main.java:65)

I requested a developerToken, ClientID and ClientSecret and received this error. The authorization type is BOX1_Jk304ynkZFAJeR25sndvHA.pngis there something else I needed to do?

2 replies

Forum|alt.badge.img

Hello, 

Can you please share the client ID of your application so I can take a look on the backend? 

Best,

Kourtney, Box Developer Advocate


Forum|alt.badge.img

Hi Kourtney, I resolved my issue. Thanks for replying.