> ## Documentation Index
> Fetch the complete documentation index at: https://docs.hyperline.co/llms.txt
> Use this file to discover all available pages before exploring further.

# Plain

> Connect Plain with Hyperline to attach support threads, labels, statuses, and messages to customers and surface support pressure to the agent.

[Plain](https://www.plain.com) is a B2B support platform that centralizes customer conversations from email, chat, and shared Slack channels into threads.

Connecting Plain lets Hyperline attach support threads to the matching Hyperline customers. The customer monitoring agent can then weigh open threads and support pressure alongside contract, invoice, payment, and usage data.

> [!NOTE]
>
> Plain is part of [Customer intelligence](https://docs.hyperline.co/docs/customer-intelligence/overview.md), a paid add-on. The Plain card only appears in **Settings > Integrations** when Customer intelligence is enabled for your account. Contact the Hyperline team through the in-app chat to enable it.

## Prerequisites

* A valid [Plain account](https://www.plain.com).
* A Plain API key, created by a Plain administrator from your Plain settings, with the permissions listed in [Required permissions](#required-permissions).
* A Hyperline role allowed to manage integrations, such as Admin.

## Connect Plain

**1. In Plain, create an API key**

Grant it the permissions listed in [Required permissions](#required-permissions).

**2. In Hyperline, navigate to the Settings > Integrations page**

**3. Search for Plain and click Connect**

**4. Paste your Plain API key and confirm**

Hyperline validates the key immediately and rejects it if it is invalid, revoked, or missing the `customer:read` permission.

**5. That's it!**

The integration appears as connected and Hyperline starts matching your Plain companies to Hyperline customers.

Hyperline only reads companies, threads, and messages, and never creates, replies to, or modifies anything in Plain. The single exception is the webhook described below, which Hyperline registers for you.

### Required permissions

| Permission | Why Hyperline needs it |
| - | - |
| `company:read` | List your Plain companies to match them to Hyperline customers |
| `thread:read` | Read threads, their status, and priority |
| `customer:read` | Read the name and email of the person who opened a thread |
| `timeline:read` | Read the messages of a thread |
| `label:read` | Read the labels attached to a thread |
| `labelType:read` | Read label names |
| `user:read` | Read the name and email of the teammate who wrote a message |
| `webhookTarget:read` | Check whether the Hyperline webhook is already registered |
| `webhookTarget:create` | Register the Hyperline webhook for real-time updates |
| `webhookTarget:delete` | Replace an outdated Hyperline webhook |

The three `webhookTarget` permissions are optional. Without them, the connection still works: Hyperline reports on the integration page that the webhook could not be registered, and Plain data refreshes with the daily synchronization only.

Hyperline does not read tiers, service level agreements, customer groups, or tenants, so no permission is needed for them.

## What Hyperline fetches

For every matched thread, Hyperline stores:

| Data | Details |
| - | - |
| Thread | Plain thread identifier, title, and a short preview |
| Status | Normalized to `open` (`Todo` in Plain), `closed` (`Done`), or `snoozed` |
| Priority | The thread priority set in Plain |
| Labels | The thread labels |
| Requester | Name and email of the customer who opened the thread |
| Dates | Creation date and the date of the last status change |
| Messages | Email, chat, note, and Slack messages, with their body, author name and email, and date |

> [!WARNING]
>
> Internal notes are synced alongside customer-facing messages and stored as notes. The monitoring agent can therefore use anything written on a thread in Plain as context.

### Which threads are matched

Hyperline first resolves the Plain **company** that corresponds to a Hyperline customer, by comparing the customer **Domain** against the company domain in Plain. Once a company is matched, the link is stored and later syncs query threads directly by company.

> [!TIP]
>
> Keep customer **Domain** values up to date, and make sure your Plain companies carry the same domain. The domain is the only signal used to find the matching Plain company the first time.

## Synchronization

Hyperline synchronizes Plain in two ways:

* **Daily synchronization**: once a day, for all your customers.
* **Webhook updates**: threads are refreshed as they change, without waiting for the daily run.

### Webhook

When you connect Plain, Hyperline registers a webhook target in your Plain workspace, with a description starting with **Hyperline**. It covers new threads, status changes, label changes, and new email or chat messages.

Disconnecting the integration does not remove the webhook target. Delete it in Plain if you no longer want Plain to notify Hyperline. Deleting it while the integration stays connected only stops the real-time refresh: the daily synchronization keeps running.

## Where Plain data appears

* **Customer page**: the **Integrations** section shows a Plain row with the most recent thread. Open it to browse synced threads with their statuses, labels, and messages.
* **Monitoring agent**: enable Plain from the agent's **Connectors** tab. See [Customer monitoring agent](https://docs.hyperline.co/docs/customer-intelligence/customer-monitoring-agent.md).
* **Analysis results**: Plain appears among the data sources of an analysis when support context was used.

## Manage the integration

Open **Settings > Integrations** and select **Plain**. Synchronization errors are reported on this page.

Use **Disconnect** to stop synchronizing new threads. Delete the API key in Plain as well if you want to invalidate it entirely.

## Related

* [Customer intelligence](https://docs.hyperline.co/docs/customer-intelligence/overview.md)
* [Customer monitoring agent](https://docs.hyperline.co/docs/customer-intelligence/customer-monitoring-agent.md)
* [Integrations overview](https://docs.hyperline.co/integrations/overview.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.