---
title: "List private shares"
method: GET
path: "/api/v1/documents/{id}/shares"
tags: ["Documents"]
---

# List private shares

`GET /api/v1/documents/{id}/shares`

## Request

- Base URL: `https://mdflow.cz`
- URL: `https://mdflow.cz/api/v1/documents/{id}/shares`
- Auth: HTTP bearer

Returns the people a document owned by the authenticated user is privately shared with. Revoked shares are omitted.

## Path parameters

- `id` string, uuid, required

## Response `200`

Private share list.

- DocumentShare[]
  - `id` string, uuid, required: Private share identifier. Use it to remove this person.
  - `email` string, email, required
  - `allow_comments` boolean, required: Whether the recipient may comment.
  - `status` 'pending' | 'accepted', required: pending until the recipient signs in with the invited email, then accepted.
  - `created_at` string, date-time, required
  - `accepted_at` string, date-time, nullable, required

## Other responses

- `400`: Request body was malformed or failed validation.
- `401`: Missing, malformed, invalid, or revoked bearer token. The body includes a `message` field with guidance for authenticating, and the response carries a `WWW-Authenticate` challenge.
- `403`: The bearer token is valid but its owner cannot use the API. Agent control (REST + MCP) requires an MDflow Pro plan, so a token owned by a non-Pro account returns 403 on every endpoint. POST /api/v1/documents additionally returns 403 when the account reaches its document limit. The body includes a `message` field with guidance.
- `404`: Document was not found or is not owned by the authenticated user.
- `429`: The token or authenticated user exceeded a 60 requests per minute rate limit.
- `500`: Unexpected server error.

---

[API](https://skmtc.dev/mdflow/apis/mdflow-public-api.md) · [All operations](https://skmtc.dev/mdflow/apis/mdflow-public-api/llms.txt) · [OpenAPI document](https://skmtc.dev/mdflow/apis/mdflow-public-api/revisions/3691fc5d1688?raw)
