Skip to main content
Publishes the current draft as a new production version. This is the same action as Deploy in the builder. The new version becomes active, scheduled and webhook triggers start, and the workflow is marked ACTIVE.

Base URL

Dedicated deploymentsReplace api.langdock.com with <your-deployment-url>/api/public in all requests.

Required scopes

This endpoint requires the WORKFLOW_WRITE_API scope (Workflow Write API) and editor access.

Parameters

Versions

Versions are numbered major.minor, for example 1.3, then 1.4 or 2.0, counted from the highest published version. Older three-part versions such as 1.2.3 stay valid.
  • There are no patch releases. patch is accepted and publishes the next minor version, like minor.
  • Until the workflow is shared with users, every publish creates the next major version, whatever bumpType says.
  • Once it’s shared with users, minor is an Addition that users get automatically, and major is a Breaking change they update to manually. A publish that adds a step where each person connects their own account must use major. Otherwise it’s rejected with WORKFLOW_MAJOR_VERSION_REQUIRED.
  • A major publish notifies users on an older major version that an update is available.
  • Once it’s shared with users, every publish needs at least one connection that each person sets up, unless the workflow has a Meeting End trigger. A publish where every connection is shared for everyone is rejected with WORKFLOW_PUBLISH_REQUIRES_BYOC, even with confirmModeChange: true.
  • A publish that switches the workflow between personal and shared connections is rejected with 409 WORKFLOW_MODE_CHANGE_CONFIRMATION_REQUIRED. Send it again with confirmModeChange: true.
To find out more about shared workflows, see Shared Workflows.

First publish name

The first publish needs a name, because publishing makes the workflow visible to others. If the workflow has no name yet, the first publish is rejected with 400 WORKFLOW_NAME_REQUIRED. A workflow created in the builder counts as unnamed until someone renames it. Send name in the request, or set it first with update. There’s no automatic fallback name.

Other rejections

Publish is rejected when the draft has a disconnected trigger, when a webhook is unauthenticated and the workspace requires webhook auth, or when the workflow is a template. Pause a live workflow with update and status: "INACTIVE".

Example

Response format

Success response (200 OK)

workflow matches the object on Workflow API Overview.

Error handling

Langdock intentionally blocks browser-origin requests to protect your API key and ensure your applications remain secure. For more information, please see our guide on API Key Best Practices.