---
docId: doc_f098e2ebca6e499d891ace4562ab41c2
title: Workspaces
description: "How a workspace organizes agents and data, and how API keys and tokens access it."
---

# Workspaces

A **workspace** holds your company's agents, knowledge, tools, channels, contacts and conversations. Each resource belongs to a workspace.

## How it works

Each credential has access to specific workspaces. That access limits the data available to each request.

- **An API key belongs to the workspace where you created it.** The API identifies it from the key; you do not need to send it with each request.
- **An OAuth token can cover several workspaces.** When connecting an assistant through MCP, choose which ones it can access. Add `?workspace=<id>` to select one; each operation says whether it is required.
- **OAuth follows your role.** Platica checks permissions on each call. If you're removed from the workspace, the token loses access on the next request.

```mermaid
flowchart LR
  K[API key] --> W1[Workspace A]
  O[OAuth token] --> W1
  O --> W2[Workspace B]
```

**To use several workspaces with API keys, create one key in each.**

## Where to go next

- [Authentication](/authentication): keys, tokens and the `?workspace=` parameter.
- [List workspaces](/api-reference/workspaces): the ids your credential can use.
- [Agents, drafts and versions](/concepts/agents): configure how the agent replies.
