---
title: "Upload"
method: POST
path: "/public_api/workspace_files"
tags: ["Files"]
---

# Upload

`POST /public_api/workspace_files`

This endpoint allows you to upload a file to the workspace.
You can use this endpoint to upload a file and get the id of the file to use as an input in an app.

## Response `200`

File uploaded successfully

- object
  - `id` integer — The id of the file, you can use this id as an app's input
  - `created_at` string, date-time
  - `updated_at` string, date-time

## Other responses

- `401` — Authentication error'

---

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