API to make flows in n8n

We do not have an official API to do that. You can however use the internal one the editor-UI uses:

Locally that would be a POST request to http://locahost:5678/rest/workflows
It then returns the saved workflow with its ID.

You can simply look in the browser what requests gets made and how they look like when a workflow gets created.

But again, it is not an official API. Meaning it can change and so break for you any time.

2 Likes