---
title: "Start a thread"
description: "Comments on quoted text (anchor.type: text with quote.exact and the characters around it), a whole block (block, by block_id or block_text) or the page (page)."
canonical_url: https://docs.markdrop.in/api/comments/start-a-thread
last_updated: 2026-11-20
site: "Markdrop Docs"
index: https://docs.markdrop.in/llms.txt
---

# Start a thread

`POST https://api.markdrop.in/api/v1/documents/{slug}/comments`

Comments on quoted text (`anchor.type: text` with `quote.exact` and the characters around it), a whole block (`block`, by `block_id` or `block_text`) or the page (`page`). `mentions` are user ids of people who can open it; `assignee` makes it a task. The page's text never changes.

- **Authentication:** API token required: `Authorization: Bearer mdk_…`.
- **Rate limit:** 30 per minute, 300 per day per IP address.
- **MCP tool:** `add_comment` ([tools](https://docs.markdrop.in/ai/tools))
- **Guide:** [Comments](https://docs.markdrop.in/collaboration/comments)

## Path parameters

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

## Headers

- `X-Read-Password` (string): The password of a password-protected document.
- `X-Markdrop-Workspace` (string): A workspace's id: answer only if the document is in that workspace, else `404`. Workspace domains send it; you rarely need it.

## Request body

`application/json`, required.

- `anchor` (object, required)
  - `type` ("text" | "block" | "page", required)
  - `block_id` (string): Up to 40 characters.
  - `block_text` (string): Up to 2,000 characters.
  - `quote` (object)
  - `start` (integer)
- `body` (string, required): 1–5,000 characters.
- `mentions` (array of string): Up to 20 items.
- `assignee` (string): Up to 40 characters.
- `attachments` (array of string): Up to 10 items.
- `suggestion` (string): Up to 5,000 characters.

## Responses

- `201`: Created.
- `401`: No token, or the token is revoked or mistyped.
- `422`: The quoted text or block isn't on the page (code `anchor_not_found`), or the comment is empty or too long.
- `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/documents/k3x9q2m/comments \
  -H "Authorization: Bearer $MARKDROP_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
       "anchor": {
         "type": "text",
         "quote": {
           "exact": "ship on Monday",
           "prefix": "We will ",
           "suffix": " after review"
         }
       },
       "body": "Is Monday realistic?",
       "mentions": []
     }'
```

**JavaScript**

```javascript
const res = await fetch("https://api.markdrop.in/api/v1/documents/k3x9q2m/comments", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.MARKDROP_TOKEN}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "anchor": {
      "type": "text",
      "quote": {
        "exact": "ship on Monday",
        "prefix": "We will ",
        "suffix": " after review"
      }
    },
    "body": "Is Monday realistic?",
    "mentions": []
  }),
});
const data = await res.json();
```

**Python**

```python
import os

import requests

r = requests.post(
    "https://api.markdrop.in/api/v1/documents/k3x9q2m/comments",
    headers={"Authorization": f"Bearer {os.environ['MARKDROP_TOKEN']}"},
    json={
        "anchor": {
            "type": "text",
            "quote": {
                "exact": "ship on Monday",
                "prefix": "We will ",
                "suffix": " after review",
            },
        },
        "body": "Is Monday realistic?",
        "mentions": [],
    },
)
r.raise_for_status()
print(r.json())
```
