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

# Uploads documents

`POST /create-documents`

Use this endpoint to create one or more document records within our system. Use the presigned URLs returned in the response to upload the actual files to our secure S3 buckets.

## Request body

- object[]
  - `entity` string
  - `entityId` string
  - `referenceNumbers` string[]
  - `type` string
  - `name` string
  - `contentType` string

## Response `200`

Status Code 200: Successful Response - the request was successful!

- object[]
  - `originalFileName` string
  - `presignedUrl` string

## Other responses

- `400` — Status Code 400: Bad Request Response - the request header and/or body is invalid
- `500` — Status Code 500: Internal Server Error Response - there's a problem with the Public API service

---

[API](https://skmtc.dev/cargomatic/apis/cargomatic-public-api.md) · [All operations](https://skmtc.dev/cargomatic/apis/cargomatic-public-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/cargomatic/cargomatic-public-api/revisions/f9a170e1fd72/schema)
