---
title: "Attach a document to a contact"
method: POST
path: "/api/v1/contacts/{id}/documents"
---

# Attach a document to a contact

`POST /api/v1/contacts/{id}/documents`

## Request

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

multipart/form-data. The original is stored in object storage.

## Path parameters

- `id` integer, required

## Response `200`

Stored, queued for text extraction

## Other responses

- `413`: File too large
- `415`: Unsupported type
- `503`: Document storage unavailable

---

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