---
title: "Preview items"
description: "What the Cards view shows of each item, for up to 12 items at a time."
canonical_url: https://docs.markdrop.in/api/folders/preview-items
last_updated: 2026-11-05
site: "Markdrop Docs"
index: https://docs.markdrop.in/llms.txt
---

# Preview items

`POST https://api.markdrop.in/api/v1/workspaces/{workspace_id}/items/previews`

What the Cards view shows of each item, for up to 12 items at a time. Each answers `locked` unless you can open it right now, `encrypted` for an end-to-end encrypted document, and `pending` while a picture is being made (ask again). Otherwise `ok` with plain-text `blocks` (pages, documents, HTML and Word files), a sheet's first `rows`, a text file's first `lines`, or `src`, a small WebP thumbnail as a data URI (images, a PDF's first page, a video's poster, a page's cover). An HTML file also has `live`, its signed address on the files origin. Any member.

- **Authentication:** API token required: `Authorization: Bearer mdk_…`.
- **Rate limit:** 240 per minute per IP address.
- **MCP tool:** `list_workspace_items` ([tools](https://docs.markdrop.in/ai/tools))
- **Guide:** [Browse a workspace](https://docs.markdrop.in/workspaces/folders#browse-a-workspace)

## Path parameters

- `workspace_id` (string, required): The workspace's id, from the address of its settings page (`markdrop.in/settings/workspaces/<workspace-id>`) or from [List workspaces](https://docs.markdrop.in/api/workspaces/list-workspaces).

## Request body

`application/json`, required.

- `slugs` (array of string, required): 1–12 items.

## Responses

- `200`: OK.
- `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 POST https://api.markdrop.in/api/v1/workspaces/WORKSPACE_ID/items/previews \
  -H "Authorization: Bearer $MARKDROP_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"slugs":["k3x9q2m","q3-report"]}'
```

**JavaScript**

```javascript
const res = await fetch("https://api.markdrop.in/api/v1/workspaces/WORKSPACE_ID/items/previews", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.MARKDROP_TOKEN}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "slugs": [
      "k3x9q2m",
      "q3-report"
    ]
  }),
});
const data = await res.json();
```

**Python**

```python
import os

import requests

r = requests.post(
    "https://api.markdrop.in/api/v1/workspaces/WORKSPACE_ID/items/previews",
    headers={"Authorization": f"Bearer {os.environ['MARKDROP_TOKEN']}"},
    json={"slugs": ["k3x9q2m", "q3-report"]},
)
r.raise_for_status()
print(r.json())
```
