---
title: "Create Agent Folder"
method: POST
path: "/v2/teams/{teamId}/agent-folders"
tags: ["Agent Folders"]
---

# Create Agent Folder

`POST /v2/teams/{teamId}/agent-folders`

## Request

- Base URL: `https://api.duvo.ai`
- URL: `https://api.duvo.ai/v2/teams/{teamId}/agent-folders`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/duvo/apis/duvo-public-api/docs/v2/teams/:teamId/agent-folders/post.ts> (a function with typed inputs; its response is checked against the schema)

Create a new agent folder.

## Path parameters

- `teamId` string, required

## Request body

- object
  - `name` string, required: Human-readable folder name
  - `parent_folder_id` string, uuid, nullable: Parent folder ID for nested folders. Omit or null to create at the root level.

## Response `201`

Default Response

- object
  - `folder` object, required
    - `id` string, uuid, required: Unique folder identifier
    - `name` string, required: Human-readable folder name
    - `team_id` string, uuid, required: Team that owns the folder
    - `parent_folder_id` string, uuid, nullable, required: Parent folder ID, or null if at the root level
    - `created_at` string, required: ISO 8601 creation timestamp
    - `updated_at` string, required: ISO 8601 last-updated timestamp

## Other responses

- `400`: Default Response
- `401`: Default Response
- `409`: Default Response
- `500`: Default Response

---

[API](https://skmtc.dev/duvo/apis/duvo-public-api.md) - [All operations](https://skmtc.dev/duvo/apis/duvo-public-api/llms.txt) - [OpenAPI document](https://skmtc.dev/duvo/apis/duvo-public-api/revisions/dafcf3d868a9?raw)
