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

# Connect the Workspace and the Engine

> What happens when a workspace is connected to a tenancy of the Credit Engine: what the Workspace sends, what the Engine checks, and what stays on each side.

The **Workspace** is where people write a product's terms. The **Credit Engine** is where loans are issued under them. Connecting the two means a product written in the Workspace is **registered in the Engine with the same terms**.

A workspace is connected to one tenancy of the Engine, or to none.

> [card] Not connected
>
> Products are kept in the Workspace only. The agent reads them, and nothing is sent anywhere.

> [card] Connected
>
> Products are also registered in the Engine. Review shows the Engine's refusals, and each new version is added there.

> [!NOTE]
>
> Connecting is not a setting in the Workspace today. To connect a workspace to a tenancy, contact Capcells.

## What the Workspace sends

When you press **Create product**, the Workspace registers the product in the Engine as a product of the same [type](https://docs.capcells.com/products/types.md). Each new version adds a version there.

* **Every term you set** goes as its field in the API. [Terms reference](https://docs.capcells.com/products/terms-reference.md) lists them.
* **A term you left empty** is left out.
* **None, for a fee** is left out too: in the Engine a fee left out is no fee.
* **None, for the penalty rate** goes as a penalty range of zero.

The Engine answers an **identifier** and a **version number**. The Workspace keeps both beside the product.

## What the Engine checks

Before anything is written, **Review** and **Save new version** ask the Engine to preview the terms.

* **A refusal** shows as the Engine's own sentence under the field it concerns, for example a penalty rate above the market's cap.
* **An advisory** shows as a line under the group. The terms are accepted.

A refusal does not stop you. The product is kept in the Workspace and reads as **not registered**, with **Retry**, until the terms are corrected.

## What stays in the Workspace

Some things are the Workspace's own and are never sent.

| Stays in the Workspace | Why |
| - | - |
| Name and description | The Engine holds no name for a product |
| Status | Planned, Live and Stopped are the Workspace's. The Engine has no status. A version is on sale when a lookup key points at it |
| Documents | They are your files |
| Credit line | The Engine holds one flag. Only Required is sent. Not used and Optional stay here |
| A set payment day | On a Monthly product the Engine keeps the issue day, and the product says so under Payment day |

## What stays in the Engine

**The Workspace never issues a loan, never puts a product on sale and never points a lookup key.** Those are done through the API.

* **Put a version on sale:** [Products in the Engine](https://docs.capcells.com/lending/products.md#selling-under-a-lookup-key).
* **Set the terms the Workspace does not show:** [Terms reference](https://docs.capcells.com/products/terms-reference.md).
* **Register clients, issue loans, report payments:** [Loans](https://docs.capcells.com/lending/loans.md) and [Payments](https://docs.capcells.com/lending/payments.md).

## FAQ

> [accordion] Can I use the Workspace without the Engine?
>
> Yes. A workspace that is not connected calls nothing. Products are its own records, and the agent reads them.

> [accordion] Can I use the Engine without the Workspace?
>
> Yes. Every product, client and loan can be created through the API alone. Start with the [quickstart](https://docs.capcells.com/getting-started/quickstart.md).

> [accordion] Does setting a product to Live issue loans?
>
> No. Live is the Workspace's status and starts the product's versions. Loans are issued by your own code through the API.


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