---
title: "Generate a flow from the flow template"
method: POST
path: "/templates/{id}/generate"
tags: ["templates"]
---

# Generate a flow from the flow template

`POST /templates/{id}/generate`

Creates a flow based on the settings in the flow template. Requires the 'flows.write' permission.

## Path parameters

- `id` string, string, required

## Response `200`

Returns the id and status of the new flow

- object
  - `data` object
    - `id` string
    - `status` string
  - `meta` object

## Other responses

- `400` — Invalid ID format.
- `403` — User is not authorised to create flows.
- `404` — No Flow Template with this id was found.
- `409` — Flow Template is currently not published. Only published flow templates can be used to generate flows.

---

[API](https://skmtc.dev/openintegrationhub/apis/template-repository.md) · [All operations](https://skmtc.dev/openintegrationhub/apis/template-repository/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/openintegrationhub/template-repository/revisions/578d52705c13/schema)
