---
title: "List workspace documents"
description: "The documents filed in a workspace."
canonical_url: https://docs.markdrop.in/api/folders/list-workspace-documents
last_updated: 2026-10-30
site: "Markdrop Docs"
index: https://docs.markdrop.in/llms.txt
---

# List workspace documents

`GET https://api.markdrop.in/api/v1/workspaces/{workspace_id}/documents`

The documents filed in a workspace.

- **Authentication:** API token required: `Authorization: Bearer mdk_…`.
- **Rate limit:** 120 per minute per IP address.

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

## Query parameters

- `page` (integer): Page number, from 1. At least 1. Default `1`.
- `limit` (integer): How many to return. From 1 to 100. Default `20`.
- `per_page` (integer): From 1 to 50.
- `q` (string)
- `kind` (string): One of `markdown`, `document`, `artifact`. One of `markdown`, `document`, `artifact`.
- `folder_id` (string): The folder's id, from [List folders](https://docs.markdrop.in/api/folders/list-folders).
- `unfiled` (boolean): Default `false`.

## Responses

- `200`: OK.
  - `documents` (array of object)
    - `id` (string | null)
    - `slug` (string)
    - `url` (string)
    - `title` (string | null): Shown on the page and in link previews.
    - `content_preview` (string)
    - `created_at` (string (date-time)): ISO 8601, for example `2026-11-30T12:00:00Z`.
    - `updated_at` (string (date-time)): ISO 8601, for example `2026-11-30T12:00:00Z`.
    - `expires_at` (string (date-time) | null): ISO 8601, for example `2026-11-30T12:00:00Z`.
    - `views` (integer): Default `0`.
    - `export_pdf_count` (integer): Default `0`.
    - `copy_url_count` (integer): Default `0`.
    - `is_password_protected` (boolean): Default `false`.
    - `google_doc_url` (string | null)
    - `google_doc_stale` (boolean): Default `false`.
    - `vscode_synced` (boolean): Default `false`.
    - `encrypted` (boolean): Set by clients that encrypt in the browser: `content` and `title` are already ciphertext. The server never sees the key. Default `false`.
    - `kind` (string): Default `"markdown"`.
    - `mime` (string | null)
    - `renderer` (string | null)
    - `type_label` (string | null)
    - `size_bytes` (integer | null)
    - `original_filename` (string | null)
    - `workspace_id` (string | null)
    - `folder_id` (string | null)
    - `folder_path` (array of string)
    - `access_level` (string): Who can open it: `link` (anyone with the link), `private` (only you and the people you share it with) or `workspace` (members of its workspace). Default `"link"`.
    - `shared_with_count` (integer): Default `0`.
    - `shared_by_name` (string | null)
    - `shared_by_email` (string | null)
    - `is_mine` (boolean): Default `true`.
  - `total` (integer)
  - `page` (integer)
  - `pages` (integer)
  - `per_page` (integer): Default `20`.
  - `count_all` (integer): Default `0`.
  - `count_markdown` (integer): Default `0`.
  - `count_artifact` (integer): Default `0`.
- `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 https://api.markdrop.in/api/v1/workspaces/WORKSPACE_ID/documents \
  -H "Authorization: Bearer $MARKDROP_TOKEN"
```

**JavaScript**

```javascript
const res = await fetch("https://api.markdrop.in/api/v1/workspaces/WORKSPACE_ID/documents", {
  headers: {
    Authorization: `Bearer ${process.env.MARKDROP_TOKEN}`,
  },
});
const data = await res.json();
```

**Python**

```python
import os

import requests

r = requests.get(
    "https://api.markdrop.in/api/v1/workspaces/WORKSPACE_ID/documents",
    headers={"Authorization": f"Bearer {os.environ['MARKDROP_TOKEN']}"},
)
r.raise_for_status()
print(r.json())
```
