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 or unshareable target fails the request with 404 and 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.