---
title: "Register Agentflow"
method: POST
path: "/api/agentflows/register-flow"
tags: ["agentflows"]
---

# Register Agentflow

`POST /api/agentflows/register-flow`

## Request body

- AgentFlowCreate
  - `name` string, required
  - `description` string, required
  - `flow` Flow[], required
    - `agent_id` string, required

## Response `200`

Successful Response

- AgentFlowDTO
  - `name` string, required
  - `description` string, required
  - `flow` Flow[], required
    - `agent_id` string, required
  - `id` union, required
    - string, uuid
    - string
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/genai-works-org/apis/genai-backend.md) · [All operations](https://skmtc.net/genai-works-org/apis/genai-backend/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/genai-works-org/genai-backend/versions/b995ea35626b/schema)
