> For the complete documentation index, see [llms.txt](https://docs.heisenware.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.heisenware.com/app-manager/app-manager/workspaces.md).

# Workspaces

A workspace is an isolated area inside your [account](https://docs.heisenware.com/app-manager/app-manager/account.md) with its own Apps, databases, files, agents and integrations. Nothing in one workspace reaches another. Use several to separate teams, sites or the clients you build for.

Every account starts with one, named **Default**, whose id is `default`. How many it can hold is part of your [plan](https://docs.heisenware.com/app-manager/app-manager/plan-and-billing.md).

## What a workspace holds

You can build as many Apps in a workspace as your plan allows. Every App in a workspace shares that workspace's resources:

* **Databases**: A [timeseries database](https://docs.heisenware.com/reference/functions/storage/timeseries-database.md) (InfluxDB) for high-frequency sensor data, and a [relational database](https://docs.heisenware.com/reference/functions/storage/relational-database.md) (PostgreSQL) for structured data.
* [**Files**](https://docs.heisenware.com/app-builder/app-builder/files.md): The files your Apps use, managed in the App Builder's Files explorer.
* [**Agents**](https://docs.heisenware.com/app-manager/app-manager/agents.md): The agents that connect your machines and hosts.
* [**Integrations**](https://docs.heisenware.com/app-manager/app-manager/integrations.md): Shared connections to external systems.

The diagram below illustrates this structure:

<figure><img src="https://3495989837-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FE5Ketpww1s7TauSAJrJ8%2Fuploads%2Fgit-blob-58c8d5be9ef6201cb255579bcd53877acd742646%2Faccount-and-workspaces.png?alt=media" alt="An account with its members and plan, holding two workspaces; each workspace has its own Apps, databases, files, agents and integrations, and nothing crosses between them" width="720"><figcaption><p>Every App of a workspace reaches that workspace's own resources, and nothing else.</p></figcaption></figure>

## Switch workspaces

The workspace switcher sits at the top of the App Manager's menu and shows the workspace you are in. Click it to see the workspaces you reach, and pick one. The screens start afresh, so nothing of the workspace you left stays on them.

Each workspace in the list shows its domain, for example `acme.halle`, with a button to copy it. Your own code and your MQTT clients connect with the domain, not with the workspace's name.

## Add a workspace

Owners of the account add workspaces:

1. Open the workspace switcher and click **Add workspace**.
2. Enter a **Name**, 1 to 64 characters. It is what people see, no two workspaces of an account share one, and you can change it later.
3. Optionally enter an **Id**. Left empty, it follows from the name: `Halle Süd` becomes `halle-sued`. The id is part of the workspace's domain and never changes. It takes lower-case letters, digits and dashes inside, 32 characters at most.
4. Click **Add**.

You land in the new workspace while its services start.

When your plan is full, the switcher says how many workspaces it holds, with **Ask for more** instead of **Add workspace**. On a self-hosted installation the license carries the number.

## Divide your plan's Apps

Your plan's Apps count for the whole account, and by default all workspaces share them. Where the plan holds more than one workspace, owners of the account can reserve Apps for a workspace, for example for a client you build for:

1. Open [**Plan & Billing**](https://docs.heisenware.com/app-manager/app-manager/plan-and-billing.md) (**Plan & License** on your own server) and find **Workspaces**.
2. Click **Edit** on the workspace.
3. Enter the number under **Apps reserved**.

A workspace with Apps reserved may hold that many, and those slots are kept for it. The workspaces without a reservation share what is left. Leave the field empty to go back to sharing.

A reservation cannot be lower than the Apps the workspace holds, or higher than what your plan has left. The Apps screen shows every member where the workspace stands, for example *3 of 5 apps in this workspace*.

The same dialog changes the workspace's name.

## Who reaches a workspace

| Access                   | What it gives                                                                           |
| ------------------------ | --------------------------------------------------------------------------------------- |
| **Owner of the account** | Every workspace, the plan and billing, all members, and adding and deleting workspaces. |
| **Owner of a workspace** | Builds in that workspace and chooses who else does.                                     |
| **Editor**               | Builds in that workspace, its integrations included.                                    |

See [Members](https://docs.heisenware.com/app-manager/app-manager/members.md) for how to give and take access.

## Delete a workspace

Owners of the account delete workspaces. This cannot be undone.

1. Open [**Plan & Billing**](https://docs.heisenware.com/app-manager/app-manager/plan-and-billing.md) (**Plan & License** on your own server) and find **Workspaces**.
2. Click **Edit** on the workspace, then **Delete**. The button is there only while the account has more than one workspace.
3. Check what the dialog names, type the workspace's name and click **Delete workspace**.

The workspace is gone for everyone at once. If you were inside it, you land in another workspace. The rest follows in the background, and the workspace shows as **Being deleted** until it is done. Should that row stay, click **Try again**.

What goes:

* Its Apps with their data and their deployed backends, and the App users who hold no other App.
* Its databases and files.
* Its agents' and integrations' logins. Whatever is connected loses its connection and cannot return.
* Its AI client connections and the assistant's conversations in it.
* Members who hold nothing else leave the account. Someone who is still a user of an App stays that, without the App Manager.

What the assistant used in the workspace stays on your account's bill. Once the delete is done, the workspace's id is free again.

{% hint style="info" %}
You cannot delete an account's last workspace. Any other can go, `default` included.
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.heisenware.com/app-manager/app-manager/workspaces.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
