---
title: "Uploads and stores document"
method: POST
path: "/documents"
tags: ["Document"]
---

# Uploads and stores document

`POST /documents`

Uploads and stores document in a repository. Gives back Url encoded document path in the repository

## Request body

- DocumentDocumentUploadRequest
  - `fileName` string, required
  - `content` string, required — Needs to be Base64 encoded
  - `group` string, required — Use to group documents together. Combination of group+filename should be unique else the files will be overwritten

## Response `201`

Created

- DocumentDocumentResponse
  - `path` string
  - `fileName` string

## Other responses

- `400` — Validation errors

---

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