List the documents filed in a folder.
The documents filed in the folder that the caller can read, in ID order. include_subfolders adds the documents of the folders beneath it. document_id, document_number, reference_number, revision_number, is_latest_revision, is_privileged and is_locked narrow the list; include=total_count adds total_count, the number of documents the filters match; for words in the text, tags, locations or the file use POST /documents/search with a folder facet filter.
| |
|---|
| Scope | documents:read |
| Asynchronous | No |
| MCP tool | list_folder_documents |
| Portal permissions | view_folder_contents, view_document_metadata |
| Paging | keyset |
| Default order | document_id |
| Sort fields | document_id |
| Filters | document_id, document_number, reference_number, revision_number, is_latest_revision, is_privileged, is_privileged_is_null, is_locked, is_locked_is_null |
Parameters
| Name | In | Type | Required | Description |
|---|
folder_id | path | string | Required | |
include_subfolders | query | boolean | Optional | Also list the documents filed in the folders beneath this one. |
limit | query | integer | Optional | Default: 50; ≥ 1 |
cursor | query | string | Optional | |
sort | query | string | Optional | Comma-separated sort fields, - for descending. |
include | query | array of string: total_count | Optional | total_count asks for the number of items the whole list holds for the caller under the same filters (not only this page), counted under the same access rules as the items; the answer then carries total_count. Left out, it is not counted. |
document_id | query | array of string | Optional | |
document_number | query | array of string | Optional | |
reference_number | query | array of string | Optional | |
revision_number | query | array of string | Optional | |
is_latest_revision | query | array of boolean | Optional | |
is_privileged | query | array of boolean | Optional | |
is_privileged_is_null | query | boolean | Optional | |
is_locked | query | array of boolean | Optional | |
is_locked_is_null | query | boolean | Optional | |
Docwize-Version | header | string (date) | Optional | |
If-None-Match | header | string | Optional | Answers 304 when the representation is unchanged (resources that publish an ETag). |
Responses
200 body
| Field | Type | Required | Description |
|---|
items | array of DocumentSummary | Required | |
next_cursor | string or null | Required | |
total_count | integer | Optional | total_count asks for the number of items the whole list holds for the caller under the same filters (not only this page), counted under the same access rules as the items; the answer then carries total_count. Left out, it is not counted. ≥ 0; ≤ 2147483647 |
warnings | array of object | Required | |
Errors
The problem codes this operation can answer with. Each code links to its page.
Schemas
AdditionalField
| Field | Type | Required | Description |
|---|
label | string or null | Required | |
value | string or null | Required | |
AdditionalFields
DocumentSummary
| Field | Type | Required | Description |
|---|
actual_submission_date | string or null | Required | |
additional_fields | AdditionalFields | Required | |
created_at | string (date-time) or null | Required | |
created_by | UserRef or null | Required | |
description | string or null | Required | |
document_date | string or null | Required | |
document_id | string | Required | |
document_number | string or null | Required | |
document_status | object or null | Required | The status shown as Status in the Portal (lookup_actionstatus). |
document_sub_type | object or null | Required | |
document_type | object or null | Required | |
duplicate_of | string or null | Required | The number of the document this one duplicates (the Portal's Duplicate Of). |
from_contact | object or null | Required | |
from_organisation | object or null | Required | |
is_latest_revision | boolean | Required | |
is_locked | boolean | Required | |
is_privileged | boolean | Required | |
main_document_date | string or null | Required | |
owner | UserRef or null | Required | |
page_end | number or null | Required | Last page of the range this document covers in its file. |
page_start | number or null | Required | First page of the range this document covers in its file. |
post_review_status | object or null | Required | |
project | object or null | Required | The stored project number text, with the project's ID when one matches. |
project_organisation | object or null | Required | |
reference_number | string or null | Required | |
relevance | number or null | Required | 1 is relevant (the default), 0 is irrelevant (the Portal's Irrelevant switch). |
responded_with | string or null | Required | The reference of the document that responded to this one (the Portal's Responded With). |
response_date | string or null | Required | |
response_due_date | string or null | Required | |
revision_number | string or null | Required | |
to_contact | object or null | Required | |
to_organisation | object or null | Required | |
UserRef
| Field | Type | Required | Description |
|---|
display_name | string | Required | |
kind | string: user, system, integration or string | Required | |
user_id | string or null | Required | |