---
title: "POST /ai/conversations/{public_id}/attachments"
method: POST
path: "/ai/conversations/{public_id}/attachments"
tags: ["AI Chat"]
---

# POST /ai/conversations/{public_id}/attachments

`POST /ai/conversations/{public_id}/attachments`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/ai/conversations/{public_id}/attachments`
- Auth: HTTP bearer

## Path parameters

- `public_id` string, required

## Request body `multipart/form-data`

- ChatAttachmentUpload
  - `file` string, binary, required

## Response `201`

- ChatAttachmentResponse
  - `id` string, required
  - `is_image` boolean, required
  - `mime_type` string, required
  - `name` string, required
  - `sandbox_path` string, required
  - `size_bytes` integer, required

## Other responses

- `400`
- `401`
- `403`
- `404`
- `409`
- `413`

## Changes

- **2026-10-23** `7d41b820a372`: 1 info
  - added the non-success response with the status `409`
- **2026-10-23** `24af93ff5379`: 1 info
  - removed the non-success response with the status `409`
- **2026-10-22** `842d42ed4659`: 1 info
  - added the non-success response with the status `409`
- **2026-10-22** `1a12a50b75ee`: 1 info
  - removed the non-success response with the status `409`
- **2026-10-21** `79089e9f49ee`: 1 info
  - added the non-success response with the status `409`

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/ai/conversations/:public_id/attachments/post.md)

---

[API](https://skmtc.dev/gotempsh/apis/temps.md) - [All operations](https://skmtc.dev/gotempsh/apis/temps/llms.txt) - [OpenAPI document](https://skmtc.dev/gotempsh/apis/temps/revisions/3b040526eb43?raw)
