Skip to main content

Post a message to a workflow.

POST/api/v1/workflows/{workflow_id}/messagesworkflows:manage

Posts to everyone who can see the workflow, on one of its items (workflow_item_id, required when it has several). mention_emails notify active users by email after the message is saved. Attach files afterwards with create_workflow_message_attachment.

Scopeworkflows:manage
AsynchronousNo
MCP toolcreate_workflow_message
Portal permissionscreate_workflow_messages

Parameters​

NameInTypeRequiredDescription
workflow_idpathstringRequired
Docwize-Versionheaderstring (date)Optional
Idempotency-KeyheaderstringOptionalmax 255

Request body​

Content typeType
application/jsonWorkflowMessagePostInput

Responses​

StatusDescriptionBody
201Success.application/json WorkflowMessage or object
400invalid_version, malformed_jsonapplication/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
409idempotency_in_progressapplication/problem+json Problem
413payload_too_largeapplication/problem+json Problem
415unsupported_media_typeapplication/problem+json Problem
421wrong_regionapplication/problem+json Problem
422idempotency_key_reused, validation_failedapplication/problem+json Problem
500internal_errorapplication/problem+json Problem
503tenant_unavailable, unavailableapplication/problem+json Problem
504timeoutapplication/problem+json Problem

Errors​

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

Schemas​

UserRef​

FieldTypeRequiredDescription
display_namestringRequired
kindstring: user, system, integration or stringRequired
user_idstring or nullRequired

WorkflowMessage​

FieldTypeRequiredDescription
attachmentsarray of stringRequiredThe attachments' file names; list_workflow_message_attachments gives their IDs.
from_callerbooleanRequired
is_privatebooleanRequired
reply_to_workflow_message_idstring or nullRequired
senderUserRefRequired
sent_atstring (date-time) or nullRequired
subjectstringRequired
textstringRequired
workflow_idstringRequired
workflow_item_idstring or nullRequired
workflow_message_idstringRequired

WorkflowMessagePostInput​

FieldTypeRequiredDescription
mention_emailsarray of stringOptionalActive users to notify by email.
messagestringRequired
reply_to_workflow_message_idstring or nullOptional
workflow_item_idstring or nullOptionalThe item the message is on; required when the workflow has several.