v12

latestOpenAPI 3.1.0AGPL-3.0raw.githubusercontent.com2026-05-286377631.6 MB
/api/document

POST /api/document/{document-id}/public-link

Generate a publicly-accessible UUID for a Document.

Creates a public link that allows viewing the Document without authentication. If the Document already has a public UUID, returns the existing one rather than generating a new one. This enables sharing the Document via GET /api/ee/public/document/:uuid.

Returns a map containing :uuid (the public UUID string).

Requires superuser permissions. Public sharing must be enabled via the enable-public-sharing setting.

post/api/document/{document-id}/public-link

Path parameters

document-idinteger required

value must be an integer greater than zero.

Response

Successful response

uuidstring required

value must be a valid UUID.