---
title: "Upload a PDF document for a specific insurance contract"
method: POST
path: "/v2/insurance_contracts/{id}/attachments"
tags: ["Insurance Contracts"]
---

# Upload a PDF document for a specific insurance contract

`POST /v2/insurance_contracts/{id}/attachments`

OAuth scope: `insurance_contract.write`

---

This endpoint allows you to upload a PDF file representing a document for a specific insurance contract.

## Path parameters

- `id` string, required

## Headers

- `X-Qonto-Staging-Token` string
- `X-Qonto-Idempotency-Key` string, required

## Response `201`

Attachment created successfully

- object
  - `id` string, uuid — ID of the newly created attachment
  - `name` string, string — the name of the file
  - `type` string, string — type of the file

## Other responses

- `400` — Returns a bad request error
- `401` — Returns an unauthorized error
- `403` — Returns a forbidden error
- `404` — Returns a not found error

---

[API](https://skmtc.net/hiit-consulting-fr/apis/qonto.md) · [All operations](https://skmtc.net/hiit-consulting-fr/apis/qonto/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/hiit-consulting-fr/qonto/revisions/25208d6f9deb/schema)
