---
title: "Add Document"
method: POST
path: "/documents"
tags: ["documents"]
---

# Add Document

`POST /documents`

## Response `201`

Successful Response

- string, uuid

## Other responses

- `400` — Bad Request
- `403` — Forbidden
- `404` — Not Found
- `409` — Conflict
- `422` — Unprocessable Content
- `500` — Internal Server Error

## Changes

- **2026-08-24** `ca32894f988c` — 1 breaking, 1 info
  - the `file_data/anyOf[subschema #1]/` request property contentMediaType changed from `` to `application/octet-stream`
  - the `file_data/anyOf[subschema #1]/` request property type/format was generalized from `string`/`binary` to `string`/``

[Change history](https://skmtc.dev/hf/apis/extralit-v1/changes/documents/post.md)

---

[API](https://skmtc.dev/hf/apis/extralit-v1.md) · [All operations](https://skmtc.dev/hf/apis/extralit-v1/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/hf/extralit-v1/revisions/ca32894f988c/schema)
