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

# How connections work

> Learn how End Close integrations create data streams, why each connection belongs to one environment, and who can connect a system.

A connection gives End Close access to one of your systems, such as a bank, a payment processor or a data warehouse, so that system's transactions arrive as records in [data streams](https://endclose.com/docs/concepts/data-streams.md). Reconciliations then match records across streams.

## Connections create data streams

A connection and a data stream are separate things. The connection holds the access: an OAuth grant, an API key, or credentials kept by a sync provider. The stream is where records land, and it's what you reconcile.

Some connections create their streams for you:

| Integration | Streams created |
| - | - |
| [Plaid](https://endclose.com/docs/integrations/plaid.md) | One bank feed stream per bank account, as soon as the account is linked. Accounts opened later get theirs on the next sync. |
| [Airwallex](https://endclose.com/docs/integrations/airwallex.md) | One stream, `airwallex`, the first time End Close reads the account. |

For a data warehouse, you create each stream yourself after connecting, and choose the table it reads from. When a connection feeds streams, its dialog under **Settings → Integrations** lists them under **Streams in Data**, and offers **New *name* stream** to add another.

File storage connections ([Box](https://endclose.com/docs/integrations/box.md), [SharePoint](https://endclose.com/docs/integrations/sharepoint.md), [OneDrive](https://endclose.com/docs/integrations/onedrive.md)) don't create data streams. The folders you add appear in **Files**, where agents can read them.

## Each connection belongs to one environment

Connections are scoped to the environment you're in when you connect. Each environment needs its own connections, and records synced into one environment don't appear in another. Repeat the setup in every environment that needs the integration.

## Who can connect

Only admins can open **Settings → Integrations** and connect, update or disconnect a system. Creating a data stream in **Data** is also admin-only. Other members see the records once they arrive.

## Sync or push

Records reach End Close in one of two ways.

* **Sync.** End Close, or a sync provider such as Fivetran, reads from your system on its own. Plaid bank feeds are read every 15 minutes and Airwallex every hour. Each integration page states how its data arrives.
* **Push.** Your own code sends records to a data stream through the [API](https://endclose.com/docs/api-reference/overview.md), or someone uploads a CSV file. Use this for systems End Close doesn't connect to, or when you already have the data in hand.

Both kinds of stream reconcile the same way. A record's `external_id` lets you look it up, but it doesn't stop duplicates: sending the same record to `POST /records` twice creates two records. To retry safely, send an `Idempotency-Key` header or your own record `id`. See [Idempotency](https://endclose.com/docs/api-reference/idempotency.md).

## Connection status

The tiles under **Settings → Integrations** show a green dot when a connection is healthy and a red dot when it needs you, such as a bank that asks you to sign in again. Open the tile to see what's wrong and how to fix it.

## FAQ

> [accordion] Can I connect the same account in two environments?
>
> Each environment needs its own connection. For Plaid, a bank account can only be linked to one End Close environment at a time; linking it in a second environment fails on its first sync.

> [accordion] What if my system isn't listed?
>
> Push its records through the [API](https://endclose.com/docs/api-reference/overview.md), upload a CSV, or choose **Request an integration** under **Settings → Integrations**.

> [accordion] Can I connect two accounts of the same system?
>
> Most integrations hold one connection per environment, such as one Stripe account or one Airwallex account. Plaid is the exception: every bank account on the bank login you link gets its own stream.

## Related

> [card] [Data streams](https://endclose.com/docs/concepts/data-streams.md)
>
> How streams hold records and feed reconciliations.

> [card] [All integrations](https://endclose.com/docs/integrations.md)
>
> Every system End Close connects to.


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