> ## Documentation Index
> Fetch the complete documentation index at: https://orwel-22af1265.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Workspaces

> Understanding workspace isolation and data scoping

## What is a Workspace?

A workspace is your organization's isolated environment in Orwel. All data, API keys, and resources are scoped to a single workspace, ensuring complete data isolation.

## Automatic Scoping

Every API request is automatically scoped to your workspace based on the API key used. You can only access data that belongs to your workspace.

```javascript theme={null}
// All requests are automatically filtered by workspace_id
const leads = await fetch('/api/v1/leads', {
  headers: { 'Authorization': 'Bearer YOUR_API_KEY' }
});
// Returns only leads from your workspace
```

## Workspace ID

Your workspace ID is included in every API response header:

```
X-Workspace-Id: 770e8400-e29b-41d4-a716-446655440002
```

## Data Isolation

<AccordionGroup>
  <Accordion icon="shield" title="Complete Isolation">
    Cross-workspace data access is strictly prohibited. You cannot access another workspace's data, even if you know the resource ID.
  </Accordion>

  <Accordion icon="key" title="API Key Binding">
    Each API key is bound to a single workspace. Keys cannot be shared across workspaces.
  </Accordion>
</AccordionGroup>
