---
title: "Generate a workflow from a brief, template, or blank scaffold"
method: POST
path: "/v1/workflows/generate"
tags: ["workflows"]
---

# Generate a workflow from a brief, template, or blank scaffold

`POST /v1/workflows/generate`

Create a Workflow + one draft revision from a single seed.

``brief`` runs the async compile pipeline (HTTP 202, poll
``GET /workflows/revisions/{revision_id}``); ``template_id`` / ``blank`` seed a
graph synchronously (HTTP 201, LLM-free). Exactly one seed must be provided.

## Headers

- `x-feather-client` string, nullable

## Request body

- WorkflowGenerateRequest — Body for ``POST /workflows/generate``. Exactly one of ``brief`` / ``template_id`` / ``blank`` must be supplied (enforced below; else 422). ``brief`` runs the async compile pipeline; ``template_id`` / ``blank`` seed a graph synchronously (LLM-free).
  - `name` string, required
  - `description` string, nullable
  - `brief` string, nullable
  - `template_id` string, nullable
  - `blank` boolean
  - `kind` 'assistant' | 'component'

## Response `201`

Successful Response

- WorkflowGenerateResponse — Result of ``generate``. ``generation_status`` is the new revision's ``compilation_status`` (``pending`` for a fresh brief, ``succeeded`` for template/blank/cache-hit). ``mode`` echoes which seed ran.
  - `workflow_id` string, uuid, required
  - `revision_id` string, uuid, required
  - `generation_status` string, required
  - `mode` 'brief' | 'template' | 'blank', required

## Other responses

- `202` — brief mode — the compile pipeline was enqueued (poll the revision).
- `400` — Bad request
- `401` — Authentication required
- `422` — Validation Error

---

[API](https://skmtc.net/oneloop-hq/apis/feather-api.md) · [All operations](https://skmtc.net/oneloop-hq/apis/feather-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/oneloop-hq/feather-api/revisions/5a5597ebb2d6/schema)
