---
title: "Post a new document (content_type by header + binary data)"
method: POST
path: "/documents"
tags: ["documents"]
---

# Post a new document (content_type by header + binary data)

`POST /documents`

## Headers

- `content_type` string, required

## Response `201`

The document was created

- NewDocumentResponse
  - `document_key` integer, required

---

[API](https://skmtc.net/openrailassociation/apis/osrd-editoast.md) · [All operations](https://skmtc.net/openrailassociation/apis/osrd-editoast/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/openrailassociation/osrd-editoast/versions/1840dbbd64ac/schema)
