---
title: "Upload Chat Attachment"
method: POST
path: "/api/v1/chat/{project_id}/attachment"
tags: ["chat"]
---

# Upload Chat Attachment

`POST /api/v1/chat/{project_id}/attachment`

Store one PDF for this project's chat and return its reference.

Returns 404 rather than 403 when the workspace's file-upload toggle is off:
off means the API surface is absent, not forbidden.

## Response `200`

Successful Response

- ChatAttachmentResponse — The stored document a client references on its next chat turn.
  - `id` string, uuid, required
  - `filename` string, required
  - `media_type` string, required
  - `byte_size` integer, required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/maia-analytics/apis/maia-api.md) · [All operations](https://skmtc.net/maia-analytics/apis/maia-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/maia-analytics/maia-api/revisions/18539ae8bf0a/schema)
