---
title: "Show who's viewing"
description: "Turns the document's Show who's viewing on or off."
canonical_url: https://docs.markdrop.in/api/access/show-who-s-viewing
last_updated: 2026-11-03
site: "Markdrop Docs"
index: https://docs.markdrop.in/llms.txt
---

# Show who's viewing

`PUT https://api.markdrop.in/api/v1/documents/{slug}/access/presence`

Turns the document's **Show who's viewing** on or off. Owner only. Off, nobody on the page sees anyone, not even a count.

- **Authentication:** API token required: `Authorization: Bearer mdk_…`.
- **Rate limit:** 60 per minute per IP address.
- **MCP tool:** `set_presence` ([tools](https://docs.markdrop.in/ai/tools))
- **Guide:** [See who's viewing](https://docs.markdrop.in/sharing/see-whos-viewing)

## Path parameters

- `slug` (string, required): The document's address: the part after `markdrop.in/`.

## Request body

`application/json`, required.

- `show` (boolean, required)

## Responses

- `204`: No content.
- `401`: No token, or the token is revoked or mistyped.
- `422`: The request didn't validate. `detail` lists each problem, with where it is (`loc`) and why (`msg`).
- `429`: Too many requests from your IP address. Wait the seconds in `Retry-After`.

## Examples

**curl**

```bash
curl -X PUT https://api.markdrop.in/api/v1/documents/k3x9q2m/access/presence \
  -H "Authorization: Bearer $MARKDROP_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"show":false}'
```

**JavaScript**

```javascript
const res = await fetch("https://api.markdrop.in/api/v1/documents/k3x9q2m/access/presence", {
  method: "PUT",
  headers: {
    Authorization: `Bearer ${process.env.MARKDROP_TOKEN}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "show": false
  }),
});
if (!res.ok) throw new Error(`${res.status}`);
```

**Python**

```python
import os

import requests

r = requests.put(
    "https://api.markdrop.in/api/v1/documents/k3x9q2m/access/presence",
    headers={"Authorization": f"Bearer {os.environ['MARKDROP_TOKEN']}"},
    json={"show": False},
)
r.raise_for_status()
```
