List documents
list_documentsList every document you can see across all projects, including ID, title, and project. Use it to find a document ID for retrieving full details or attachments.
Instructions
List the documents visible to you, across every project.
Documents are OpenProject's filing cabinet: a title, a description, and attached files.
Use this to find a document id for get_document or for
list_attachments(container_type='document', ...).
Returns the standard list envelope: rows of {id, title, project, created_at, updated_at} plus pagination. The description is deliberately left out of the rows —
get_document returns it in full.
Pitfalls. This is instance-wide: the endpoint takes no project parameter here, so filter
by reading project on the rows, and page through rather than assuming page one is
everything (pagination.has_more says). Documents are a module: where it is not
installed, or not enabled in any project you can see (404), or where this account may not
read documents (403), the call still SUCCEEDS with an empty items and the reason in
notes — an empty list with a note does not mean no documents exist, so read notes
first. The files themselves are attachments, not part of these rows.
Cross-references: get_document(document_id=...) for the description;
list_attachments(container_type='document', container_id=...) then
download_attachment for the files.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | 1-based page number. | |
| page_size | No | Documents per page (max 100). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sums | No | Present only when show_sums was requested. | |
| items | No | The page of results. | |
| notes | No | Degradation markers: capped aggregations, unavailable modules, … | |
| groups | No | Present only when group_by was requested. | |
| pagination | Yes | Total/page/page_size/has_more. |