How to Create a Dropbox Application
Last updated
Last updated
Before starting, you'll need a Dropbox account.
Go to the Dropbox App Console, and click Create app.
Choose the appropriate API (e.g., "Scoped Access") and the type of access your app needs ("Full Dropbox" or "App Folder"), name your app, then click Create app.
After creating the app, you'll be taken to the app's settings page where you'll find your App Key and App Secret. Securely save and store both. You'll need these to generate your app's refresh token, and to create your connector in Vectorize.
Enter a Redirect URI, then click Add. This is the URL in your application where Dropbox will redirect after the user authorizes the app.
Go to the Permissions tab, and grant your app both files.metadata.read
and files.content.read
permissions. This will allow it to view information about/content in your files and folders. Click Submit to save your changes.
Enter the Dropbox authorization URL in your browser, replacing APP_KEY
with your application's key, and REDIRECT_URI
with the redirect URI you set up in your app.
You'll be prompted to authorize your application. Once you do so, Dropbox will redirect you to your redirect_uri
with an authorization code
in the query parameters. You'll use this authorization code in the next step.
Make a POST request to Dropbox's token endpoint to exchange the authorization code for an access token and refresh token.
Example using curl:
Where:
code: The authorization code you received in the previous step.
client_id: Your app key.
client_secret: Your app secret.
redirect_uri: Must match the one used to get the authorization code.
Retrieve and securely save the refresh token from the response. Example Response:
You now have everything you need to configure a Dropbox connector.