---
title: "Mark a thread as seen"
---

> 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.

# Mark a thread as seen

Path: CloudRaker Workspace API › Me

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

Records that the caller has looked at this thread, which is what `GET /me/agent-runs?group=thread` compares each thread’s last activity against to decide `unread`. Idempotent, bodyless, fire-and-forget — call it when the thread view mounts and when the window regains focus. It creates nothing and starts nothing: a thread is marked seen, not read-receipted, so there is no per-message state and no notification is consumed. Authorization: whoever can read the thread’s container — its owner for a desk thread, any holder of `space:read` for a thread in a space (everyone else gets 404).

## Authentication

- `bearerAuth`, http, header `Authorization`

## Path parameters

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

## Code samples

### cURL

```bash
curl --request POST \
  --url 'https://api.cloudraker.com/me/threads/<threadId>/view' \
  --header 'Authorization: Bearer <token>'
```

### TypeScript

```typescript
const url = 'https://api.cloudraker.com/me/threads/<threadId>/view';
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/me/threads/<threadId>/view"

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

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

print(response.text)
```

## Responses

### 204

Recorded.

### 404

Unknown thread, or no access to its container.


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