Skip to main content

Hello,

 

I am completely new to Box.com and I have been tasked with writing an "app" that, when a file is dropped into a specific directory, reads that file and uploads the contents to a database.....

 

I have managed to create an Application in my developer account and configure a webhook which successfully calls my endpoint when a file is uploaded. Happy Days!

 

As this "app" will have no user interaction I am trying to work out the best way to get a non-expiring API key.

 

Can anyone point me in the right direction please?

 

Many thanks

 

Trev



We have two types of authentication. The first is our OAuth process, which is designed to be used with Managed Users. The second is our JWT auth process, which is designed to be used with App Users. For both of these authentication types, the API key does expire. 


 


 




When you request an auth token, you actually get back two tokens: an access_token that you use to authenticate API calls, and a refresh_token that you can use to get a new set of tokens.

In addition to processing your events, your endpoint can check for token expiration and request a new token when necessary.



Reply