---
title: "CreateWorkflowBody"
description: "Request body for creating a Workflow."
section: "Reference"
group: "Types"
order: 266
---

## Definition

```ts
interface CreateWorkflowBody {
  workspaceId: string;
  name: string;
  description?: string | undefined;
  inputSchema?: Record<string, unknown> | undefined;
  outputSchema?: Record<string, unknown> | undefined;
}
```

## Fields

| Field          | Type                                   | Notes                                                  |
| -------------- | -------------------------------------- | ------------------------------------------------------ |
| `workspaceId`  | `string`                               | `required` — Workspace that will own the new workflow. |
| `name`         | `string`                               | `required` — Workflow name                             |
| `description`  | `string \| undefined`                  | `optional` — Workflow description                      |
| `inputSchema`  | `Record<string, unknown> \| undefined` | `optional` — Zod-shaped input schema.                  |
| `outputSchema` | `Record<string, unknown> \| undefined` | `optional` — Zod-shaped output schema.                 |
