---
title: "Create a file"
method: POST
path: "/files"
tags: ["Files"]
---

# Create a file

`POST /files`

Creates a file from a multipart upload at the requested project path, generating a unique path when that path already exists.

## Response `201`

File created

- CreateFileResponse
  - `file` FileReference, required
    - `projectId` string, uuid, required — Project that contains the file.
    - `path` string, required — File path within the project.

## Other responses

- `400` — Validation error
- `401` — Unauthorized
- `403` — Insufficient permissions
- `404` — Project not found
- `409` — Project is suspended
- `413` — File too large
- `429` — Rate limit exceeded

---

[API](https://skmtc.net/deepnote/apis/deepnote-public-api.md) · [All operations](https://skmtc.net/deepnote/apis/deepnote-public-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/deepnote/deepnote-public-api/revisions/726970fd2992/schema)
