---
title: "Upload File"
method: POST
path: "/api/files"
tags: ["files"]
---

# Upload File

`POST /api/files`

Upload one file; return opaque AttachmentRef metadata only.

## Headers

- `Authorization` string, nullable
- `X-Fleet-User-Id` string, uuid, nullable
- `X-Fleet-Workspace-Id` string, uuid, nullable

## Response `200`

Successful Response

- AttachmentResponse — Public attachment metadata — no host or Volume paths.
  - `id` string, uuid, required
  - `filename` string, required
  - `content_type` string, nullable
  - `byte_size` integer, required
  - `checksum_sha256` string, required

## Other responses

- `422` — Validation Error

## Changes

- **2026-07-13** `1afc045b25c0` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/qredence/apis/fleet-rlm/changes/api/files/post.md)

---

[API](https://skmtc.dev/qredence/apis/fleet-rlm.md) · [All operations](https://skmtc.dev/qredence/apis/fleet-rlm/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/qredence/fleet-rlm/revisions/e2f60de986eb/schema)
