GET/workflow/users/{userId}/documents/search
指定したメンバーの決裁文書を検索する。
検索期間 (startTime 〜 endTime) は 13ヶ月未満である必要がある。
検索対象 : タイトル、本文、添付ファイルの内容。
Access Token を指定します。
指定の方法や Access Token の取得方法は 共通仕様 を参照してください。
workflow
workflow.read
| Parameter | Type | Description |
|---|---|---|
| userId | string | ユーザー ID required |
| Parameter | Type | Description |
|---|---|---|
| query | string | 検索語
required minLength : 1 maxLength : 100 example : 出張 |
| startTime | string | 検索の開始日時 (形式: YYYY-MM-DDThh:mm:ssTZD)
required example : 2026-01-01T00:00:00%2B09:00 |
| endTime | string | 検索の終了日時 (形式: YYYY-MM-DDThh:mm:ssTZD)
required example : 2026-12-31T23:59:59%2B09:00 |
| documentFormId | string | 申請フォーマット ID example : 16d11974-7351-4cc9-9eec-52322ff286ee |
| status | string | 文書ステータス
|
| orderBy | string | 並べ替え項目とソート順をスペース (%20) で区切って指定する。
example : createdTime%20desc |
| count | integer | 取得数 default : 20 minimum : 1 maximum : 40 example : 20 format : int32 |
| cursor | string | リストのカーソル値 (URL エンコードする) example : JlIBsfJogXpzDGY8OscZziqZpYqCAu3RbZbaFzBb1od6lWQtSdPUd2FIdCuaGgu8DA== |
| Header | type | Description |
|---|---|---|
| Authorization | string | Bearer {token} required |
OK
| Property | Type | Description |
|---|---|---|
| documents | array (Document) | 検索結果文書リスト |
| responseMetaData | object (responseMetaData) | レスポンスのメタデータ |
| Property | Type | Description |
|---|---|---|
| domainId | integer | ドメイン ID required |
| approvalDocumentId | integer | 決裁文書 ID required |
| documentFormId | string | 申請フォーマット ID required |
| categoryId | integer | カテゴリー ID required |
| documentNumber | string | 文書番号 |
| title | string | タイトル |
| status | string | ステータス
required |
| userId | string | 申請者 ID |
| userName | string | 申請者名 |
| orgUnitId | string | 申請者の組織 ID |
| orgUnitName | string | 申請者の組織名 |
| createdTime | string | 申請日時(形式:YYYY-MM-DDThh:mm:ssTZD) required |
| completedTime | string | 完了日時(形式:YYYY-MM-DDThh:mm:ssTZD) |
| visible | boolean | 文書の公開可否 |
| viewUrl | string | 文書の参照 URL |
| approvalLines | array (ApprovalLine) | 決裁ライン情報 |
| shareType | string | 共有範囲
|
| sharedMembers | array (Shared) | 共有範囲情報 |
| opinionCount | integer | コメントの数 |
| attachmentCount | integer | 添付ファイルの数 |
| relatedDocumentCount | integer | 参考文書の数 |
| recipientCount | integer | このPropertyは利用されていません。 |
| recipients | object | このPropertyは利用されていません。 nullable : true |
| documentBody | object | 決裁文書の作成と読み取り を参照する。 |
| Property | Type | Description |
|---|---|---|
| sequence | integer | 決裁ラインの順序 |
| type | string | 決裁ラインの決裁タイプ
|
| status | string | 決裁処理状態
|
| userId | string | 決裁者 ID |
| userName | string | 決裁者名 |
| orgUnitId | string | 決裁者の組織 ID |
| orgUnitName | string | 決裁者の組織名 |
| approvalTime | string | 決裁日時(形式:YYYY-MM-DDThh:mm:ssTZD) |
| Property | Type | Description |
|---|---|---|
| type | string | 共有先
required |
| id | string | 共有先の ID
required |
| name | string | 共有先の名前
|
| Property | Type | Description |
|---|---|---|
| nextCursor | string | 次のリスト取得時に使用するカーソル値 |
example
1{2 "documents": [3 {4 "domainId": 10000001,5 "approvalDocumentId": 10001,6 "documentFormId": "16d11974-7351-4cc9-9eec-52322ff286ee",7 "categoryId": 10,8 "documentNumber": "2026-CUS001-00001",9 "title": "出張申請",10 "userId": "userf7da-f82c-4284-13e7-030f3b4c756x",11 "userName": "ワークス太郎",12 "status": "APPROVED",13 "createdTime": "2026-03-05T09:00:00+09:00",14 "completedTime": "2026-03-05T10:30:00+09:00",15 "visible": true16 }17 ],18 "responseMetaData": {19 "nextCursor": "JlIBsfJogXpzDGY8OscZziqZpYqCAu3RbZbaFzBb1od6lWQtSdPUd2FIdCuaGgu8DA=="20 }21}Bad Request
Forbidden