---
title: "Upload files"
method: POST
path: "/contracts/{contract_id}/files"
tags: ["Contract - Files"]
---

# Upload files

`POST /contracts/{contract_id}/files`

Use this endpoint to add multiple attachments or a single PDF document to a contract. See [here](https://developer.oneflow.com/docs/create-a-contract-with-a-pdf) for more information.

## Path parameters

- `contract_id` integer, required

## Headers

- `x-oneflow-api-token` string, required
- `x-oneflow-user-email` string, email, required

## Response `200`

Returns the uploaded contract files.

- object — A collection of uploaded contract files.
  - `count` integer, required
  - `data` object[], required
    - `id` integer, required

## Other responses

- `400` — Invalid format or content of the request.
- `403` — The request is not authorized by the server.
- `404` — A required entity is missing.
- `409` — A conflict occurred with the current state of the target resource.

---

[API](https://skmtc.net/oneflow/apis/public-api-for-oneflow.md) · [All operations](https://skmtc.net/oneflow/apis/public-api-for-oneflow/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/oneflow/public-api-for-oneflow/versions/0e73a45dec15/schema)
