Base URL
Required scopes
This endpoint requires theWORKFLOW_WRITE_API scope (Workflow Write API). The key user also needs the createWorkflows permission.
shareWith requires the shareWorkflows permission. An unknown target, or a group the key user can’t share with, fails the request with 404. Workspace admins can share with any group of the workspace, everyone else only with groups they are a member of. A group the key user can share with that has Allow sharing with this group turned off fails the request with 403 and GROUP_SHARING_DISABLED. In both cases the workflow is not created.Parameters
The graph uses the same node and edge schema as the workflow builder. Templates cannot be created through this API.
Example
Response format
Success response (200 OK)
workflow matches the object on Workflow API Overview. Without shareWith, only the key (and workspace admins in governance) can see the draft until it is shared.
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.