---
title: "Upload small file"
method: POST
path: "/api/v1/files"
tags: ["Files"]
deprecated: true
---

# Upload small file

`POST /api/v1/files`

## Request

- Base URL: `https://api.studio.kaitoi.io` (the document declares no server; this is the origin it was published from)
- URL: `https://api.studio.kaitoi.io/api/v1/files`
- Auth: HTTP bearer

> **Deprecated.**

Small-file convenience upload. This route is capped at 25 MB and is deprecated for developer-platform use; prefer POST /files/uploads.

## Headers

- `Idempotency-Key` string, nullable
- `authorization` string, nullable

## Response `201`

Uploaded file metadata.

- PublicFileDetail
  - `fileId` string, required: Stable file identifier for REST API inputs and outputs.
  - `filename` string, required: Original filename supplied by the developer.
  - `contentType` string, required: Detected or supplied media type.
  - `sizeBytes` integer, required: Stored file size in bytes.
  - `externalId` string, nullable: Developer-provided external file identifier.
  - `externalUserId` string, nullable: Developer-provided end-user identifier.
  - `externalWorkspaceId` string, nullable: Developer-provided workspace/team identifier.
  - `createdAt` string, date-time, required: Upload timestamp.
  - `updatedAt` string, date-time, required: Last metadata update timestamp.

## Other responses

- `400`: The uploaded file is empty or invalid.
- `401`: Missing, malformed, expired, or revoked bearer token.
- `403`: The API key lacks the required scope or account capability.
- `409`: The Idempotency-Key conflicts with a different request.
- `413`: The uploaded file exceeds the per-request size limit.
- `422`: Validation Error
- `429`: The client or API key exceeded the REST API rate limit.
- `503`: The shared REST API rate limiter is temporarily unavailable.
- `507`: The upload would exceed the account storage limit.

---

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