# Sendbird

![Sendbird_logo.svg](https://assets.relyanceuat.xyz/images/docs/13085813012109/13084631491213.svg)
SendBird is an online Messaging-as-a-Service (MaaS) customizable Chat API and Messaging SDK that enables businesses to offer in-app messaging for their mobile, web, and consumer applications. It provides a chat API, voice API, video API, native chat SDKs, feature-rich platform, and ready-made UI components that helps developers become more productive.

In order to integrate Sendbird with Relyance AI you will need an Application ID and API Token

.

#### In Sendbird:

1. Login to your Sendbird account.
2. On the left-hand side header, click the **Select application** dropdown.
3. Click **Create application**.
4. In the **Create application** dialog, provide a meaningful name (e.g. Relyance Scan) and choose a region.
5. Click the **Confirm** button.
6. This should bring you to the new application's **Overview** page, if not, choose your new application from the **Select application** dropdown.
7. On the **Overview** page, click the **Go to Settings** link in the application section.
8. Copy the **Application ID** in the general section to be used in Relyance.
9. Scroll down to **API tokens** and create a new **Secondary API token** by clicking on **Generate +**.
10. Enter your password if need be.
11. Copy the newly generated **API Token** to be used in Relyance.

![Sendbird-3.png](https://assets.relyanceuat.xyz/images/docs/13085813012109/13085172011149.png)

![Sendbird-4.png](https://assets.relyanceuat.xyz/images/docs/13085813012109/13085481559309.png)

![Sendbird-5.png](https://assets.relyanceuat.xyz/images/docs/13085813012109/13085756457613.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 **Sendbird** integration card and click it to open its connections.
6. Under **Authentication Method**, choose **Custom**.
8. Paste the **Application ID** and **API Token** into their respective fields.

![Sendbird-1.png](https://assets.relyanceuat.xyz/images/docs/13085813012109/13084646361613.png)

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

![Sendbird-2.png](https://assets.relyanceuat.xyz/images/docs/13085813012109/13084688437133.png)

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

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

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

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

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