Skip to content
Scalekit Docs
Talk to an Engineer Dashboard

Dropbox connector

OAuth 2.0Files & Documents

Connect to Dropbox. Manage files, folders, sharing, and cloud storage workflows

Dropbox connector

  1. Terminal window
    npm install @scalekit-sdk/node

    Full SDK reference: Node.js | Python

  2. 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. Register your Dropbox credentials with Scalekit so it handles the token lifecycle. You do this once per environment.

    Dashboard setup steps

    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. quickstart.ts
    import { ScalekitClient } from '@scalekit-sdk/node'
    import 'dotenv/config'
    const scalekit = new ScalekitClient(
    process.env.SCALEKIT_ENV_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)
    process.stdout.write('Press Enter after authorizing...')
    await new Promise(r => process.stdin.once('data', r))
    // Make your first call
    const result = await actions.executeTool({
    connector,
    identifier,
    toolName: 'dropbox_file_requests_list',
    toolInput: {},
    })
    console.log(result)

Connect this agent connector to let your agent:

  • Get users, sharing — Get the current storage space usage for the authenticated Dropbox user, including used and allocated space
  • Folder sharing share — Share a Dropbox folder with other users
  • Link sharing revoke shared — Revoke a shared link in Dropbox, making it inaccessible
  • List sharing, files — List shared links for a file or folder in Dropbox
  • Create sharing, files, file requests — Create a shared link for a file or folder in Dropbox with optional visibility and access settings
  • Member sharing add folder — Add one or more members to a Dropbox shared folder
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_list',
toolInput: {},
});
console.log(result);

Use the exact tool names from the Tool list below when you call execute_tool. If you’re not sure which name to use, list the tools available for the current user first.

dropbox_file_requests_create#Create a Dropbox file request that allows others to upload files to a designated Dropbox folder.6 params

Create a Dropbox file request that allows others to upload files to a designated Dropbox folder.

NameTypeRequiredDescription
destinationstringrequiredThe Dropbox folder path where uploaded files will be saved.
titlestringrequiredThe title of the file request, shown to contributors.
deadline_allow_late_uploadsstringoptionalWhether to allow uploads after the deadline has passed.
deadline_deadlinestringoptionalDeadline date for submissions in ISO 8601 format (e.g., '2024-12-31T23:59:59Z').
descriptionstringoptionalA description of the file request, shown to contributors.
openbooleanoptionalWhether the file request is open for submissions. Defaults to true.
dropbox_file_requests_list#List all file requests created by the current Dropbox user.1 param

List all file requests created by the current Dropbox user.

NameTypeRequiredDescription
limitintegeroptionalMaximum number of file requests to return.
dropbox_files_copy#Copy a file or folder from one path to another in Dropbox. The original file is preserved. Optionally auto-rename if a conflict exists at the destination.5 params

Copy a file or folder from one path to another in Dropbox. The original file is preserved. Optionally auto-rename if a conflict exists at the destination.

NameTypeRequiredDescription
from_pathstringrequiredThe path of the file or folder to copy.
to_pathstringrequiredThe destination path for the copy.
allow_ownership_transferbooleanoptionalAllow copies that change the file ownership.
allow_shared_folderbooleanoptionalIf true, copy is allowed even if the destination is inside a shared folder.
autorenamebooleanoptionalIf true, the destination will be automatically renamed if a file/folder already exists there.
dropbox_files_create_folder#Create a new folder at the specified path in Dropbox. Optionally auto-rename if a folder with the same name already exists.2 params

Create a new folder at the specified path in Dropbox. Optionally auto-rename if a folder with the same name already exists.

NameTypeRequiredDescription
pathstringrequiredThe path of the folder to create.
autorenamebooleanoptionalIf true, the folder will be renamed automatically if a folder with the same name already exists.
dropbox_files_delete#Delete a file or folder at the specified path in Dropbox. Deleted items are moved to the Dropbox trash and can be recovered within 30 days (or 180 days for Business accounts).2 params

Delete a file or folder at the specified path in Dropbox. Deleted items are moved to the Dropbox trash and can be recovered within 30 days (or 180 days for Business accounts).

NameTypeRequiredDescription
pathstringrequiredThe path of the file or folder to delete.
parent_revstringoptionalPerform delete only if the file's revision matches this value. Only applies to files, not folders.
dropbox_files_get_metadata#Get metadata for a file or folder at the specified Dropbox path. Returns name, path, size, modification date, and other properties.4 params

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

NameTypeRequiredDescription
pathstringrequiredThe path to the file or folder to get metadata for.
include_deletedbooleanoptionalIf true, deleted files and folders will be included in the results.
include_has_explicit_shared_membersbooleanoptionalIf true, the result will include a flag indicating whether the file has explicit shared members.
include_media_infobooleanoptionalIf true, the result will include media info (e.g., dimensions, duration) for photo and video files.
dropbox_files_list_folder#List the contents of a folder in Dropbox. Returns files and subfolders at the given path. Supports recursive listing, filtering for deleted items, and pagination via cursor.6 params

List the contents of a folder in Dropbox. Returns files and subfolders at the given path. Supports recursive listing, filtering for deleted items, and pagination via cursor.

NameTypeRequiredDescription
pathstringrequiredThe path to the folder to list. Use an empty string or '' to list the root of the Dropbox.
include_deletedbooleanoptionalIf true, deleted files and folders will be included in the results.
include_has_explicit_shared_membersbooleanoptionalIf true, the results will include a flag for each file indicating whether it has explicit shared members.
include_media_infobooleanoptionalIf true, the results will include media info (e.g., dimensions, duration) for photo and video files.
limitintegeroptionalThe maximum number of results to return per page. Default is determined by the server (typically 2000).
recursivebooleanoptionalIf true, the listing will recurse into subfolders.
dropbox_files_list_folder_continue#Continue listing folder contents using a cursor returned from a previous list_folder call. Use this to paginate through large folder listings.1 param

Continue listing folder contents using a cursor returned from a previous list_folder call. Use this to paginate through large folder listings.

NameTypeRequiredDescription
cursorstringrequiredThe cursor returned by a previous list_folder or list_folder/continue call.
dropbox_files_list_revisions#List all revisions of a file at the given path in Dropbox. Returns revision history including IDs, sizes, and modification dates. Useful for viewing version history and recovering older versions.3 params

List all revisions of a file at the given path in Dropbox. Returns revision history including IDs, sizes, and modification dates. Useful for viewing version history and recovering older versions.

NameTypeRequiredDescription
pathstringrequiredThe path of the file to list revisions for.
limitintegeroptionalThe maximum number of revisions to return (1–100). Defaults to 10.
modestringoptionalDetermines how the path is interpreted. 'path' uses the file's current path; 'id' uses the file's unique ID.
dropbox_files_move#Move a file or folder from one path to another in Dropbox. Optionally allow moving into shared folders or auto-rename if a conflict exists at the destination.5 params

Move a file or folder from one path to another in Dropbox. Optionally allow moving into shared folders or auto-rename if a conflict exists at the destination.

NameTypeRequiredDescription
from_pathstringrequiredThe current path of the file or folder to move.
to_pathstringrequiredThe destination path for the file or folder.
allow_ownership_transferbooleanoptionalAllow moves that change the file ownership. Only relevant for moves from one user's Dropbox to another.
allow_shared_folderbooleanoptionalIf true, move is allowed even if the destination is inside a shared folder.
autorenamebooleanoptionalIf true, the destination will be automatically renamed if a file/folder already exists there.
dropbox_files_restore#Restore a file in Dropbox to a specific revision. Requires the file path and revision identifier.2 params

Restore a file in Dropbox to a specific revision. Requires the file path and revision identifier.

NameTypeRequiredDescription
pathstringrequiredThe path to the file to restore, e.g. '/Documents/notes.txt'.
revstringrequiredThe revision identifier to restore the file to. Obtained from file revision history.
dropbox_files_save_url#Save a file from a URL directly to a Dropbox path. The file is downloaded from the URL and saved to the specified Dropbox location.2 params

Save a file from a URL directly to a Dropbox path. The file is downloaded from the URL and saved to the specified Dropbox location.

NameTypeRequiredDescription
pathstringrequiredThe Dropbox path where the file should be saved, e.g. '/Downloads/report.pdf'.
urlstringrequiredThe URL of the file to download and save to Dropbox.
dropbox_sharing_add_folder_member#Add one or more members to a Dropbox shared folder. Each member is specified with an email address and access level.4 params

Add one or more members to a Dropbox shared folder. Each member is specified with an email address and access level.

NameTypeRequiredDescription
membersarrayrequiredArray of members to add. Each member has an email and access level.
shared_folder_idstringrequiredThe ID of the shared folder to add members to.
custom_messagestringoptionalOptional custom message to include in the invitation email.
quietbooleanoptionalIf true, do not send a notification email to added members.
dropbox_sharing_list_folder_members#List all members (users and groups) of a Dropbox shared folder.2 params

List all members (users and groups) of a Dropbox shared folder.

NameTypeRequiredDescription
shared_folder_idstringrequiredThe ID of the shared folder whose members to list.
limitintegeroptionalMaximum number of members to return per page.
dropbox_sharing_share_folder#Share a Dropbox folder with other users. Converts a personal folder into a shared folder with configurable member and link policies.5 params

Share a Dropbox folder with other users. Converts a personal folder into a shared folder with configurable member and link policies.

NameTypeRequiredDescription
pathstringrequiredThe path of the folder to share, e.g. '/Projects/Team'.
acl_update_policystringoptionalWho can manage the access control list (add/remove members). E.g., 'owner' or 'editors'.
force_asyncbooleanoptionalIf true, force the share operation to be asynchronous.
member_policystringoptionalWho can add members to this shared folder. One of: 'team', 'anyone'.
shared_link_policystringoptionalThe policy for shared links created for this folder. E.g., 'anyone', 'members', 'team'.
dropbox_users_get_current_account#Get information about the current Dropbox user's account, including name, email, and account type.0 params

Get information about the current Dropbox user's account, including name, email, and account type.

dropbox_users_get_space_usage#Get the current storage space usage for the authenticated Dropbox user, including used and allocated space.0 params

Get the current storage space usage for the authenticated Dropbox user, including used and allocated space.