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

# Create file

`POST /files/`

Endpoint for creating a new file. Upload a file using multipart/form-data.

## Response `201`

- ApiV1ExternalFileRead
  - `created_ts` string, date-time, required — The timestamp in UTC when the file created
  - `file` string, uri — The actual file content.
  - `file_size` integer, nullable — The size of the file in bytes.
  - `id` string, required — The unique identifier of the file object.
  - `mime_type` string, required — The MIME type of the file.
  - `modified_ts` string, date-time, required — The timestamp in UTC when the file was last modified
  - `original_filename` string — The original filename of the uploaded file.

---

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