---
title: "endpoint for uploading documents"
method: POST
path: "/create-documents"
tags: ["Document"]
---

# endpoint for uploading documents

`POST /create-documents`

` Use this endpoint to create 1 or multiple document records within our system and use 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.net/cargomatic/apis/cargomatic-public-api.md) · [All operations](https://skmtc.net/cargomatic/apis/cargomatic-public-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/cargomatic/cargomatic-public-api/revisions/4aa7f4326443/schema)
