---
title: "Presign Chat Attachment"
method: POST
path: "/api/v1/chat-ai/conversations/{conversation_id}/attachments/presign"
tags: ["chat-ai", "chat_messages"]
---

# Presign Chat Attachment

`POST /api/v1/chat-ai/conversations/{conversation_id}/attachments/presign`

## Request

- Base URL: `https://api.getanana.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.getanana.com/api/v1/chat-ai/conversations/{conversation_id}/attachments/presign`
- Auth: none declared

Generate a presigned S3 PUT URL for a chat message attachment.

## Path parameters

- `conversation_id` string, uuid, required

## Request body

- PresignRequest
  - `filename` string, required
  - `content_type` string, required

## Response `200`

Successful Response

- PresignResponse
  - `upload_url` string, required
  - `object_key` string, required

## Other responses

- `422`: Validation Error

## Changes

> 55 revisions in range; 1 not diffed.

- **2026-09-03** `d65b8fefae34`: 2 info
  - added the optional property `detail/items/ctx` to the response with the `422` status
  - added the optional property `detail/items/input` to the response with the `422` status

[Operation history](https://skmtc.dev/getanana/apis/cleon-api/changes/api/v1/chat-ai/conversations/:conversation_id/attachments/presign/post.md)

---

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