---
title: "Create a file node (before uploading)"
method: POST
path: "/client/files/nodes"
tags: ["Files"]
---

# Create a file node (before uploading)

`POST /client/files/nodes`

## Request

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

## Request body

- object
  - `name` string, required
  - `parentId` string, uuid
  - `agentTag` string, uuid
  - `fileSize` integer: Size of the file about to be uploaded, in bytes. When sent, a file above the drive limit (50 MiB) is refused with 413 before any node is created.

## 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.
- `413`: FILE_TOO_LARGE — fileSize above the 50 MiB drive limit; no node created.

---

[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)
