# Get Knowledge Hub Document Share Settings

`GET /api/knowledge/documents/hub-documents/{document_id}/share`

### Overview
Retrieves collaborative sharing settings, general visibility (private/internal), permissions (view/use), expiration, and grantees for a document.

### Authentication & Headers
- **Auth**: Bearer Token (Owner or Admin L1)
- **Required Header**: `API-Version: 1`

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `document_id` | path | string | yes | Unique UUID of the knowledge document stored in the vector database. |

## Responses

### 200 — Document share configuration

### 400 — Bad Request - The request parameters or headers are invalid (e.g. unsupported API-Version).

### 401 — Unauthorized - Missing, invalid, or expired JWT Bearer token.

### 403 — Only document owner or Admin L1 can access share settings

### 404 — Document not found

### 422 — Validation Error

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `detail` | object[] | no |  |
| `detail[].loc` | string | integer[] | yes |  |
| `detail[].msg` | string | yes |  |
| `detail[].type` | string | yes |  |
| `detail[].input` | object | no |  |
| `detail[].ctx` | object | no |  |

```json
{
  "detail": [
    {
      "loc": [
        null
      ],
      "msg": "string",
      "type": "string",
      "input": null,
      "ctx": {}
    }
  ]
}
```

## Example

```bash
curl -X GET "$PINTER_URL/api/knowledge/documents/hub-documents/doc_it_guidelines_2026/share" \
  -H "Authorization: Bearer $ACCESS_TOKEN"
```
