API reference
POSTRequires Bearer token
Create a document share
/api/edm/documents/{document_id}/shares
Returns token once (32-byte url-safe; only the SHA-256 is stored) and url (/shared/{token}). Recipients open GET /api/edm/shared/{token}. TTL is clamped to share_max_ttl_hours (default 72h).
Path parameters
| Field | Type | Description |
|---|---|---|
document_id Required | string | Path parameter document_id. |
Query parameters
This endpoint has no query parameters.
Request body
| Field | Type | Description |
|---|---|---|
scope | string | internal (default) or external.e.g. "external" |
expires_in_hours | integer | Link TTL in hours. e.g. 48 |
max_uses | integer | Optional use cap. e.g. 10 |
password | string | Optional password (PBKDF2). |
Responses
| Status | Meaning |
|---|---|
| 201 | Token shown once |
| 401 | Missing or invalid Bearer token. |