Base URL
API key scopes
Workflow access is split into three scopes. A key can hold any combination of them.
Create a workspace API key under Settings > Workspace > Products > API. A personal API key can include Workflow Read API, and Workflow Write API when your admin allows it. Workflow Deletion API cannot be granted on a personal key. See Personal API keys.
The API runs as the key’s configured user. Workspace keys run as a service account. Personal keys run as their owner.
Available endpoints
Paginated runs (
/workflows/v1/runs) return run objects with node executions, filters such as runMode, and a cursor. Flattened export (/workflows/{workflowId}/runs) returns date-bounded rows, is not paginated, and is capped at 10,000 runs.
Workflow object
Create, update, and publish return the same workflow object. Get returns it to keys with editor or owner access. Keys with only User access get a summary instead.accessRole is the key user’s role on the workflow. Workspace admin identities report owner. nodes and edges are the draft graph (version 0). activeVersion is the published graph when one exists. Secret-like fields such as webhook secrets are redacted. Sending a redacted graph back in an update keeps the stored secrets.
Permissions
Created workflows stay private to the key until you pass
shareWith or someone shares them later. Workspace admins can share a workflow with an active workspace API key from Share. Use Search people, groups and API keys to find the key. Personal keys are not share targets because they already act as their owner.
Templates cannot be created, listed, published, or rerun through this API.
Shared workflows and versions
Workflows can be shared with the User role so people run them with their own accounts. See Shared Workflows. For the API this means:- Versions are numbered
major.minor, for example1.3, then1.4or2.0. Older three-part versions such as1.2.3stay valid. - Until a workflow is shared with users, every publish creates the next major version. After that,
minoris an Addition andmajoris a Breaking change. See Publish a workflow. - Runs that used someone’s personal connections are private. List workflow runs never returns another person’s private runs.
- You can’t grant User access on create. Publish the workflow first, then share it from Share, where you pick which connections each person sets up themselves.
Rate limits
The Workflow API follows standard API rate limits. If you exceed the limit, you receive a429 response. Wait and retry with exponential backoff.
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.