---
title: "Upload File"
method: POST
path: "/sdk/v1.0/files/upload"
tags: ["SDK"]
---

# Upload File

`POST /sdk/v1.0/files/upload`

Upload a file to project storage.

The metadata should be a JSON string containing:
- folder: Array of folder names for organizing files
- custom_metadata: Object with custom key-value pairs

## Query parameters

- `project_id` string, uuid, nullable — The unique identifier of the project

## Response `201`

Successful Response

- FileInfoResponse — Response model for file information.
  - `id` string, uuid, required — The unique identifier of the uploaded file
  - `name` string, required
  - `size` integer, required — File size in bytes
  - `content_type` string, required
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required
  - `path` string[], required — Folder path as array of tokens
  - `metadata` object

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/rebolt/apis/fastapi.md) · [All operations](https://skmtc.dev/rebolt/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/rebolt/fastapi/revisions/ee5884f323f3/schema)
