Skip to main content

List the documents filed in a folder.

GET/api/v1/folders/{folder_id}/documentsdocuments:read

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.

Scopedocuments:read
AsynchronousNo
MCP toollist_folder_documents
Portal permissionsview_folder_contents, view_document_metadata
Pagingkeyset
Default orderdocument_id
Sort fieldsdocument_id
Filtersdocument_id, document_number, reference_number, revision_number, is_latest_revision, is_privileged, is_privileged_is_null, is_locked, is_locked_is_null

Parameters​

NameInTypeRequiredDescription
folder_idpathstringRequired
include_subfoldersquerybooleanOptionalAlso list the documents filed in the folders beneath this one.
limitqueryintegerOptionalDefault: 50; ≥ 1
cursorquerystringOptional
sortquerystringOptionalComma-separated sort fields, - for descending.
includequeryarray of string: total_countOptionaltotal_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_idqueryarray of stringOptional
document_numberqueryarray of stringOptional
reference_numberqueryarray of stringOptional
revision_numberqueryarray of stringOptional
is_latest_revisionqueryarray of booleanOptional
is_privilegedqueryarray of booleanOptional
is_privileged_is_nullquerybooleanOptional
is_lockedqueryarray of booleanOptional
is_locked_is_nullquerybooleanOptional
Docwize-Versionheaderstring (date)Optional
If-None-MatchheaderstringOptionalAnswers 304 when the representation is unchanged (resources that publish an ETag).

Responses​

StatusDescriptionBody
200Success.application/json object
304Not modified (If-None-Match matched the ETag).
400invalid_versionapplication/problem+json Problem
401token_expired, unauthenticatedapplication/problem+json Problem
403forbidden, insufficient_scope, token_owner_inactiveapplication/problem+json Problem
404not_foundapplication/problem+json Problem
405method_not_allowedapplication/problem+json Problem
406not_acceptableapplication/problem+json Problem
410cursor_expiredapplication/problem+json Problem
421wrong_regionapplication/problem+json Problem
422invalid_cursor, validation_failedapplication/problem+json Problem
500internal_errorapplication/problem+json Problem
503tenant_unavailable, unavailableapplication/problem+json Problem
504timeoutapplication/problem+json Problem

200 body​

FieldTypeRequiredDescription
itemsarray of DocumentSummaryRequired
next_cursorstring or nullRequired
total_countintegerOptionaltotal_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
warningsarray of objectRequired

Errors​

The problem codes this operation can answer with. Each code links to its page.

Schemas​

AdditionalField​

FieldTypeRequiredDescription
labelstring or nullRequired
valuestring or nullRequired

AdditionalFields​

FieldTypeRequiredDescription
additional_field_3AdditionalFieldRequired
additional_field_4AdditionalFieldRequired
additional_field_5AdditionalFieldRequired
additional_field_6AdditionalFieldRequired

DocumentSummary​

FieldTypeRequiredDescription
actual_submission_datestring or nullRequired
additional_fieldsAdditionalFieldsRequired
created_atstring (date-time) or nullRequired
created_byUserRef or nullRequired
descriptionstring or nullRequired
document_datestring or nullRequired
document_idstringRequired
document_numberstring or nullRequired
document_statusobject or nullRequiredThe status shown as Status in the Portal (lookup_actionstatus).
document_sub_typeobject or nullRequired
document_typeobject or nullRequired
duplicate_ofstring or nullRequiredThe number of the document this one duplicates (the Portal's Duplicate Of).
from_contactobject or nullRequired
from_organisationobject or nullRequired
is_latest_revisionbooleanRequired
is_lockedbooleanRequired
is_privilegedbooleanRequired
main_document_datestring or nullRequired
ownerUserRef or nullRequired
page_endnumber or nullRequiredLast page of the range this document covers in its file.
page_startnumber or nullRequiredFirst page of the range this document covers in its file.
post_review_statusobject or nullRequired
projectobject or nullRequiredThe stored project number text, with the project's ID when one matches.
project_organisationobject or nullRequired
reference_numberstring or nullRequired
relevancenumber or nullRequired1 is relevant (the default), 0 is irrelevant (the Portal's Irrelevant switch).
responded_withstring or nullRequiredThe reference of the document that responded to this one (the Portal's Responded With).
response_datestring or nullRequired
response_due_datestring or nullRequired
revision_numberstring or nullRequired
to_contactobject or nullRequired
to_organisationobject or nullRequired

UserRef​

FieldTypeRequiredDescription
display_namestringRequired
kindstring: user, system, integration or stringRequired
user_idstring or nullRequired