BAPBA Protocol
GuidesHost Guides

Dropbox App Setup

Step-by-step guide to creating Dropbox app credentials for BAP storage.

Dropbox App Setup

This guide walks through creating Dropbox app credentials to connect Dropbox as a storage backend for BAP.

Prerequisites

  • A Dropbox account
  • Access to Dropbox Developer Console

Step 1: Create a Dropbox App

  1. Go to the Dropbox App Console
  2. Click "Create app"
  3. Select the following options:
SettingValue
Choose way to access your filesScoped access
Choose type of accessApp folder (recommended) or Full Dropbox
  1. Click "Create"

Step 2: Configure App Settings

  1. On the app page, go to the Settings tab
  2. Under "OAuth 2", find "Redirect URIs"
  3. Add your redirect URI:
EnvironmentRedirect URI
Developmenthttp://localhost:8080/api/storages/oauth/callback
Productionhttps://yourdomain.com/api/storages/oauth/callback
  1. Click "Add"

Step 3: Get App Credentials

  1. Scroll to the "OAuth 2" section
  2. Find your App key (shown near the top)
  3. Click "Show" under App secret to reveal your secret
  4. Copy and save both values — you'll need them for BAP

Step 4: Configure Permissions

  1. Go to the Permissions tab
  2. Enable the following permissions:
PermissionDescription
files.content.writeUpload files to Dropbox
files.content.readDownload files from Dropbox
files.metadata.readRead file metadata
  1. Click "Submit" to save permissions
  2. If prompted, confirm the permissions

Step 5: Generate Access Token (Alternative)

For testing, you can also generate a temporary access token:

  1. In the Settings tab, scroll to "OAuth 2"
  2. Click "Generate access token"
  3. Copy the token (note: this expires, use OAuth for production)

Important URLs

These are the values you'll need for BAP:

ValueWhere to Find
App KeySettings → OAuth 2 → App key
App SecretSettings → OAuth 2 → App secret (click "Show")
Redirect URISettings → OAuth 2 → Redirect URIs

Troubleshooting

"Invalid app key" error

  • Verify you're using the App key, not the App secret
  • Check that the app is created and saved

"Invalid redirect URI" error

  • The redirect URI in BAP must match exactly what's in Dropbox
  • Must include https:// for production
  • Check for typos or extra characters

"App folder not found" error

  • For "App folder" type apps, the folder is created automatically on first OAuth
  • Make sure you've completed the OAuth flow at least once

Permissions denied

  • Verify all required permissions are enabled on the Permissions tab
  • Click "Submit" after changing permissions

Security Notes

  • Keep your App Secret secret — don't commit it to version control
  • Use OAuth 2 flow — access tokens expire; OAuth tokens refresh automatically
  • Limit permissions — only request what you need

Full Dropbox vs App Folder

TypeAccessUse Case
App folderOnly /Apps/YourAppName/Recommended — more secure
Full DropboxEntire DropboxAccess to all files (less secure)

For BAP, App folder is recommended — it limits access to just the BAP folder.

Next Steps

  • Return to Connecting Storage to complete the setup
  • Add your App Key and App Secret in the BAP dashboard

On this page