---
title: "Upload a document"
method: POST
path: "/v1/upload/document"
tags: ["internal"]
---

# Upload a document

`POST /v1/upload/document`

## Request

- Base URL: `https://api.companydata.dk` (the document declares no server; this is the origin it was published from)
- URL: `https://api.companydata.dk/v1/upload/document`
- Auth: HTTP bearer

Upload a document file (PDF only). Max 10MB.

## Response `200`

Successful Response

- UploadResponse: Response for successful upload.
  - `url` string, required

## Other responses

- `400`: Invalid file
- `413`: File too large
- `422`: Validation Error

---

[API](https://skmtc.dev/companydata/apis/companydata-dk-api.md) · [All operations](https://skmtc.dev/companydata/apis/companydata-dk-api/llms.txt) · [OpenAPI document](https://skmtc.dev/companydata/apis/companydata-dk-api/revisions/1cc6c361ae64?raw)
