---
title: "Upload File"
method: POST
path: "/v1/projects/{project_id}/data/upload"
tags: ["data-input"]
---

# Upload File

`POST /v1/projects/{project_id}/data/upload`

Upload a file for processing.

Accepts any file type - the format detection agent will determine how to parse it.

## Path parameters

- `project_id` string, required

## Response `200`

Successful Response

- DataInputResponse — Response after data input is accepted.
  - `input_id` string, required — Unique identifier for this input
  - `input_type` string, required — Type of input (file, url, paste, webhook)
  - `source_name` string, nullable — Name of the data source
  - `detected_format` string, nullable — Detected format (if available)
  - `size_bytes` integer, required — Size of the input in bytes
  - `preview` object, nullable — Preview of the data
  - `status` string — Processing status
  - `created_at` string, date-time

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/ontora/apis/ontora-api.md) · [All operations](https://skmtc.dev/ontora/apis/ontora-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/ontora/ontora-api/revisions/7f57037fd94b/schema)
