Skip to content
dimmiDocs

Workflows and integrations

Publish a workflow

POST/api/v1/workflows/{workflow}/publications

Authorization

Authorizationstringrequired

An API token, sent as Bearer <token>.

Needs the workflows:write ability

Path parameters

workflowstringrequired

Id of the workflow, starting with wf_, such as wf_01jx2m8k4t. Find it with GET /workflows.

Body

application/json
acknowledge_warningsboolean

true publishes despite warnings; set it only after showing them to the person.

draft_hashstring

The draft_hash you reviewed, so a copy changed since is not published.

Maximum length: 64

notestring

What changed, for the history, up to 280 characters.

Maximum length: 280

Response 200

OK
dataobjectrequired
Show child attributes
versionobjectrequired
Show child attributes
created_atstringrequired

When it was created, as an RFC 3339 time, such as 2026-01-31T09:00:00Z.

Format: date-time

idstringrequired

The id of this record. Send it wherever an endpoint asks for this record; never use its name or title in its place.

kindstringrequired

Whether this version talks to the customer or works behind the scenes: customer_facing or background.

notestring | nullrequired

A note the publisher left about this version, up to 280 characters. Null when none was left.

numberintegerrequired

The version's number within its workflow, counting up from 1.

Format: int32

objectstringrequired

The kind of record this is, the same for every record of its kind, such as article.

published_by_member_idstring | nullrequired

Id of the member who published this version, such as mem_.... Null when unknown or the member is gone.

published_viastring | nullrequired

How the version was published, such as session for a person signed in. Null when not recorded.

restored_from_version_idstring | nullrequired

Id of the older version this one was restored from, such as wfv_.... Null when it was not a restore.

specanyrequired

The frozen workflow definition this version holds, as an object. It never changes.

workflow_idstringrequired

Id of the workflow this version belongs to, such as wf_....

workflowobjectrequired
Show child attributes
archivedbooleanrequired

True when the workflow has been archived (deleted).

created_atstringrequired

When it was created, as an RFC 3339 time, such as 2026-01-31T09:00:00Z.

Format: date-time

descriptionstring | nullrequired

A note saying what the workflow is for, up to 500 characters. Null when none is set.

draft_hashstringrequired

Fingerprint of the working copy; it changes whenever the working copy's definition changes.

has_unpublished_changesbooleanrequired

True when the working copy differs from what is live, or nothing has been published yet.

idstringrequired

The id of this record. Send it wherever an endpoint asks for this record; never use its name or title in its place.

kindstringrequired

Whether the workflow talks to the customer or works behind the scenes: customer_facing or background.

live_version_idstring | nullrequired

Id of the published version conversations run on, such as wfv_.... Null when nothing is published.

lock_versionintegerrequired

A number that goes up with each edit; it stops two editors from overwriting each other.

Format: int32

namestringrequired

The workflow's name, 1 to 80 characters.

objectstringrequired

The kind of record this is, the same for every record of its kind, such as article.

paused_atstring | nullrequired

When the workflow was paused. Null when it is not paused.

Format: date-time

positionintegerrequired

The workflow's place in the list, which is also its priority when several workflows want the same conversation; lower first.

Format: int32

published_atstring | nullrequired

When the workflow was last published. Null when it never was.

Format: date-time

reportobject
Show child attributes
errorsobject[] | nullrequired

Problems 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 attributes
codestringrequired

Short code of the problem found in the workflow definition, such as http_raw_url.

fieldstring

The field of the step the problem is in. Left out when it is not about one field.

messagestringrequired

What is wrong, in words.

path_idstring

Id of the path inside the workflow the problem is on. Left out when it is not about one path.

step_idstring

Id of the step inside the workflow the problem is on. Left out when it is not about one step.

warningsobject[] | nullrequired

Issues 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 attributes
codestringrequired

Short code of the problem found in the workflow definition, such as http_raw_url.

fieldstring

The field of the step the problem is in. Left out when it is not about one field.

messagestringrequired

What is wrong, in words.

path_idstring

Id of the path inside the workflow the problem is on. Left out when it is not about one path.

step_idstring

Id of the step inside the workflow the problem is on. Left out when it is not about one step.

specany

The workflow's working copy: its steps and settings as an object. Present only when one workflow is read, left out in lists.

statusstringrequired

Where the workflow stands: draft (never live), live (running on conversations) or paused.

test_on_test_conversationsbooleanrequired

The workflow's setting for running on test conversations, true or false.

triggerstringrequired

The event that starts the workflow, fixed for its life, such as conversation.first_message, message.customer or ticket.created.

updated_atstringrequired

When it last changed, as an RFC 3339 time, such as 2026-01-31T09:00:00Z.

Format: date-time

Response error

Error
codestringrequired

Stable code for programs to tell errors apart, such as validation_failed or internal_error.

errorsobject

Each rejected field mapped to its messages. Only present when the input was invalid.

messagestringrequired

What went wrong, in words safe to show a person.