---
title: "List your documents"
description: "The documents and files you own, a page at a time, with counts of each kind."
canonical_url: https://docs.markdrop.in/api/documents/list-your-documents
last_updated: 2026-10-30
site: "Markdrop Docs"
index: https://docs.markdrop.in/llms.txt
---

# List your documents

`GET https://api.markdrop.in/api/v1/me/documents`

The documents and files you own, a page at a time, with counts of each kind.

- **Authentication:** API token required: `Authorization: Bearer mdk_…`.
- **MCP tool:** `list_documents` ([tools](https://docs.markdrop.in/ai/tools))

## 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): Same as `limit`, up to 50; wins when both are sent. From 1 to 50.
- `q` (string): Only titles or addresses containing this text.
- `kind` (string): `document` (or `markdown`) for documents, `artifact` for files. One of `markdown`, `document`, `artifact`. One of `markdown`, `document`, `artifact`.

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

## Examples

**curl**

```bash
curl https://api.markdrop.in/api/v1/me/documents \
  -H "Authorization: Bearer $MARKDROP_TOKEN"
```

**JavaScript**

```javascript
const res = await fetch("https://api.markdrop.in/api/v1/me/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/me/documents",
    headers={"Authorization": f"Bearer {os.environ['MARKDROP_TOKEN']}"},
)
r.raise_for_status()
print(r.json())
```
