Skip to main content
Publishes the current draft as a new production version. This is the same action as Publish 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

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.