---
title: "Request access"
description: "Asks the owner of a document you can't open for access."
canonical_url: https://docs.markdrop.in/api/access/request-access
last_updated: 2026-10-30
site: "Markdrop Docs"
index: https://docs.markdrop.in/llms.txt
---

# Request access

`POST https://api.markdrop.in/api/v1/documents/{slug}/access-requests`

Asks the owner of a document you can't open for access. The owner can approve or decline it.

- **Authentication:** API token required: `Authorization: Bearer mdk_…`.
- **Rate limit:** 30 per hour per IP address.
- **Guide:** [Request access](https://docs.markdrop.in/sharing/request-access)

## Path parameters

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

## Request body

`application/json`, required.

- `message` (string): Up to 500 characters.

## Responses

- `201`: Created.
- `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/access-requests \
  -H "Authorization: Bearer $MARKDROP_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"message":"Could I see the Q3 numbers?"}'
```

**JavaScript**

```javascript
const res = await fetch("https://api.markdrop.in/api/v1/documents/k3x9q2m/access-requests", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.MARKDROP_TOKEN}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "message": "Could I see the Q3 numbers?"
  }),
});
const data = await res.json();
```

**Python**

```python
import os

import requests

r = requests.post(
    "https://api.markdrop.in/api/v1/documents/k3x9q2m/access-requests",
    headers={"Authorization": f"Bearer {os.environ['MARKDROP_TOKEN']}"},
    json={"message": "Could I see the Q3 numbers?"},
)
r.raise_for_status()
print(r.json())
```
