Skip to main content

List the emails a workflow sent and how far each got.

GET/api/v1/workflows/{workflow_id}/distributionsworkflows:read

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.

Scopeworkflows:read
AsynchronousNo
MCP toollist_workflow_distributions
Portal permissionsview_workflow_details, view_workflow_distribution_progress
Pagingkeyset
Default orderdistribution_id
Sort fieldsdistribution_id
Filtersworkflow_item_id

Parameters​

NameInTypeRequiredDescription
workflow_idpathstringRequired
limitqueryintegerOptionalDefault: 50; ≥ 1
cursorquerystringOptional
sortquerystringOptionalComma-separated sort fields, - for descending.
workflow_item_idqueryarray of stringOptional
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 DistributionRequired
next_cursorstring or nullRequired
warningsarray of objectRequired

Errors​

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

Schemas​

Distribution​

FieldTypeRequiredDescription
distribution_idstringRequired
receiverstring or nullRequiredThe receiver's email address.
sent_atstring (date-time) or nullRequired
statusstringRequiredpending, sent, delivered, opened, clicked, temporary_failure or failed (open enum): the furthest stage the email reached unless a failure still stands.
workflow_item_idsarray of stringRequiredThe items of the workflow the email was about.