# 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:** 1
**Showing post:** 2

<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 …

---

_[View the full topic](https://discourse.nodered.org/t/how-to-create-new-flow-using-admin-api/62166)._
