List the workflows the caller can see.
The workflows in the Inbox's view of the caller, newest first, cancelled ones left out (include_cancelled lists them too). status_filter selects open_for_me, sent or outstanding; template_id matches any of its template's versions; template_name matches the template's name; started_at_from and started_at_to bound when it started; created_by_id is who started it; document_id lists the workflows a document is in (a document you may read); action_request_type_id lists the workflows where an open request of that type is yours (addressed to you, to a group of yours, or passed on by you). sort by subject, started_at or due_at as well as workflow_id. include=total_count adds total_count, the number of workflows the filters match: status_filter=open_for_me with it is the number the Inbox badge shows (the workflows waiting on you).
| |
|---|
| Scope | workflows:read |
| Asynchronous | No |
| MCP tool | list_workflows |
| Paging | keyset |
| Default order | -workflow_id |
| Sort fields | workflow_id, subject, started_at, due_at |
| Filters | status_filter, template_id, template_name, started_at, started_at_from, started_at_to, started_at_is_null, created_by_id, document_id, action_request_type_id |
Parameters
| Name | In | Type | Required | Description |
|---|
search | query | string or null | Optional | Workflows whose subject, or the description of a document they involve that you may read, contains this text, without regard to case. |
include_cancelled | query | boolean or null | Optional | true also lists the workflows that were cancelled (the Document Details Workflows tab does); ignored with status_filter. Default false. |
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. |
status_filter | query | array of string | Optional | |
template_id | query | array of string | Optional | |
template_name | query | array of string | Optional | |
started_at | query | array of string (date-time) | Optional | |
started_at_from | query | string (date-time) | Optional | |
started_at_to | query | string (date-time) | Optional | |
started_at_is_null | query | boolean | Optional | |
created_by_id | query | array of string | Optional | |
document_id | query | array of string | Optional | |
action_request_type_id | query | array of string | 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 Workflow | 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
UserRef
| Field | Type | Required | Description |
|---|
display_name | string | Required | |
kind | string: user, system, integration or string | Required | |
user_id | string or null | Required | |
Workflow
| Field | Type | Required | Description |
|---|
due_at | string (date-time) or null | Required | |
is_cancelled | boolean | Required | |
is_completed | boolean | Required | |
open_action_count | integer | Required | ≥ -2147483648; ≤ 2147483647 |
open_action_count_for_me | integer | Required | ≥ -2147483648; ≤ 2147483647 |
recipients | array of WorkflowRecipient | Required | Who the workflow was sent to (its recipients): the people and groups it shows to, beside the requests it sends them. |
started_at | string (date-time) or null | Required | |
started_by | UserRef | Required | |
status | string | Required | cancelled, failed, in_progress, completed or pending (open enum). |
subject | string | Required | |
template_name | string or null | Required | |
workflow_id | string | Required | |
workflow_template_version_id | string or null | Required | The version of the template the workflow runs. |
WorkflowRecipient
| Field | Type | Required | Description |
|---|
group_id | string or null | Required | |
type | string | Required | user, group or unknown (open enum). |
type_code | string or null | Required | The stored type code, for an unknown recipient type; null otherwise. |
user | UserRef or null | Required | |