---
title: "Upload document"
method: POST
path: "/v1/formations/{id}/documents"
tags: ["Documents"]
---

# Upload document

`POST /v1/formations/{id}/documents`

## Request

- Base URL: `https://api.offshoreproz.com`
- URL: `https://api.offshoreproz.com/v1/formations/{id}/documents`
- Auth: HTTP bearer

Upload a document for a formation. Stored in R2 under `agent-api/formations/{id}/`.

## Path parameters

- `id` string, required

## Response `201`

Document uploaded

- object
  - `data` object
    - `id` string
    - `type` string
    - `size` integer
  - `request_id` string

## Other responses

- `401`: Unauthorized — invalid or missing API key
- `404`: Not found

---

[API](https://skmtc.dev/offshoreproz/apis/offshoreproz-agent-api.md) · [All operations](https://skmtc.dev/offshoreproz/apis/offshoreproz-agent-api/llms.txt) · [OpenAPI document](https://skmtc.dev/offshoreproz/apis/offshoreproz-agent-api/revisions/13026c827538?raw)
