Refresh an Access Token - Box Developer Documentation (2024)

To authenticate to the Box API the Postman collection will use an AccessToken to identify you, the User to the API. Access tokens expire after 1hour and therefore need to be refreshed every hour.

Using a Refresh Token

If you set up your own Box App in step2 of the Postman QuickStart guide then your Box environment in Postman should include a validclient_id and client_secret. These client credentials and therefresh_token can be used to create a new value for the access_token.

Refresh an Access Token - Box Developer Documentation (1)

To refresh the access token, select the Refresh access token API call withinthe Authorization folder of the Postman collection.

Refresh an Access Token - Box Developer Documentation (2)

Next, click the Send button to request a new access_token.

Refresh an Access Token - Box Developer Documentation (3)

At the end of this API call, your environment should have a new access_tokenand refresh_token value, and you should be able to make any of the other APIcalls.

Refresh tokens are only valid once and need to be used within 60 days. If usedwithin 60 days, a new one is created together with a new access token and the60 day period starts again.

A refresh token expires if not used within 60 days, after which a new refresh tokenand access token need to be requested by going through the QuickStart guide again.

Automatically refreshing an access token

The Postman collection can automatically detect an expired access_token valueand request a new one by using the refresh_token. By default this feature isenabled but it can be turned off by setting the enable_auto_refresh_access_tokenPostman environment variable to false.

To set this value, click the edit button in the top right of your Box Postmanenvironment variables.

Refresh an Access Token - Box Developer Documentation (4)

Find the row in the table for the enable_auto_refresh_access_token variableand set the Current Value to true. Next, click Update to save yourchanges.

From now on, any time you make any API call the Postman collection willcheck if your access_token has expired and try to refresh it automaticallybefore making your desired API call.

Re-authenticating your Postman collection

In some cases you might need to re-authenticate your Postman collection by goingthrough the Quick Start guide again. A commonreason for this is because you haven't used the Postman collection in over 60days and your refresh_token has expired.

To re-authenticate, first remove your old Box Postman environment. To do so,click the little gear icon in the top right and select your environment fromthe list.

Refresh an Access Token - Box Developer Documentation (5)

Select Delete to delete the environment. Then, restart the Postman QuickStart guide again from the start.

When re-importing the Box Postman Collection for a second time the Postmanapp might ask you to import the new collection as a copy or replace the oldone. We recommend importing it as a copy in order to preserve any customconfiguration you might have made to any of the APIs.

Refresh an Access Token
 - Box Developer Documentation (2024)
Top Articles
Nonprofit Insurance
What would happen if we re-distributed the world's 1%'s wealth back to the 99% as a one-time reset?
Express Pay Cspire
Printable Whoville Houses Clipart
Kreme Delite Menu
Chambersburg star athlete JJ Kelly makes his college decision, and he’s going DI
FFXIV Immortal Flames Hunting Log Guide
Phone Number For Walmart Automotive Department
THE 10 BEST Women's Retreats in Germany for September 2024
Rondale Moore Or Gabe Davis
Richard Sambade Obituary
Is Csl Plasma Open On 4Th Of July
Toonily The Carry
Cape Cod | P Town beach
104 Presidential Ct Lafayette La 70503
Urban Dictionary Fov
1Win - инновационное онлайн-казино и букмекерская контора
Hillside Funeral Home Washington Nc Obituaries
Craigslist Boats For Sale Seattle
Watch TV shows online - JustWatch
I Touch and Day Spa II
Youravon Comcom
Dutch Bros San Angelo Tx
Clear Fork Progress Book
Espn Horse Racing Results
Rufus Benton "Bent" Moulds Jr. Obituary 2024 - Webb & Stephens Funeral Homes
Georgia Cash 3 Midday-Lottery Results & Winning Numbers
Theater X Orange Heights Florida
Gs Dental Associates
The 15 Best Sites to Watch Movies for Free (Legally!)
Keyn Car Shows
Viduthalai Movie Download
CohhCarnage - Twitch Streamer Profile & Bio - TopTwitchStreamers
What Is The Lineup For Nascar Race Today
Ucm Black Board
Pensacola 311 Citizen Support | City of Pensacola, Florida Official Website
Bimar Produkte Test & Vergleich 09/2024 » GUT bis SEHR GUT
Go Upstate Mugshots Gaffney Sc
Edict Of Force Poe
Go Smiles Herndon Reviews
Boone County Sheriff 700 Report
Indio Mall Eye Doctor
2700 Yen To Usd
Live Delta Flight Status - FlightAware
705 Us 74 Bus Rockingham Nc
Cch Staffnet
Star Sessions Snapcamz
Latina Webcam Lesbian
Wrentham Outlets Hours Sunday
Rocket Bot Royale Unblocked Games 66
Supervisor-Managing Your Teams Risk – 3455 questions with correct answers
Latest Posts
Article information

Author: Carlyn Walter

Last Updated:

Views: 5426

Rating: 5 / 5 (50 voted)

Reviews: 81% of readers found this page helpful

Author information

Name: Carlyn Walter

Birthday: 1996-01-03

Address: Suite 452 40815 Denyse Extensions, Sengermouth, OR 42374

Phone: +8501809515404

Job: Manufacturing Technician

Hobby: Table tennis, Archery, Vacation, Metal detecting, Yo-yoing, Crocheting, Creative writing

Introduction: My name is Carlyn Walter, I am a lively, glamorous, healthy, clean, powerful, calm, combative person who loves writing and wants to share my knowledge and understanding with you.