# Stitch

![Stitch_Logo.svg](https://assets.relyanceuat.xyz/images/docs/10478774027149/10478719515661.svg)
Stitch is a web-based open source platform for rapidly moving data. It provides an ETL service that connects to all your data sources and replicates that data to a destination of your choosing.

In order to integrate Stitch with Relyance AI you will need an **API Key**.

#### In Stitch:

1. Login to your Stitch account.
2. Click on the user profile menu in the top right-hand corner.
3. Select **Manage Account Settings**.
4. In the **Account Settings** tab scroll down to the **API access keys** section.
5. Click the **Generate Key** button.
6. Provide a meaningful description for the new key (e.g. Relyance AI) and click the **Save and Generate Key** button.
7. This will show your new **API Key**. Copy it to be used in Relyance then click **Close and Continue**.

![Stitch-3.png](https://assets.relyanceuat.xyz/images/docs/10478774027149/10479168058637.png)

![Stitch-4.png](https://assets.relyanceuat.xyz/images/docs/10478774027149/10479156869645.png)

#### In the Relyance AI application:

1. Login to your Relyance account.
2. Navigate to the **Settings** Menu in the bottom left-hand side.
3. Select **Integrations**.
4. Click on the **Vendor Integration** tab.
5. Find the **Stitch** integration card and click it to open its connections.
6. Under **Authentication Method**, choose **Custom**.
8. Paste the **API Key** into its respective field.

![Stitch-1.png](https://assets.relyanceuat.xyz/images/docs/10478774027149/10478812923277.png)

The **Authentication** step asks for:

- **API Key**: API access keys genareted for your account; required; held as a secret.

9. Click **Authenticate**.
10. At this point, you should see the following result on the **Vendor** Integrations page:

![Stitch-2.png](https://assets.relyanceuat.xyz/images/docs/10478774027149/10478834933389.png)

11. Congratulations, you are now connected to **Stitch**.

<!-- 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" "stitchdata" {
  vendor = "stitchdata"
  name   = "<your connection name>"

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

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

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