# How to create new flow using admin API

**URL:** <https://discourse.nodered.org/t/how-to-create-new-flow-using-admin-api/62166>\
**Category:** General\
**Created:** [4 May 2022 10:01 UTC](https://discourse.nodered.org/t/how-to-create-new-flow-using-admin-api/62166 "2022-05-04T10:01:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![arminder.lubana](https://avatars.discourse-cdn.com/v4/letter/a/b9e5f3/32.png) [@arminder.lubana](https://discourse.nodered.org/u/arminder.lubana)\
**Post date:** [4 May 2022 10:01 UTC](https://discourse.nodered.org/t/how-to-create-new-flow-using-admin-api/62166/1 "2022-05-04T10:01:32Z")

</div>

Hi all,

Can anybody guide me how to create a new flow using admin API and what is minimal required information to create it.

---

<div class="post-metadata">

**Author:** ![UnborN](https://avatars.discourse-cdn.com/v4/letter/u/4491bb/32.png) [@UnborN](https://discourse.nodered.org/u/UnborN)\
**Post date:** [4 May 2022 12:15 UTC](https://discourse.nodered.org/t/how-to-create-new-flow-using-admin-api/62166/2 "2022-05-04T12:15:29Z")

</div>

Hello .. there are a few examples on the forum of how to use the admin API to POST a new Flow.

here is a link of a conversation i took part in .. hope you find it useful

> [@How can I programmatically generate nodes in a flow?](https://discourse.nodered.org/t/how-can-i-programmatically-generate-nodes-in-a-flow/53267):
>
> I've done a search and the answer is pretty much no but in the spirit of the truly lazy programmer I will again ask! wink I know you must hate this question but I'm interested in adding a set of nodes (mqtt topic and a button). I can build a json template file of the 3 nodes from an existing node set. Modify the json so it's easy to regexp but the tricky part is adding it to an existing flow (or a new flow if that's easier) then deploying it, all programmatically. Are there any APIs for the …

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [3 July 2022 12:16 UTC](https://discourse.nodered.org/t/how-to-create-new-flow-using-admin-api/62166/3 "2022-07-03T12:16:14Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
