List the emails a workflow sent and how far each got.
Each email the workflow sent out, oldest first by distribution_id: the receiver, the items it was about, when it was sent and its delivery status (pending, sent, delivered, opened, clicked, temporary_failure or failed). workflow_item_id keeps the emails about one item. A workflow you may open.
| |
|---|
| Scope | workflows:read |
| Asynchronous | No |
| MCP tool | list_workflow_distributions |
| Portal permissions | view_workflow_details, view_workflow_distribution_progress |
| Paging | keyset |
| Default order | distribution_id |
| Sort fields | distribution_id |
| Filters | workflow_item_id |
Parameters
| Name | In | Type | Required | Description |
|---|
workflow_id | path | string | Required | |
limit | query | integer | Optional | Default: 50; ≥ 1 |
cursor | query | string | Optional | |
sort | query | string | Optional | Comma-separated sort fields, - for descending. |
workflow_item_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 Distribution | Required | |
next_cursor | string or null | Required | |
warnings | array of object | Required | |
Errors
The problem codes this operation can answer with. Each code links to its page.
Schemas
Distribution
| Field | Type | Required | Description |
|---|
distribution_id | string | Required | |
receiver | string or null | Required | The receiver's email address. |
sent_at | string (date-time) or null | Required | |
status | string | Required | pending, sent, delivered, opened, clicked, temporary_failure or failed (open enum): the furthest stage the email reached unless a failure still stands. |
workflow_item_ids | array of string | Required | The items of the workflow the email was about. |