---
title: "Share Document"
method: POST
path: "/api/sharing/documents"
tags: ["Sharing"]
---

# Share Document

`POST /api/sharing/documents`

## Request

- Base URL: `https://api.qomplement.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.qomplement.com/api/sharing/documents`
- Auth: HTTP bearer

Share a document/batch with a team or user

## Request body

- ShareDocumentRequest
  - `resource_type` string, required
  - `resource_id` string, required
  - `share_with_team_id` string, nullable
  - `share_with_user_id` string, nullable
  - `permission_level` string

## Response `200`

Successful Response

- DocumentShareResponse
  - `id` string, required
  - `resource_type` string, required
  - `resource_id` string, required
  - `resource_name` string, required
  - `shared_by_email` string, required
  - `shared_with_team_name` string, nullable
  - `shared_with_user_email` string, nullable
  - `permission_level` string, required
  - `shared_at` string, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/qomplement/apis/qomplement-api.md) - [All operations](https://skmtc.dev/qomplement/apis/qomplement-api/llms.txt) - [OpenAPI document](https://skmtc.dev/qomplement/apis/qomplement-api/revisions/6fe617c112ef?raw)
