---
title: "Upload a document"
method: POST
path: "/documents"
tags: ["Documents"]
---

# Upload a document

`POST /documents`

## Request

- Base URL: `https://dataroom.corgi.com/api/v1`
- URL: `https://dataroom.corgi.com/api/v1/documents`
- Auth: HTTP bearer

Send `multipart/form-data` (`file`, `name?`, `folderId?`) or JSON `{ name, contentBase64, contentType?, folderId? }`. Max 100 MB. Requires a `Content-Length` header. Scope: `documents:write`.

## Request body

- object
  - `name` string, required
  - `contentBase64` string, required
  - `contentType` string
  - `folderId` string

## Response `201`

Created

## Other responses

- `411`: Content-Length required
- `413`: Too large

---

[API](https://skmtc.dev/corgi/apis/dataroom-api.md) - [All operations](https://skmtc.dev/corgi/apis/dataroom-api/llms.txt) - [OpenAPI document](https://skmtc.dev/corgi/apis/dataroom-api/revisions/73f75ef04a00?raw)
