# Dropbox

This data destination connector sends tables as CSV or other files into a single [Dropbox](https://www.dropbox.com/) account.



**Before you start**

You need:

- **A Dropbox account** you can authorize (/components/authorization/).
- **The Storage tables (/storage/tables/) or files (/storage/files/) to send.** For files, know their tag.

What each tab needs:

- **Prompt tab:** Kai, the **Kai Agent** button in the top bar, on supported stacks. A new Free Plan project has it from the start; elsewhere an organization admin turns it on once: Get started with Kai (/kai/getting-started/).
- **UI tab:** a browser.
- **CLI / API tab:** kbagent (/cli/getting-started/), connected to your project. The checks only read.


## Configuration
[Create a new configuration](https://help.keboola.com/components/configurations/#create-a-configuration) of the **Dropbox** data destination connector.
Then click **Authorize Account** to [authorize the configuration](https://help.keboola.com/components/authorization/). 

You may specify Storage [tables](https://help.keboola.com/storage/tables/) or [files](https://help.keboola.com/storage/files/) to be written to the target Dropbox account. 

- To specify tables, click the **Add Table Input** button, and select the table you want to send to Dropbox. 
*Filename* is the name of the destination file, the directory `/data/in/tables/` is ignored.
- To specify files, click **New File Input** and specify a file tag or [Elastic Query string](https://www.elastic.co/guide/en/elasticsearch/reference/6.6/query-dsl-query-string-query.html#query-string-syntax).

![Screenshot - Specify input](https://help.keboola.com/components/writers/storage/dropbox/dropbox-1.png)

The written files will be available in the **Apps/Keboola Connection Writer V2** folder in Dropbox. You can optionally specify 
an additional subfolder in this folder in the `Destination folder` setting. In the above screenshot, the files would be saved 
in the folder `Apps/Keboola Connection Writer V2/samples/monthly`. The configuration can write as many tables and files as you wish.

Don't forget to **Save** the configuration, then click **Run Component**.

**Check:**

### Prompt

```text title="Prompt" wrap
Did the last job of the Dropbox data destination configuration my-dropbox-config end with success? Give its end time.
```

Kai only reads here, so it asks for no approval, and its answer links to what it found in your project.

### UI

The job ends with **Success**, and the files appear in Dropbox in **Apps/Keboola Connection Writer V2**, or in the destination folder you set inside it.

### CLI / API

```bash
kbagent job list --component-id keboola.wr-dropbox-v2 --limit 1
```

If you have several configurations, add `--config-id` with yours; the job's `status` shows `success`, and then check the destination as in the UI tab.

---
