List documents by their own columns.
GET/api/v1/documentsdocuments:read
注記
このページの操作の説明は、API の OpenAPI 文書のとおり英語で記載しています。
Needs View Document Metadata, as the Portal's document details and reference number check do. The documents the caller can read, filtered by document_id (send several to read many documents in one call), document_number, reference_number, revision_number and is_latest_revision. Text filters compare the whole value, with the case rule of the company's database. include=total_count adds total_count, the number of documents the filters match. For words in the text or in any other column use POST /documents/search.
| スコープ | documents:read |
| 非同期 | いいえ |
| MCP ツール | list_documents |
| Portal の権限 | view_document_metadata |
| ページング | keyset |
| 既定の並び順 | document_id |
| 並べ替えに使えるフィールド | document_id |
| フィルター | document_id, document_number, reference_number, revision_number, is_latest_revision |
パラメーター
| 名前 | 場所 | 型 | 必須 | 説明 |
|---|---|---|---|---|
limit | query | integer | 任意 | 既定値: 50; ≥ 1 |
cursor | query | string | 任意 | |
sort | query | string | 任意 | Comma-separated sort fields, - for descending. |
include | query | string: total_count の配列 | 任意 | 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 | string の配列 | 任意 | |
document_number | query | string の配列 | 任意 | |
reference_number | query | string の配列 | 任意 | |
revision_number | query | string の配列 | 任意 | |
is_latest_revision | query | boolean の配列 | 任意 | |
Docwize-Version | header | string (date) | 任意 | |
If-None-Match | header | string | 任意 | Answers 304 when the representation is unchanged (resources that publish an ETag). |
応答
| ステータス | 説明 | 本文 |
|---|---|---|
200 | Success. | application/json object |
304 | Not modified (If-None-Match matched the ETag). | |
400 | invalid_version | application/problem+json Problem |
401 | token_expired, unauthenticated | application/problem+json Problem |
403 | forbidden, insufficient_scope, token_owner_inactive | application/problem+json Problem |
405 | method_not_allowed | application/problem+json Problem |
406 | not_acceptable | application/problem+json Problem |
410 | cursor_expired | application/problem+json Problem |
421 | wrong_region | application/problem+json Problem |
422 | invalid_cursor, validation_failed | application/problem+json Problem |
500 | internal_error | application/problem+json Problem |
503 | tenant_unavailable, unavailable | application/problem+json Problem |
504 | timeout | application/problem+json Problem |
200 の本文
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
items | DocumentSummary の配列 | 必須 | |
next_cursor | string または null | 必須 | |
total_count | integer | 任意 | 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 | object の配列 | 必須 |
エラー
この操作が返す可能性のある problem のコードです。各コードからそのページに移動できます。
スキーマ
AdditionalField
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
label | string または null | 必須 | |
value | string または null | 必須 |
AdditionalFields
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
additional_field_3 | AdditionalField | 必須 | |
additional_field_4 | AdditionalField | 必須 | |
additional_field_5 | AdditionalField | 必須 | |
additional_field_6 | AdditionalField | 必須 |
DocumentSummary
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
actual_submission_date | string または null | 必須 | |
additional_fields | AdditionalFields | 必須 | |
created_at | string (date-time) または null | 必須 | |
created_by | UserRef または null | 必須 | |
description | string または null | 必須 | |
document_date | string または null | 必須 | |
document_id | string | 必須 | |
document_number | string または null | 必須 | |
document_status | object または null | 必須 | The status shown as Status in the Portal (lookup_actionstatus). |
document_sub_type | object または null | 必須 | |
document_type | object または null | 必須 | |
duplicate_of | string または null | 必須 | The number of the document this one duplicates (the Portal's Duplicate Of). |
from_contact | object または null | 必須 | |
from_organisation | object または null | 必須 | |
is_latest_revision | boolean | 必須 | |
is_locked | boolean | 必須 | |
is_privileged | boolean | 必須 | |
main_document_date | string または null | 必須 | |
owner | UserRef または null | 必須 | |
page_end | number または null | 必須 | Last page of the range this document covers in its file. |
page_start | number または null | 必須 | First page of the range this document covers in its file. |
post_review_status | object または null | 必須 | |
project | object または null | 必須 | The stored project number text, with the project's ID when one matches. |
project_organisation | object または null | 必須 | |
reference_number | string または null | 必須 | |
relevance | number または null | 必須 | 1 is relevant (the default), 0 is irrelevant (the Portal's Irrelevant switch). |
responded_with | string または null | 必須 | The reference of the document that responded to this one (the Portal's Responded With). |
response_date | string または null | 必須 | |
response_due_date | string または null | 必須 | |
revision_number | string または null | 必須 | |
to_contact | object または null | 必須 | |
to_organisation | object または null | 必須 |
UserRef
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
display_name | string | 必須 | |
kind | string: user, system, integration または string | 必須 | |
user_id | string または null | 必須 |