Mode
Mode is a cloud-based collaborative analytics platform that helps business teams efficiently analyze data and share their findings. It combines SQL, Python, R and visual analysis to answer questions faster.
In order to integrate Mode with Relyance AI you will need a Token and Password.
In Mode:
- Login to your Mode account.
- Go to the access token page here: https://app.mode.com/settings/access_tokens
- In the Create New Access Token section provide a meaningful name and click the Create token button.
- Copy the generated Token and Password to be used in Relyance.


In the Relyance AI application:
- Login to your Relyance account.
- Navigate to the Settings Menu in the bottom left-hand side.
- Select Integrations.
- Click on the Vendor Integration tab.
- Find the Mode integration card and click it to open its connections.
- Under Authentication Method, choose Custom.
- Paste the Token Password into their respective fields.

The Authentication step asks for:
- Using Custom —
- Token: required; held as a secret.
- Password: required; held as a secret.
- Using Workspace API Token —
- Token: required; held as a secret.
- Secret: required; held as a secret.
- Click Authenticate.
- At this point, you should see the following result on the Vendor Integrations page:

- Congratulations, you are now connected to Mode.
Manage this integration with Terraform
Connections for this integration can be managed as code with the Relyance Terraform provider. 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.
Access token
resource "relyance_integration_connection" "mode_0" {
vendor = "mode"
name = "<your connection name>"
auth = {
method = "access-token"
params = {
data_storage_location = "us"
}
# Secret fields are write-only: sent to Relyance, never stored in state.
secrets_wo = {
token = var.mode_token
pwd = var.mode_pwd
}
secrets_wo_version = 1
}
scans = { "data-inspection" = { enabled = true } }
}Access token — Workspace API Token
resource "relyance_integration_connection" "mode_1" {
vendor = "mode"
name = "<your connection name>"
auth = {
method = "access-token-workspace-api"
params = {
data_storage_location = "us"
}
# Secret fields are write-only: sent to Relyance, never stored in state.
secrets_wo = {
token = var.mode_token
secret = var.mode_secret
}
secrets_wo_version = 1
}
scans = { "data-inspection" = { enabled = true } }
}