---
title: "Continue a thread in a shared 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.

# Continue a thread in a shared space

Path: CloudRaker Workspace API › Me

`POST /me/threads/{threadId}/share`

Forks the thread into a space so colleagues can join it (P3-D7). A thread never changes container: this starts a NEW thread in the target, seeded with the source thread’s conversation tail (≤4 KiB) and its title, and leaves a one-way pointer on both sides. Files are NEVER carried over — promoting them stays the explicit `keep` / `move_files` path. Body: either `{ spaceId }` for an existing space, or `{ spaceTypeId, title }` to create one (the creator is granted `space-contributor` on it). Authorization: the caller must be able to contribute to the source thread’s container AND to the target — 404 hides either; creating a space requires `spacetype:contribute` on the parent (403). A desk is never a valid target (400 `cannot_target_desk`). Gated by `AGENTS_ENABLED`.

## Authentication

- `bearerAuth`, http, header `Authorization`

## Path parameters

- `threadId` (`shareThread.path.threadId`; string, required)

## Request body

_Required._

Any of:

- `object`
  - `spaceId` (`shareThread.1.spaceId`; string, required)
    - minLength 1
- `object`
  - `spaceTypeId` (`shareThread.2.spaceTypeId`; string, required)
    - minLength 1; maxLength 40
  - `title` (`shareThread.2.title`; string, required)
    - minLength 1; maxLength 120

## Example request

```json
{
  "spaceId": "string"
}
```

## Code samples

### cURL

```bash
curl --request POST \
  --url 'https://api.cloudraker.com/me/threads/<threadId>/share' \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "spaceId": "string"
}
'
```

### TypeScript

```typescript
const url = 'https://api.cloudraker.com/me/threads/<threadId>/share';
const options = {
  method: 'POST',
  headers: {'Content-Type': 'application/json', Authorization: 'Bearer <token>'},
  body: JSON.stringify({spaceId: 'string'})
};

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/me/threads/<threadId>/share"

payload = { "spaceId": "string" }
headers = {
    "Content-Type": "application/json",
    "Authorization": "Bearer <token>"
}

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

print(response.text)
```

## Responses

### 201

The new thread in the target space.

#### Example

```json
{
  "threadId": "string",
  "runId": "string",
  "steered": true,
  "status": "string",
  "spaceId": "string",
  "sharedFromThreadId": "string"
}
```

- `threadId` (`shareThread.response.201.threadId`; string, required)
- `runId` (`shareThread.response.201.runId`; string, required)
- `steered` (`shareThread.response.201.steered`; boolean, required)
- `status` (`shareThread.response.201.status`; string, required)
- `spaceId` (`shareThread.response.201.spaceId`; string, required)
- `sharedFromThreadId` (`shareThread.response.201.sharedFromThreadId`; string, required) — The thread this one continues.

### 400

`cannot_target_desk` — a desk is never a share target.

### 403

The caller may not create a space under that space type.

### 404

Agents disabled, unknown thread, or the target is not contributable.


Source: https://docs.cloudraker.com/workspace/api/me/share-thread/index.md
