Skip to content
Scalekit Docs
Talk to an Engineer Dashboard

Connect AI agents to Dropbox

Scalekit connector
Open markdown

The Dropbox connector lets your AI agent act in each user's Dropbox account. Each user signs in to Dropbox once, and Scalekit stores and refreshes their tokens, so your agent never handles credentials. It comes with 53 tools.

Tools
53
What they doRead · write · destructive
27 · 17 · 927 read17 write9 destructive
Users sign in with
OAuth app
Scalekit's or your own

Setup

  1. Install the SDK

    Terminal window
    npm install @scalekit-sdk/node dotenv
  2. Set your credentials

    Add your Scalekit credentials to your .env file. Find values in app.scalekit.com > Developers > API Credentials.

    .env
    SCALEKIT_ENVIRONMENT_URL=<your-environment-url>
    SCALEKIT_CLIENT_ID=<your-client-id>
    SCALEKIT_CLIENT_SECRET=<your-client-secret>
  3. Create the Dropbox connection

    In AgentKit > Connections, create a Dropbox connection. The name you give it is the connection_name your code passes. See Configure connections.

    Scalekit credentials are available for Dropbox, so you don't need to register an OAuth app. To show your own app on the consent screen, use your own credentials instead.

    Use your own OAuth app

    Register your Scalekit environment with the Dropbox connector so Scalekit handles the authentication flow and token lifecycle for you. The connection name you create will be used to identify and invoke the connection programmatically. You’ll need your app credentials from the Dropbox App Console.

    1. Set up auth redirects

      • In Scalekit dashboard, go to AgentKit > Connections > Create Connection.

      • Find Dropbox from the list of providers and click Create.

      • Click Use your own credentials and copy the redirect URI. It looks like https://<SCALEKIT_ENVIRONMENT_URL>/sso/v1/oauth/<CONNECTION_ID>/callback.

        Copy redirect URI from Scalekit dashboard

      • In the Dropbox App Console, open your app and go to the Settings tab.

      • Under Redirect URIs, paste the copied URI and click Add.

        Add redirect URI in Dropbox App Console

    2. Get client credentials

      • In the Dropbox App Console, open your app and go to the Settings tab:
        • Client ID — listed under App key
        • Client Secret — listed under App secret
    3. Add credentials in Scalekit

      • In Scalekit dashboard, go to AgentKit > Connections and open the connection you created.

      • Enter your credentials:

        • Client ID (App key from your Dropbox app)
        • Client Secret (App secret from your Dropbox app)
        • Permissions — select the scopes your app needs

        Add credentials in Scalekit dashboard

      • Click Save.

  4. Authorize a user and make your first call

    quickstart.mts
    import { ScalekitClient } from '@scalekit-sdk/node'
    import 'dotenv/config'
    import { createInterface } from 'node:readline/promises'
    const scalekit = new ScalekitClient(
    process.env.SCALEKIT_ENVIRONMENT_URL,
    process.env.SCALEKIT_CLIENT_ID,
    process.env.SCALEKIT_CLIENT_SECRET,
    )
    const actions = scalekit.actions
    const connector = 'dropbox'
    const identifier = 'user_123'
    // Generate an authorization link for the user
    const { link } = await actions.getAuthorizationLink({ connectionName: connector, identifier })
    console.log('Authorize Dropbox:', link)
    const rl = createInterface({ input: process.stdin, output: process.stdout })
    await rl.question('Press Enter after authorizing...')
    rl.close()
    // Make your first call
    const result = await actions.executeTool({
    connector,
    identifier,
    toolName: 'dropbox_file_requests_list',
    toolInput: {},
    })
    console.log(result)
    Terminal window
    npx tsx quickstart.mts

    Each user signs in once. See Authorize a user for the full flow and statuses.

Tools

Pass the exact name to execute_tool
Try in PlaygroundRequest a tool
  • dropbox_file_requests_getRetrieve details for a single Dropbox file request by its ID, including title, destination folder, deadline, and open/closed state.Read-only

    Get File Request

    Retrieve details for a single Dropbox file request by its ID, including title, destination folder, deadline, and open/closed state.

    Inputs

    idstringrequired
    The ID of the file request to retrieve.
  • dropbox_file_requests_listList all file requests created by the current Dropbox user.Read-only

    List File Requests

    List all file requests created by the current Dropbox user.

    Inputs

    limitinteger
    Maximum number of file requests to return.
  • dropbox_files_copy_batch_checkPoll the status of an asynchronous copy_batch_v2 job.Read-only

    Check Copy Batch Job Status

    Poll the status of an asynchronous copy_batch_v2 job. When dropbox_files_copy_batch returns an in-progress async_job_id instead of completing immediately, use this to check whether the copy has finished.

    Inputs

    async_job_idstringrequired
    The async job ID returned by a previous copy_batch_v2 call that reported an in-progress status.
  • dropbox_files_delete_batch_checkPoll the status of an asynchronous delete_batch job.Read-only

    Check Delete Batch Job Status

    Poll the status of an asynchronous delete_batch job. When dropbox_files_delete_batch returns an in-progress async_job_id instead of completing immediately, use this to check whether the deletion has finished.

    Inputs

    async_job_idstringrequired
    The async job ID returned by a previous delete_batch call that reported an in-progress status.
  • dropbox_files_downloadDownload the raw contents of a file from Dropbox by path or file ID.Read-only

    Download File

    Download the raw contents of a file from Dropbox by path or file ID. Returns the file bytes directly (not wrapped in JSON) via Dropbox's content API host.

    Inputs

    pathstringrequired
    The path or ID of the file to download.
  • dropbox_files_get_metadataGet metadata for a file or folder at the specified Dropbox path.Read-only

    Get File/Folder Metadata

    Get metadata for a file or folder at the specified Dropbox path. Returns name, path, size, modification date, and other properties.

    Inputs

    pathstringrequired
    The path to the file or folder to get metadata for.
    include_deletedboolean
    If true, deleted files and folders will be included in the results.default false
    include_has_explicit_shared_membersboolean
    If true, the result will include a flag indicating whether the file has explicit shared members.default false
    include_media_infoboolean
    If true, the result will include media info (e.g., dimensions, duration) for photo and video files.default false

Workflows

Proxy API call
const result = await actions.request({
connectionName: 'dropbox',
identifier: 'user_123',
path: '/2/users/get_current_account',
method: 'POST',
});
console.log(result);
Execute a tool
const result = await actions.executeTool({
connector: 'dropbox',
identifier: 'user_123',
toolName: 'dropbox_files_list_folder',
toolInput: { path: '' },
});
console.log(result);