This page was recently updated. What do you think about it? Let us know!.

Batch process all your records to store structured outputs in a Dropbox account.

The requirements are as follows.

  1. A Dropbox account.

  2. A Dropbox app for your Dropbox account. To create a Dropbox app, do the following:

    a) Sign in to the Dropbox Developers portal with the same credentials as your Dropbox account.
    b) Open your App Console.
    c) Click Create app.
    d) For Choose an API, select Scoped access.
    e) For Choose the type of access you need, select App folder.
    f) Enter a name for your app, and then click Create app.
    g) On the app’s Permissions tab, under Files and folders, check the boxes labelled files.content.read or files.content.write or both, depending on whether you want to read files, write files, or both. Then click Submit.
    h) On the app’s Settings tab, note the value of the App folder name field. This is the name of the app folder that Dropbox will create under the Apps top-level folder in your Dropbox account that the Dropbox app will use for access. If you change the value of App folder name field here, Dropbox will create an app folder with that name under the Apps top-level folder instead.
    i) Under OAuth 2, next to Generated access token, click Generate. Copy the value of this access token. You should only click Generate after you have completed all of the preceding steps first. This is because the access token is scoped to the specific app folder and settings at the time the access token is generated. If you change the app folder name or any of the permissions later, you should regenerate the access token.

  3. The app folder that your Dropbox app will use for access can be found in your Dropbox account under the Apps top-level folder. For example, if the value of the App folder name field above is my-folder, then the app folder that your Dropbox app will use for access can be found under https://dropbox.com/home/Apps/my-folder

    Your Dropbox app will not have access to upload or download files from the root of the app folder. Instead, you must create a subfolder inside of the app folder for your Dropbox app to upload or download files from. You will use the name of that subfolder when specifying your remote URL in the next step. For example, if your Dropbox app uses an app folder named my-folder for access within the Apps top-level folder, and you create a subfolder named data within the my-folder app folder, then the subfolder that your Dropbox app will upload and download files from can be found under https://dropbox.com/home/Apps/my-folder/data

  4. Note the remote URL to your subfolder inside of the app folder, which takes the format dropbox://<subfolder-name>. For example, if your Dropbox app uses an app folder named my-folder for access within the Apps top-level folder, and you create a subfolder named data within the my-folder app folder, then the remote URL is dropbox://data

The Dropbox connector dependencies:

CLI, Python
pip install "unstructured-ingest[dropbox]"

You might also need to install additional dependencies, depending on your needs. Learn more.

The following environment variables:

  • DROPBOX_REMOTE_URL - The remote URL to the target subfolder inside of the app folder for the Dropbox app, represented by --remote-url (CLI) or remote_url (Python).
  • DROPBOX_ACCESS_TOKEN - The value of the access token for the Dropbox app that is associated with the target app folder, represented by --token (CLI) or token (Python).

These environment variables:

  • UNSTRUCTURED_API_KEY - Your Unstructured API key value.
  • UNSTRUCTURED_API_URL - Your Unstructured API URL.

Now call the Unstructured Ingest CLI or the Unstructured Ingest Python library. The source connector can be any of the ones supported. This example uses the local source connector: