---
title: "Ensure the caller's organization has its default space"
---

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

# Ensure the caller's organization has its default space

Path: CloudRaker Workspace API › Onboarding

`POST /onboarding/default-space`

Creates the default space if it does not already exist. Idempotent — safe to call repeatedly, including for organizations that predate automatic default-space seeding. Open to any org member: this repairs a fixed, no-input data gap rather than creating an arbitrary new space. Seeds no files — samples arrive from `/onboarding/sample-document` once step 2 is known.

## Authentication

- `bearerAuth`, http, header `Authorization`

## Code samples

### cURL

```bash
curl --request POST \
  --url https://api.cloudraker.com/onboarding/default-space \
  --header 'Authorization: Bearer <token>'
```

### TypeScript

```typescript
const url = 'https://api.cloudraker.com/onboarding/default-space';
const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://api.cloudraker.com/onboarding/default-space"

headers = {"Authorization": "Bearer <token>"}

response = requests.post(url, headers=headers)

print(response.text)
```

## Responses

### 200

The default space id.

#### Example

```json
{
  "spaceId": "default"
}
```

- `spaceId` (`ensureOnboardingDefaultSpace.response.200.spaceId`; string, required)
  - example `"default"`


Source: https://docs.cloudraker.com/workspace/api/onboarding/ensure-onboarding-default-space/index.md
