---
title: "Upload an attachment"
method: POST
path: "/upload"
tags: ["Attachments"]
---

# Upload an attachment

`POST /upload`

Uploads an attachment

## Response `201`

Attachment

- FileUploadResponse — Document attachment
  - `original` string, uri, required — URL of the attachment
  - `preview` string[] — If the original is a document, this field will hold an list URL with image previews of each page

## Other responses

- `400` — Bad Request
- `401` — Unauthorized

---

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