Workflows and integrations
Create a workflow
Authorization
AuthorizationstringrequiredAn API token, sent as Bearer <token>.
Needs the workflows:write ability
Body
application/jsondescriptionstringThe description of the workflow, at most 500 characters.
Maximum length: 500
namestringrequiredThe name of the workflow, at most 80 characters.
Maximum length: 80
specanyA whole definition to start from, in the shape GET /workflows/{workflow} returns.
triggerstringconversation.opener, conversation.first_message, conversation.customer_reopened, message.customer, conversation.customer_quiet, conversation.rated, message.teammate, note.created, conversation.assignment_changed, conversation.status_changed, conversation.teammate_quiet, conversation.ai_attribute_changed, dimmi.handed_over, dimmi.resolved, agent.transferred, sla.warning, sla.breached, the ticket triggers or reusable (called from other workflows).
Maximum length: 40
Response 201
CreateddataobjectrequiredShow child attributesHide child attributes
archivedbooleanrequiredTrue when the workflow has been archived (deleted).
created_atstringrequiredWhen it was created, as an RFC 3339 time, such as 2026-01-31T09:00:00Z.
Format: date-time
descriptionstring | nullrequiredA note saying what the workflow is for, up to 500 characters. Null when none is set.
draft_hashstringrequiredFingerprint of the working copy; it changes whenever the working copy's definition changes.
has_unpublished_changesbooleanrequiredTrue when the working copy differs from what is live, or nothing has been published yet.
idstringrequiredThe id of this record. Send it wherever an endpoint asks for this record; never use its name or title in its place.
kindstringrequiredWhether the workflow talks to the customer or works behind the scenes: customer_facing or background.
live_version_idstring | nullrequiredId of the published version conversations run on, such as wfv_.... Null when nothing is published.
lock_versionintegerrequiredA number that goes up with each edit; it stops two editors from overwriting each other.
Format: int32
namestringrequiredThe workflow's name, 1 to 80 characters.
objectstringrequiredThe kind of record this is, the same for every record of its kind, such as article.
paused_atstring | nullrequiredWhen the workflow was paused. Null when it is not paused.
Format: date-time
positionintegerrequiredThe workflow's place in the list, which is also its priority when several workflows want the same conversation; lower first.
Format: int32
published_atstring | nullrequiredWhen the workflow was last published. Null when it never was.
Format: date-time
reportobjectShow child attributesHide child attributes
errorsobject[] | nullrequiredProblems in the workflow's definition that stop it from being published, each with a code, a message and the step, path and field it is about.
Show child attributesHide child attributes
codestringrequiredShort code of the problem found in the workflow definition, such as http_raw_url.
fieldstringThe field of the step the problem is in. Left out when it is not about one field.
messagestringrequiredWhat is wrong, in words.
path_idstringId of the path inside the workflow the problem is on. Left out when it is not about one path.
step_idstringId of the step inside the workflow the problem is on. Left out when it is not about one step.
warningsobject[] | nullrequiredIssues that do not stop a publish but must be acknowledged by the publisher, each with a code, a message and the step it is about.
Show child attributesHide child attributes
codestringrequiredShort code of the problem found in the workflow definition, such as http_raw_url.
fieldstringThe field of the step the problem is in. Left out when it is not about one field.
messagestringrequiredWhat is wrong, in words.
path_idstringId of the path inside the workflow the problem is on. Left out when it is not about one path.
step_idstringId of the step inside the workflow the problem is on. Left out when it is not about one step.
specanyThe workflow's working copy: its steps and settings as an object. Present only when one workflow is read, left out in lists.
statusstringrequiredWhere the workflow stands: draft (never live), live (running on conversations) or paused.
test_on_test_conversationsbooleanrequiredThe workflow's setting for running on test conversations, true or false.
triggerstringrequiredThe event that starts the workflow, fixed for its life, such as conversation.first_message, message.customer or ticket.created.
updated_atstringrequiredWhen it last changed, as an RFC 3339 time, such as 2026-01-31T09:00:00Z.
Format: date-time
Response error
ErrorcodestringrequiredStable code for programs to tell errors apart, such as validation_failed or internal_error.
errorsobjectEach rejected field mapped to its messages. Only present when the input was invalid.
messagestringrequiredWhat went wrong, in words safe to show a person.