Get a document
GET/api/documents/:id
Returns a document's metadata (title, icon, workspace, creator, timestamps) and the caller's accessLevel; the body is only available over the WebSocket or through export. Access is the highest of three sources: the creator always gets owner; the caller's role in the document's workspace gives owner for admin, write for editor, and read for viewer; and a direct share gives its read or write permission. A guest share session can only get its shared document, with the share's permission. accessSource is not included. Callers without access get 404, the same as for an unknown id.
Request
Responses
- 200
- 404
Document metadata. Body content is not included.
Request failed.