---
title: "Create workflow definition"
method: POST
path: "/api/v1/workflows/definitions"
tags: ["Workflows"]
---

# Create workflow definition

`POST /api/v1/workflows/definitions`

## Request

- Base URL: `https://numonic.ai`
- URL: `https://numonic.ai/api/v1/workflows/definitions`
- Auth: API key in header `x-api-key`

Store a reusable workflow definition — typically a ComfyUI or n8n execution graph captured from an imported asset. Workflow definitions are the templates; use workflow executions to track individual runs.

## Request body

- CreateWorkflowDefinitionRequest
  - `name` string, required
  - `description` string
  - `version` string, required
  - `workflow_json` object, required: Complete workflow graph JSON
  - `node_count` integer, required
  - `custom_nodes` object
  - `created_by` string, required: Creator identifier
  - `is_active` boolean

## Response `201`

Workflow definition created

- SuccessMessage
  - `message` string, required: Human-readable success message

## Other responses

- `400`: Validation failed

---

[API](https://skmtc.dev/numonic/apis/numonic-api.md) · [All operations](https://skmtc.dev/numonic/apis/numonic-api/llms.txt) · [OpenAPI document](https://skmtc.dev/numonic/apis/numonic-api/revisions/6c559bef1e35?raw)
