---
title: "Create a folder"
method: POST
path: "/client/files/folders"
tags: ["Files"]
---

# Create a folder

`POST /client/files/folders`

## Request

- Base URL: `https://api.atako.ai`
- URL: `https://api.atako.ai/client/files/folders`
- Auth: HTTP bearer

## Request body

- object
  - `name` string, required
  - `parentId` string, uuid
  - `agentTag` string, uuid: Tags the folder as belonging to an agent's dedicated space.

## Response `201`

- FileNode
  - `id` string, uuid, required
  - `clientId` string, uuid, required
  - `parentId` string, uuid, nullable
  - `type` 'folder' | 'file', required
  - `name` string, required
  - `storagePath` string, nullable
  - `mimeType` string, nullable
  - `fileSize` integer, nullable
  - `agentTag` string, uuid, nullable
  - `uploadSource` 'client' | 'agent', nullable
  - `createdAt` string, date-time, required
  - `updatedAt` string, date-time

## Other responses

- `400`: name required
- `401`: Missing, malformed, or invalid bearer token / API key, or revoked session (SESSION_REVOKED).
- `404`: parentId not found/owned, or agentTag not owned.

---

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