---
title: "Copy a document"
description: "Makes a copy of a document you can read, owned by you, with a new address, no password and no expiry."
canonical_url: https://docs.markdrop.in/api/documents/copy-a-document
last_updated: 2026-10-30
site: "Markdrop Docs"
index: https://docs.markdrop.in/llms.txt
---

# Copy a document

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

Makes a copy of a document you can read, owned by you, with a new address, no password and no expiry. The copy is private unless the original is open to anyone with the link.

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

## Path parameters

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

## Headers

- `X-Markdrop-Workspace` (string)

## Request body

`application/json`, required.

- `read_password` (string): Readers must enter this password before they see the content. Up to 100 characters.

## Responses

- `201`: Created.
  - `slug` (string)
  - `url` (string)
  - `folder_path` (array of string)
  - `title` (string | null): Shown on the page and in link previews.
  - `content` (string): The document's Markdown.
  - `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`.
  - `is_password_protected` (boolean): Default `false`.
  - `is_owned` (boolean): Default `false`.
  - `is_owner` (boolean): Default `false`.
  - `id` (string | null)
  - `ref` (string | null)
  - `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)
  - `artifact_url` (string | null)
  - `download_url` (string | null)
  - `poster_url` (string | null)
  - `media` (object | null)
  - `file_version` (integer | null)
  - `workspace_url` (string | null)
  - `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"`.
  - `workspace_id` (string | null)
  - `can` (object | null)
  - `read_ticket` (string | null)
  - `access_epoch` (integer): Default `0`.
  - `edit_secret` (string): Returned once. Send it as `X-Edit-Secret` to change or delete a document published without a token.
  - `workspace_error` (string | null)
- `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/documents/k3x9q2m/copy \
  -H "Authorization: Bearer $MARKDROP_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{}'
```

**JavaScript**

```javascript
const res = await fetch("https://api.markdrop.in/api/v1/documents/k3x9q2m/copy", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.MARKDROP_TOKEN}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({}),
});
const data = await res.json();
```

**Python**

```python
import os

import requests

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