# Coda

![Screenshot](https://assets.relyanceuat.xyz/images/docs/38678767531405/38678806558477.png)
**Coda** is a cloud-based all-in-one collaboration platform that combines the power of documents, spreadsheets, databases, automation, and apps into a single flexible workspace.

In order to integrate Coda to Relyance AI, you will need an **API Token.**

**In Coda portal:**

1. After login, click on your profile in the upper right corner and select Account settings
2. Scroll down until you find API Settings and click in **Generate API Token**.
3. Give a name to your access token and then click in Generate API token.
4. After this, the new token created will be listed. Copy the value in Copy token, it will be used on Relyance Integration. Make sure you save this token in some safe place, because you won’t be able to copy it again.

![Screenshot](https://assets.relyanceuat.xyz/images/docs/38678767531405/38678767513997.png)

![Screenshot](https://assets.relyanceuat.xyz/images/docs/38678767531405/38678767517325.png)

![Screenshot](https://assets.relyanceuat.xyz/images/docs/38678767531405/38678806562957.png)

![Screenshot](https://assets.relyanceuat.xyz/images/docs/38678767531405/38678806563597.png)

**In the Relyance application:**

1. Login to your Relyance account
2. Navigate to **Settings** menu in the bottom-left side
3. Select Integrations
4. Click on the **Vendors and Data stores** filter.
5. Find the **Coda** integration card and click it to open its connections.
6. On the **Authentication** step, pick the method under **Authentication Method**.

    The **Authentication** step asks for:

    - **API Token**: required; held as a secret.
7. Choose Custom from drop-down menu.
8. If this connection will be used for Data Subject Requests, click the **Process DSRs** checkbox
9. Click on the **Enable Data Inspection** if you wish to also scan the underlying data.
10. Paste the **Personal Account Token** from the Asana page into the respective field.
11. Click **Authenticate**.
12. Congratulations, you are now connected to **Coda**.

![Screenshot](https://assets.relyanceuat.xyz/images/docs/38678767531405/38678806564365.png)

<!-- terraform-examples:begin (generated from the integration catalog; do not hand-edit) -->

## Manage this integration with Terraform

Connections for this integration can be managed as code with the [Relyance Terraform provider](https://registry.terraform.io/providers/Relyance/relyance/latest). Non-secret fields go in `auth.params`; secret fields go in `auth.secrets_wo`, which is write-only — never stored in Terraform state. Rotate secrets by bumping `auth.secrets_wo_version`.

```hcl
resource "relyance_integration_connection" "coda" {
  vendor = "coda"
  name   = "<your connection name>"

  auth = {
    method = "api-token"
    params = {
      data_storage_location = "us"
    }
    # Secret fields are write-only: sent to Relyance, never stored in state.
    secrets_wo = {
      API_TOKEN = var.coda_api_token
    }
    secrets_wo_version = 1
  }

  scans = { "data-inspection" = { enabled = true } }
}
```

<!-- terraform-examples:end -->
