dify icon indicating copy to clipboard operation
dify copied to clipboard

Create, execute and delete workflow using API

Open XU-Nuo opened this issue 10 months ago • 7 comments

Self Checks

  • [x] I have searched for existing issues search for existing issues, including closed ones.
  • [x] I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [x] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • [x] Please do not modify this template :) and fill in all the required fields.

1. Is this request related to a challenge you're experiencing? Tell me about your story.

I am using llm to craete workflow dsl for me, so the whole lifecycle of a workflow (create, execute and delete) can be controlled over API endpoints, in other word, use dify itself as an agent. But I found dify workflow APIs are not officially supported, and I have to use Bearer token from a login session to use these api. If this can be done, I think we can have (or partially have) a fully automatic agent workflow similar to Manus

2. Additional context or comments

The apis are already there like: https://cloud.dify.ai/console/api/apps/imports https://cloud.dify.ai/console/api/apps/id/workflows/publish https://cloud.dify.ai/console/api/apps/id/api-keys DELET https://cloud.dify.ai/console/api/apps/id Maybe we can expose more components of dify using a system api key for eaiser access.

3. Can you help us with this feature?

  • [ ] I am interested in contributing to this feature.

XU-Nuo avatar Mar 07 '25 03:03 XU-Nuo

+1 It would be helpful to create a custom app in make.com or zapier.

meng-tsai avatar Mar 26 '25 20:03 meng-tsai

Hi, @XU-Nuo. I'm Dosu, and I'm helping the Dify team manage their backlog. I'm marking this issue as stale.

Issue Summary

  • You requested enhancements to the Dify platform's API for full workflow lifecycle management.
  • The request includes creating, executing, and deleting workflows with a system API key.
  • User meng-tsai supports this for integration with platforms like make.com or Zapier.
  • User d8rt8v reacted positively to meng-tsai's comment.
  • The issue remains unresolved.

Next Steps

  • Please confirm if this issue is still relevant to the latest version of Dify by commenting here.
  • If there is no further activity, the issue will be automatically closed in 15 days.

Thank you for your understanding and contribution!

dosubot[bot] avatar Apr 26 '25 16:04 dosubot[bot]

We are still waiting for this feature

XU-Nuo avatar Apr 27 '25 01:04 XU-Nuo

@crazywoola, the user @XU-Nuo has confirmed that they are still waiting for the enhancements to the Dify platform's API for full workflow lifecycle management. Could you please assist them with this issue?

dosubot[bot] avatar Apr 27 '25 01:04 dosubot[bot]

+1 I wish we could have an API to create and modify workflows exposed

mendybraun avatar May 05 '25 01:05 mendybraun

@crazywoola any plans for this feature?

mendybraun avatar May 18 '25 15:05 mendybraun

+1 I also hope that the "workflow API" includes updating the workflow. Then it's possible to build an MCP server to create workflow, like this: https://github.com/leonardsellem/n8n-mcp-server

jackyckma avatar Jun 04 '25 23:06 jackyckma

Nope, Afaik, we do not have a plan for this.

crazywoola avatar Jul 07 '25 02:07 crazywoola

很需要这个,能够通过API进行对工作六点创建、删除

luoyonghuan avatar Aug 06 '25 09:08 luoyonghuan