My Apps

    Developer Tokens

    Developer Tokens

    A Developer Token is an Access Token available to developers during development and testing. These tokens are short lived as they expire after 60 minutes and can not be refreshed automatically.

    Create Developer Token

    To create a Developer Token for an application:

    • Go to the Box developer console and select the application to create a Developer Token for.
    • From the sidebar select "Configuration".
    • In the "Developer Token" section select "Generate Developer Token".

    Using Developer Token

    A Developer Token can be used like any Access Token in the Authorization header of an API call.

    curl \
      -H "Authorization: Bearer [DEVELOPER_TOKEN]"

    Most of our SDKs can be initialized with a Developer Token as well to create a basic API client.

    var config = new BoxConfig("YOUR_CLIENT_ID", "YOUR_CLIENT_SECRET", new Uri("http://localhost"));
    var session = new OAuthSession("YOUR_DEVELOPER_TOKEN", "N/A", 3600, "bearer");
    var client = new BoxClient(config, session);
    BoxAPIConnection api = new BoxAPIConnection("YOUR-DEVELOPER-TOKEN");
    from boxsdk import Client, OAuth2
    auth = OAuth2(
    client = Client(auth)
    me = client.user().get()
    print('My user ID is {0}'.format(
    var BoxSDK = require('box-node-sdk');
    var sdk = new BoxSDK({
    	clientID: 'YOUR-CLIENT-ID',
    	clientSecret: 'YOUR-CLIENT_SECRET'
    var client = sdk.getBasicClient('YOUR-DEVELOPER-TOKEN');

    Developer tokens should not be used in production environments

    The Developer Token should only be used for development and testing purposes. As tokens automatically expire and can not be refreshed automatically they are of limited use in a production environment.