# Data export

Give a finance or data warehouse tool read-only access to the exported data of your projects.

Data Export delivers your ToolboxFM data as Parquet files in an S3 bucket. Your finance or data
warehouse tool downloads the files with a read-only key. Data Export is a paid
add-on: ToolboxFM approves your organisation and each project to export. To see the files before you
buy, use the [sample data explorer](/reference/sample-data-explorer/).

**Who can do this:** Head Office, at **ToolboxFM › Organisation settings › Data export**.
If no project is approved, the page says **No projects are approved for export. Contact ToolboxFM to
enable Data Export.**

## How it works

- **Deliveries.** ToolboxFM exports each approved project on a fixed schedule. ToolboxFM sets it
  with you: a start time in your time zone, then every 6, 12 or 24 hours. See
  [When files arrive](/reference/data-export-files/#when-files-arrive). Each delivery holds the
  changes since the previous one. A project that was just approved first gets its full history.
- **Connections.** A connection gives one tool read-only access, for example **Finance warehouse**.
  It covers the projects you select, and organisation-wide data if you include it.
- **Keys.** Your tool signs in to the bucket with a key that belongs to one connection. Each
  connection holds at most two keys.

Connections are independent. When you delete a key or revoke the keys of one connection, your other
connections keep working.

## Add a connection

1. Open **ToolboxFM › Organisation settings › Data export** and select **Add a connection**.
2. In **Name**, enter the tool or team that will use it, for example **Finance warehouse**.
3. Under **Projects**, select the projects the tool needs. Only projects approved for Data Export
   are listed.
4. Select **Include organisation-wide data, such as subcontractors and users** if the tool needs
   data that does not belong to one project. Today this is your subcontractor list.
5. Select **Add connection**.

The connection shows **Setting up** while ToolboxFM prepares its access. Refresh the page after a
minute. When it shows **Ready**, create its first key.

## Create a key

1. On a **Ready** connection, select **Create key**.
2. The **Save this key now** dialog shows the **Access key ID**, the **Secret access key**, and the
   **Bucket**, **Prefix** and **Region** your tool needs. Copy them into your tool or a password
   manager.
3. Select **I have saved the key**.

ToolboxFM shows the secret only once and does not keep it. If you lose it, delete the key and create
a new one. The key reads personal data, so treat it like a password. If it is exposed, delete it at
once.

Then set up your tool with [Retrieve Data Export files](/reference/data-export-files/).

## Rotate a key

Use the second key slot only while you change keys:

1. Select **Create a second key to rotate**, then **Create second key**. Save the new key.
2. Update your tool with the new key and check that it downloads files.
3. Delete the old key.

Both keys work until you delete one. You cannot create a third key: delete a key to free its slot.

## Stop access

| Action | Effect |
| --- | --- |
| **Deactivate** | The key stops working until you select **Reactivate**. It still holds its slot. |
| **Delete** | The key stops working at once and frees its slot. You cannot undo this. |
| **Revoke all keys** | Every key of this connection stops working at once. Other connections are not affected. |

Files your tool already downloaded stay with you.

## When an approval ends

When ToolboxFM ends the approval for a project in a connection, or cannot confirm that a
connection reads only your approved data, the connection shows **Blocked** and then **Revoked**. Its
keys stop working, so it can no longer read your data.

A revoked connection does not come back. To keep exporting, add a new connection for the projects
that are still approved.

## Limits

- **5 connections.** Your organisation can have at most 5 connections that are **Setting up** or
  **Ready**. Revoked connections do not count. You cannot remove a connection yourself: contact
  ToolboxFM to free a place.
- **16 projects per connection.** Add another connection for more projects.
- **2 keys per connection**, so that you can rotate without downtime.
- **Read only.** A key can list and download files. It cannot change or delete them, and it cannot
  read another organisation's files.

## Troubleshooting

| You see | Do this |
| --- | --- |
| No **Add a connection** button | No project is approved for Data Export. Contact ToolboxFM. |
| **Setting up** for more than a few minutes | Refresh the page. If it does not change, contact ToolboxFM. |
| **Key creation was not confirmed** | ToolboxFM could not confirm the key, so it cannot show the secret. Select **Clean up**, then create a new key. |
| **Deletion was not confirmed** | Select **Delete** again to free the slot. |
| **Both key slots are in use** | Delete the key you no longer use, then create another. |
| Your tool gets `AccessDenied` | Check that the key is active and that the tool reads only the folders of this connection. See [Retrieve Data Export files](/reference/data-export-files/#what-a-key-can-read). |