Skip to main content
Returns a workflow the API key user can access. The response depends on the key user’s role. Editors and owners get the draft graph, the published graph when one exists, version history, and execution limits. Keys with User access get a summary.

Base URL

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

Required scopes

This endpoint requires the WORKFLOW_API scope (Workflow Read API).

Parameters

Example

Response format

Success response (200 OK)

For editor and owner access, workflow matches the object on Workflow API Overview, with accessRole set to editor or owner. Workspace admin identities report owner. Secret-like fields are redacted. Sending that redacted graph back through update keeps the stored secrets.

User access

A key whose user has only User access on a shared workflow gets a summary that identifies the workflow without showing how it’s built or capped. nodes, edges, versionId, version, versions, and limits are omitted, not returned empty.
activeVersion is null before the first publish.

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.