Dropbox
Connect & Ingest data from Dropbox
Dropbox is a cloud storage and file hosting service. The Sling Dropbox connector extracts data from the Dropbox API v2, supporting files and folders listing, shared links, shared folders, received files, file requests, and account information.
Setup
The following credentials and inputs are accepted:
Secrets:
client_id(required) -> Your Dropbox app keyclient_secret(required) -> Your Dropbox app secretrefresh_token(required) -> A long-lived OAuth2 refresh token
Getting Your Credentials
Go to the Dropbox App Console
Click Create app
Choose Scoped access and Full Dropbox access type
Name your app and click Create app
Under the Permissions tab, enable these scopes:
account_info.readfiles.metadata.readsharing.readfile_requests.read
Click Submit to save permissions
Under the Settings tab, note the App key (
client_id) and App secret (client_secret)Generate a refresh token using the OAuth2 authorization flow:
The response will contain a refresh_token — save this value for your connection configuration.
Using sling conns
Environment Variable
See here to learn more about the .env.sling file.
Sling Env File YAML
See here to learn more about the sling env.yaml file.
Replication
Here's an example replication configuration to sync Dropbox data to a PostgreSQL database:
Sync all endpoints:
Endpoints
Account
current_account
Current user account information
No
Files & Folders
files
All files and folders (recursive)
No
Sharing
shared_links
All shared links
No
shared_folders
Shared folders the user has access to
No
received_files
Files shared with the current user
No
File Requests
file_requests
File requests created by the user
No
To discover available endpoints:
Rate Limiting
The Dropbox API enforces rate limits on a per-app and per-user basis. The connector automatically:
Limits to 5 requests/second (conservative)
Retries with exponential backoff on 429 (rate limit) responses
Retries on 5xx server errors with exponential backoff
Notes
All Dropbox API v2 endpoints use POST requests internally, even for read operations. The connector handles this automatically.
The
filesendpoint lists all files and folders recursively from the root of the Dropbox account, including mounted folders.The
shared_foldersandreceived_filesendpoints may return empty results if the account has no shared content.
If you are facing issues connecting, please reach out to us at support@slingdata.io, on discord or open a Github Issue here.
Last updated
Was this helpful?