# Upload an attachment

> POST /attachments

Source: https://docs.trykintsugi.com/reference/2026-12-03/upload-an-attachment

API version: Tenanted API release 2026-12-03, latest, default in the docs

POST /attachments

Upload an attachment

Attach a document to a related entity in the resolved organization, as `multipart/form-data` with the file in the `file` part and `relatedEntityId` and `relatedEntityType` as form fields. Returns the stored attachment's metadata. `relatedEntityType` is `EXEMPTION`, `FILING` or `FILING_DOCUMENT`. `FILING_DOCUMENT` is a supporting file on a filing that a partner firm files, and a filing takes any number of them. Only the partner that files the return may upload a `FILING_DOCUMENT`: the partner's portfolio key, or a partner user who can see the organization. The organization's own users and organization API keys cannot. Returns 404 if the related entity does not exist or belongs to an organization your credential cannot access, or if the filing for a `FILING_DOCUMENT` is not filed by a partner firm, and 403 if your credential cannot upload a `FILING_DOCUMENT` for the partner. A `FILING_DOCUMENT` must be a PDF, PNG or JPEG whose content and extension match its type, else 422. The file must be at most 10 MB.

Category: Attachments

Response fields:
id (string, required) - Kintsugi's unique identifier for the attachment.
fileName (string, required) - Name the file was uploaded under.
contentType (string, required) - Media type of the file.
size (integer, required) - Size of the file in bytes.
relatedEntity (RelatedEntityRef, required) - The entity this attachment is held against.
  id (string, required) - Kintsugi's unique identifier for the related entity.
  type (string, required) - Kind of entity the attachment is held against.
uploadedAt (string, required) - When the attachment was uploaded, as an RFC-3339 UTC timestamp.

Response statuses: 201, 400, 401, 403, 404, 409, 413, 422

---

Index of every page: https://docs.trykintsugi.com/llms.txt
