---
title: "Current share state for a project"
method: GET
path: "/api/v1/projects/{id}/share"
tags: ["workspace"]
---

# Current share state for a project

`GET /api/v1/projects/{id}/share`

## Request

- Base URL: `https://mdtidy.com`
- URL: `https://mdtidy.com/api/v1/projects/{id}/share`
- Auth: HTTP bearer

## Response `200`

Share state.

- Share
  - `project_id` string, uuid, required
  - `visibility` 'private' | 'public' | 'restricted', required
  - `public_url` string, nullable, required: `https://mdtidy.com/p/{slug}` when the link is the active mode.
  - `project_url` string, nullable, required: `https://mdtidy.com/p/{slug}` whenever the project is shared (public OR restricted); null when private. Append `/{fileId}` for a direct file link.
  - `invitees` ShareInvitee[], required
    - `email` string, email, required
    - `role` 'viewer', required
  - `credits_remaining` integer

## Other responses

- `401`: X-API-KEY is malformed, unknown, or revoked.
- `404`: Resource not found, or not owned by the caller (IDOR-safe).
- `429`: Per-key rate limit (60/min) exceeded.

---

[API](https://skmtc.dev/mdtidy/apis/markdown-tidy-api.md) · [All operations](https://skmtc.dev/mdtidy/apis/markdown-tidy-api/llms.txt) · [OpenAPI document](https://skmtc.dev/mdtidy/apis/markdown-tidy-api/revisions/caeec6fad155?raw)
