---
title: "Create (upload) compliance documents"
method: POST
path: "/compliance/documents"
tags: ["compliance", "documents"]
---

# Create (upload) compliance documents

`POST /compliance/documents`

## Request body

- DocumentsCreateInput
  - `contents_b64` string[], nullable
  - `filenames` string[], nullable

## Response `200`

OK

- DocumentsCreateOutput
  - `data` DocumentsView[], nullable
    - `created_by` string
    - `created_ts` string, date-time
    - `file_name` string
    - `file_size` integer
    - `file_type` string
    - `group_id` string
    - `id` string

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `default` — Error response.

## Changes

- **2026-08-06** `fe2041c5ba86` — 3 info
  - the `data/items/created_by` response's property pattern was changed from `^ind_[0-9a-hjkmnp-tv-z]{26}$` to `^ind_[0-7][0-9a-hjkmnp-tv-z]{25}$` for the status `200`
  - the `data/items/group_id` response's property pattern was changed from `^grp_[0-9a-hjkmnp-tv-z]{26}$` to `^grp_[0-7][0-9a-hjkmnp-tv-z]{25}$` for the status `200`
  - the `data/items/id` response's property pattern was changed from `^doc_[0-9a-hjkmnp-tv-z]{26}$` to `^doc_[0-7][0-9a-hjkmnp-tv-z]{25}$` for the status `200`

[Change history](https://skmtc.dev/stablesea/apis/stable-sea-backend/changes/compliance/documents/post.md)

---

[API](https://skmtc.dev/stablesea/apis/stable-sea-backend.md) · [All operations](https://skmtc.dev/stablesea/apis/stable-sea-backend/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/stablesea/stable-sea-backend/revisions/adba5ad114cf/schema)
