How to Create a Dropbox Application
Before you begin
Before starting, you'll need a Dropbox account.
Create a Dropbox application
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
andfiles.content.read
permissions. This will allow it to view information about/content in your files and folders. Click Submit to save your changes.
Get the App's Authorization Token
Enter the Dropbox authorization URL in your browser, replacing
APP_KEY
with your application's key, andREDIRECT_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 authorizationcode
in the query parameters. You'll use this authorization code in the next step.
Exchange the Authorization Code for an Access and Refresh Token
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:
Next Step: Configure your Dropbox Connector
You now have everything you need to configure a Dropbox connector.
Last updated